aiex-cli 0.0.1-beta.9 → 0.0.2-beta.1
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/README.md +50 -26
- package/dist/cli.mjs +1776 -626
- package/dist/{completions-ygS1okck.mjs → completions-C3rmTwXZ.mjs} +2 -2
- package/dist/core/schema-sqlite/migrate-helper.mjs +35 -37
- package/dist/{doctor-BiU1lDp-.mjs → doctor-collector-Cbqgwx__.mjs} +309 -223
- package/dist/index.d.mts +15 -15
- package/dist/index.mjs +1 -1
- package/dist/table-schema.json +4 -0
- package/dist/web/assets/AISettings-Cm8fAfaG.js +205 -0
- package/dist/web/assets/DataBrowser-DQwOvooY.js +6 -0
- package/dist/web/assets/ExtractRunner-CzfLlCCf.js +1 -0
- package/dist/web/assets/ExtractionViewer-D7tghmR-.js +1 -0
- package/dist/web/assets/JsonSchemaEditor-DXhYW-Un.js +570 -0
- package/dist/web/assets/api-client-CIC2X8_4.js +1 -0
- package/dist/web/assets/baseinput-B7PU5-38.js +2 -0
- package/dist/web/assets/button-Cdgr9Igy.js +927 -0
- package/dist/web/assets/checkbox-CCQwMfLd.js +142 -0
- package/dist/web/assets/{cssMode-DAbG0CMn.js → cssMode-CCz1uj8b.js} +1 -1
- package/dist/web/assets/dialog-8xaIXBKO.js +108 -0
- package/dist/web/assets/dist-B5Yem2Jn.js +1 -0
- package/dist/web/assets/{editor.main-BqhfoHxy.js → editor.main-DOue-nGf.js} +2 -2
- package/dist/web/assets/{freemarker2-B9_5ct2b.js → freemarker2-C87H7V8i.js} +1 -1
- package/dist/web/assets/{handlebars-TY59WcoQ.js → handlebars-TLnoktZW.js} +1 -1
- package/dist/web/assets/{html-CLULsh27.js → html-Rewbtgcp.js} +1 -1
- package/dist/web/assets/{htmlMode-BvG7RNbU.js → htmlMode-Cr9y3YUi.js} +1 -1
- package/dist/web/assets/index-BEorm4a5.css +2 -0
- package/dist/web/assets/{index-CKUXTDYj.js → index-CWy8KajQ.js} +38 -38
- package/dist/web/assets/{javascript-DHrLp6gu.js → javascript-BO8DPECx.js} +1 -1
- package/dist/web/assets/{jsonMode-DBDhdzl1.js → jsonMode-B78m_Y1l.js} +1 -1
- package/dist/web/assets/{liquid-tGeb-nqF.js → liquid-CDp_8YUE.js} +1 -1
- package/dist/web/assets/{mdx-Cmdz78VU.js → mdx-CeR1GULE.js} +1 -1
- package/dist/web/assets/{monaco.contribution-CroYPUF5.js → monaco.contribution-tCitzj1_.js} +2 -2
- package/dist/web/assets/object-utils-Cm2M3fPO.js +1 -0
- package/dist/web/assets/{python-Dmfz4iDE.js → python-DWmB1hQ6.js} +1 -1
- package/dist/web/assets/{razor-BJicZHJs.js → razor-BVk762Lq.js} +1 -1
- package/dist/web/assets/runtime-dom.esm-bundler-DZwuSnld.js +1 -0
- package/dist/web/assets/select-DKPPF403.js +438 -0
- package/dist/web/assets/{tsMode-DYqTyE66.js → tsMode-Gjs5D1gt.js} +1 -1
- package/dist/web/assets/{typescript-DLnTe9Hf.js → typescript-Cw6YtwrM.js} +1 -1
- package/dist/web/assets/utils-CZhxh2Ya.js +2 -0
- package/dist/web/assets/{xml-BIYqLORk.js → xml-guZq0YZJ.js} +1 -1
- package/dist/web/assets/{yaml-BjmulkMX.js → yaml-B9TbU-LX.js} +1 -1
- package/dist/web/index.html +11 -8
- package/package.json +17 -1
- package/src/core/schema-sqlite/migrate-helper.ts +32 -46
- package/dist/web/assets/AISettings-DOzonIux.js +0 -334
- package/dist/web/assets/DataBrowser-rznfVRaV.js +0 -3
- package/dist/web/assets/JsonSchemaEditor-C9iyQs7N.js +0 -929
- package/dist/web/assets/api-client-Dsg4WOM9.js +0 -1
- package/dist/web/assets/button-kTMweGMc.js +0 -927
- package/dist/web/assets/dialog-CWuu7WjI.js +0 -108
- package/dist/web/assets/index-DDFnprdM.css +0 -2
- package/dist/web/assets/lib-C30cIFrm.js +0 -1
- package/dist/web/assets/overlayeventbus-AtOpmI6n.js +0 -80
- package/dist/web/assets/table-schema-mJrrf9qw.js +0 -2
- /package/dist/web/assets/{abap-DrZwwXZX.js → abap-C3UM4cME.js} +0 -0
- /package/dist/web/assets/{apex-CrCz0btt.js → apex-BQBZvQmN.js} +0 -0
- /package/dist/web/assets/{azcli-BapzKHay.js → azcli-Dn9Awrok.js} +0 -0
- /package/dist/web/assets/{bat-C_NRAiA1.js → bat-JgEezSDo.js} +0 -0
- /package/dist/web/assets/{bicep-C7pp2CNk.js → bicep-vcQeC7wE.js} +0 -0
- /package/dist/web/assets/{cameligo-BhhK9vxZ.js → cameligo-C0cr0T3L.js} +0 -0
- /package/dist/web/assets/{clojure-D0ujmUyE.js → clojure-Brc1-rbW.js} +0 -0
- /package/dist/web/assets/{coffee-DHEl7Jbb.js → coffee-BiZYU83a.js} +0 -0
- /package/dist/web/assets/{cpp-Iil-3nzZ.js → cpp-ikWHCInz.js} +0 -0
- /package/dist/web/assets/{csharp-Dh0Ee7SY.js → csharp-BRWs_LfH.js} +0 -0
- /package/dist/web/assets/{csp-mwzjw0JL.js → csp-CcAumoJw.js} +0 -0
- /package/dist/web/assets/{css-COIa8ZTR.js → css-BZm6paiA.js} +0 -0
- /package/dist/web/assets/{cypher-GVc17FC4.js → cypher-CDQMONdb.js} +0 -0
- /package/dist/web/assets/{dart-phiCaE7_.js → dart-Ci4SZdF1.js} +0 -0
- /package/dist/web/assets/{dockerfile-BMaDhdim.js → dockerfile-BV0tAr-M.js} +0 -0
- /package/dist/web/assets/{ecl-Cj47kvqp.js → ecl-CP7nM2KN.js} +0 -0
- /package/dist/web/assets/{editor.api-DLXGyrN1.js → editor.api-BU_q4v8i.js} +0 -0
- /package/dist/web/assets/{elixir-DBbstcE1.js → elixir-GcA6wFiI.js} +0 -0
- /package/dist/web/assets/{flow9-ChHb1adO.js → flow9-CIb9youF.js} +0 -0
- /package/dist/web/assets/{fsharp-CMk2OIJN.js → fsharp-BVaBE4co.js} +0 -0
- /package/dist/web/assets/{go-BrMkuJg0.js → go-Bbqf306x.js} +0 -0
- /package/dist/web/assets/{graphql-PSR1UKGv.js → graphql-DJPrC4l-.js} +0 -0
- /package/dist/web/assets/{hcl-DAQrbDOW.js → hcl-QyfWVWpM.js} +0 -0
- /package/dist/web/assets/{ini-0TG5BxW0.js → ini-CgstZeS8.js} +0 -0
- /package/dist/web/assets/{java-rgorz17v.js → java-D4AG88ZY.js} +0 -0
- /package/dist/web/assets/{julia-C8VMdHm8.js → julia-CN8U9648.js} +0 -0
- /package/dist/web/assets/{kotlin-CllWo3gX.js → kotlin-gNNgpJhY.js} +0 -0
- /package/dist/web/assets/{less-Cgca25AP.js → less-C3SY2L8t.js} +0 -0
- /package/dist/web/assets/{lexon-D0GHdBaw.js → lexon-CznnqzUX.js} +0 -0
- /package/dist/web/assets/{lua-DmRsNG-P.js → lua-f3xyJgy5.js} +0 -0
- /package/dist/web/assets/{m3-BgL5dNKT.js → m3-Cl7J89p-.js} +0 -0
- /package/dist/web/assets/{markdown-BuJfycGS.js → markdown-Bv2fnzzT.js} +0 -0
- /package/dist/web/assets/{mips-C9m_93PR.js → mips-D6rXUTWa.js} +0 -0
- /package/dist/web/assets/{msdax-CpFHC9OI.js → msdax-Bb1N2x5J.js} +0 -0
- /package/dist/web/assets/{mysql-qFvltsqN.js → mysql-DXSr6oD7.js} +0 -0
- /package/dist/web/assets/{objective-c-Bnmr858J.js → objective-c-CEJiVkDa.js} +0 -0
- /package/dist/web/assets/{pascal-WP0_D5AO.js → pascal-BtkMEIba.js} +0 -0
- /package/dist/web/assets/{pascaligo-Blom4Rij.js → pascaligo-C7FAwqk7.js} +0 -0
- /package/dist/web/assets/{perl-B-vk8g64.js → perl-D9kqkBbN.js} +0 -0
- /package/dist/web/assets/{pgsql-Cgvz6v67.js → pgsql-BjGTBL1W.js} +0 -0
- /package/dist/web/assets/{php-8a3Lrw9m.js → php-BN0c0noA.js} +0 -0
- /package/dist/web/assets/{pla-DuFqEZ8V.js → pla-B94QTqOt.js} +0 -0
- /package/dist/web/assets/{postiats-DkLtSgkp.js → postiats-DH91dqBs.js} +0 -0
- /package/dist/web/assets/{powerquery-BJ1aNepW.js → powerquery-D7P0oUen.js} +0 -0
- /package/dist/web/assets/{powershell-rE98k687.js → powershell-CCVHmJax.js} +0 -0
- /package/dist/web/assets/{preload-helper-DWTEM3RW.js → preload-helper-DgFuoWHe.js} +0 -0
- /package/dist/web/assets/{protobuf-CUheFacr.js → protobuf-BIP7pixC.js} +0 -0
- /package/dist/web/assets/{pug-LDcAMD8w.js → pug-DcbLK7HH.js} +0 -0
- /package/dist/web/assets/{qsharp-IHfqKOfK.js → qsharp-B-VY_WOG.js} +0 -0
- /package/dist/web/assets/{r-D-QApv87.js → r-DwRtsJsj.js} +0 -0
- /package/dist/web/assets/{redis-SXdDyWR9.js → redis-CaW0tkwu.js} +0 -0
- /package/dist/web/assets/{redshift-Y6lsCryn.js → redshift-3tS8G0ME.js} +0 -0
- /package/dist/web/assets/{restructuredtext-edObr9a8.js → restructuredtext-_TNyGyK0.js} +0 -0
- /package/dist/web/assets/{ruby-CNnUfF-8.js → ruby-A-MwVfO4.js} +0 -0
- /package/dist/web/assets/{rust-IHUZWzBr.js → rust-oemlUIvG.js} +0 -0
- /package/dist/web/assets/{sb-DrUvY44N.js → sb-BDZuaI3W.js} +0 -0
- /package/dist/web/assets/{scala-B4hbXGLM.js → scala-Bfo2loK4.js} +0 -0
- /package/dist/web/assets/{scheme-BGrd12j3.js → scheme-N2eo7rjB.js} +0 -0
- /package/dist/web/assets/{scss-x5G1ES4U.js → scss-vjjSCTgN.js} +0 -0
- /package/dist/web/assets/{shell-DOehe2Y8.js → shell-Bfb9Yq6w.js} +0 -0
- /package/dist/web/assets/{solidity-BeRvcwWV.js → solidity-C9RbukzG.js} +0 -0
- /package/dist/web/assets/{sophia-DZbkUNjy.js → sophia-DWV_MWOg.js} +0 -0
- /package/dist/web/assets/{sparql-B7_oi5-h.js → sparql-iMXILWhh.js} +0 -0
- /package/dist/web/assets/{sql-CTlsFWVE.js → sql-CJDj31JM.js} +0 -0
- /package/dist/web/assets/{st-DJVEJdPE.js → st-BG9AQ1OO.js} +0 -0
- /package/dist/web/assets/{swift-CwhT3fYa.js → swift-B579DvHm.js} +0 -0
- /package/dist/web/assets/{systemverilog-BQN63pkN.js → systemverilog-BNgaF3ZX.js} +0 -0
- /package/dist/web/assets/{tcl-DqwfpskA.js → tcl-grdtJiUA.js} +0 -0
- /package/dist/web/assets/{twig-BiyenUgc.js → twig-JAsFXBZw.js} +0 -0
- /package/dist/web/assets/{typespec-CWOJribt.js → typespec-D3hIQXEU.js} +0 -0
- /package/dist/web/assets/{vb-Cq5F87m3.js → vb-H38jRcEz.js} +0 -0
- /package/dist/web/assets/{wgsl-BAvW2lVr.js → wgsl-BC5Grc5r.js} +0 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import{B as e,H as t,Jt as n,K as r,L as ee,Lt as i,M as a,Pt as o,Q as s,R as c,S as l,Sn as u,Tn as d,U as f,W as p,Yt as m,_ as h,c as g,d as te,et as ne,g as re,h as _,ht as v,i as y,in as b,j as x,lt as S,m as C,nt as ie,t as w,un as T,v as E,w as ae,x as D}from"./button-Cdgr9Igy.js";import{i as O,n as oe,r as se,t as ce}from"./dialog-8xaIXBKO.js";import{t as k}from"./utils-CZhxh2Ya.js";import{c as le,t as ue}from"./runtime-dom.esm-bundler-DZwuSnld.js";import{_ as de,b as A,c as fe,m as pe,o as me,r as he}from"./api-client-CIC2X8_4.js";import{t as j}from"./baseinput-B7PU5-38.js";import{t as M}from"./checkbox-CCQwMfLd.js";import{n as N,r as P,t as ge}from"./select-DKPPF403.js";var F={name:`EyeIcon`,extends:y};function I(e){return ye(e)||ve(e)||_e(e)||L()}function L(){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 _e(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 ve(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ye(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 z(t,n,r,ee,i,o){return e(),E(`svg`,a({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},t.pti()),I(n[0]||=[_(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0.0535499 7.25213C0.208567 7.59162 2.40413 12.4 7 12.4C11.5959 12.4 13.7914 7.59162 13.9465 7.25213C13.9487 7.2471 13.9506 7.24304 13.952 7.24001C13.9837 7.16396 14 7.08239 14 7.00001C14 6.91762 13.9837 6.83605 13.952 6.76001C13.9506 6.75697 13.9487 6.75292 13.9465 6.74788C13.7914 6.4084 11.5959 1.60001 7 1.60001C2.40413 1.60001 0.208567 6.40839 0.0535499 6.74788C0.0512519 6.75292 0.0494023 6.75697 0.048 6.76001C0.0163137 6.83605 0 6.91762 0 7.00001C0 7.08239 0.0163137 7.16396 0.048 7.24001C0.0494023 7.24304 0.0512519 7.2471 0.0535499 7.25213ZM7 11.2C3.664 11.2 1.736 7.92001 1.264 7.00001C1.736 6.08001 3.664 2.80001 7 2.80001C10.336 2.80001 12.264 6.08001 12.736 7.00001C12.264 7.92001 10.336 11.2 7 11.2ZM5.55551 9.16182C5.98308 9.44751 6.48576 9.6 7 9.6C7.68891 9.59789 8.349 9.32328 8.83614 8.83614C9.32328 8.349 9.59789 7.68891 9.59999 7C9.59999 6.48576 9.44751 5.98308 9.16182 5.55551C8.87612 5.12794 8.47006 4.7947 7.99497 4.59791C7.51988 4.40112 6.99711 4.34963 6.49276 4.44995C5.98841 4.55027 5.52513 4.7979 5.16152 5.16152C4.7979 5.52513 4.55027 5.98841 4.44995 6.49276C4.34963 6.99711 4.40112 7.51988 4.59791 7.99497C4.7947 8.47006 5.12794 8.87612 5.55551 9.16182ZM6.2222 5.83594C6.45243 5.6821 6.7231 5.6 7 5.6C7.37065 5.6021 7.72553 5.75027 7.98762 6.01237C8.24972 6.27446 8.39789 6.62934 8.4 7C8.4 7.27689 8.31789 7.54756 8.16405 7.77779C8.01022 8.00802 7.79157 8.18746 7.53575 8.29343C7.27994 8.39939 6.99844 8.42711 6.72687 8.37309C6.4553 8.31908 6.20584 8.18574 6.01005 7.98994C5.81425 7.79415 5.68091 7.54469 5.6269 7.27312C5.57288 7.00155 5.6006 6.72006 5.70656 6.46424C5.81253 6.20842 5.99197 5.98977 6.2222 5.83594Z`,fill:`currentColor`},null,-1)]),16)}F.render=z;var B={name:`EyeSlashIcon`,extends:y};function V(e){return be(e)||W(e)||U(e)||H()}function H(){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 U(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 W(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function be(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 K(t,n,r,ee,i,o){return e(),E(`svg`,a({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},t.pti()),V(n[0]||=[_(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13.9414 6.74792C13.9437 6.75295 13.9455 6.757 13.9469 6.76003C13.982 6.8394 14.0001 6.9252 14.0001 7.01195C14.0001 7.0987 13.982 7.1845 13.9469 7.26386C13.6004 8.00059 13.1711 8.69549 12.6674 9.33515C12.6115 9.4071 12.54 9.46538 12.4582 9.50556C12.3765 9.54574 12.2866 9.56678 12.1955 9.56707C12.0834 9.56671 11.9737 9.53496 11.8788 9.47541C11.7838 9.41586 11.7074 9.3309 11.6583 9.23015C11.6092 9.12941 11.5893 9.01691 11.6008 8.90543C11.6124 8.79394 11.6549 8.68793 11.7237 8.5994C12.1065 8.09726 12.4437 7.56199 12.7313 6.99995C12.2595 6.08027 10.3402 2.8014 6.99732 2.8014C6.63723 2.80218 6.27816 2.83969 5.92569 2.91336C5.77666 2.93304 5.62568 2.89606 5.50263 2.80972C5.37958 2.72337 5.29344 2.59398 5.26125 2.44714C5.22907 2.30031 5.2532 2.14674 5.32885 2.01685C5.40451 1.88696 5.52618 1.79021 5.66978 1.74576C6.10574 1.64961 6.55089 1.60134 6.99732 1.60181C11.5916 1.60181 13.7864 6.40856 13.9414 6.74792ZM2.20333 1.61685C2.35871 1.61411 2.5091 1.67179 2.6228 1.77774L12.2195 11.3744C12.3318 11.4869 12.3949 11.6393 12.3949 11.7983C12.3949 11.9572 12.3318 12.1097 12.2195 12.2221C12.107 12.3345 11.9546 12.3976 11.7956 12.3976C11.6367 12.3976 11.4842 12.3345 11.3718 12.2221L10.5081 11.3584C9.46549 12.0426 8.24432 12.4042 6.99729 12.3981C2.403 12.3981 0.208197 7.59135 0.0532336 7.25198C0.0509364 7.24694 0.0490875 7.2429 0.0476856 7.23986C0.0162332 7.16518 3.05176e-05 7.08497 3.05176e-05 7.00394C3.05176e-05 6.92291 0.0162332 6.8427 0.0476856 6.76802C0.631261 5.47831 1.46902 4.31959 2.51084 3.36119L1.77509 2.62545C1.66914 2.51175 1.61146 2.36136 1.61421 2.20597C1.61695 2.05059 1.6799 1.90233 1.78979 1.79244C1.89968 1.68254 2.04794 1.6196 2.20333 1.61685ZM7.45314 8.35147L5.68574 6.57609V6.5361C5.5872 6.78938 5.56498 7.06597 5.62183 7.33173C5.67868 7.59749 5.8121 7.84078 6.00563 8.03158C6.19567 8.21043 6.43052 8.33458 6.68533 8.39089C6.94014 8.44721 7.20543 8.43359 7.45314 8.35147ZM1.26327 6.99994C1.7351 7.91163 3.64645 11.1985 6.99729 11.1985C7.9267 11.2048 8.8408 10.9618 9.64438 10.4947L8.35682 9.20718C7.86027 9.51441 7.27449 9.64491 6.69448 9.57752C6.11446 9.51014 5.57421 9.24881 5.16131 8.83592C4.74842 8.42303 4.4871 7.88277 4.41971 7.30276C4.35232 6.72274 4.48282 6.13697 4.79005 5.64041L3.35855 4.2089C2.4954 5.00336 1.78523 5.94935 1.26327 6.99994Z`,fill:`currentColor`},null,-1)]),16)}B.render=K;var xe=g.extend({name:`password`,style:`
|
|
4
|
+
.p-password {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
position: relative;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.p-password .p-password-overlay {
|
|
10
|
+
min-width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.p-password-meter {
|
|
14
|
+
height: dt('password.meter.height');
|
|
15
|
+
background: dt('password.meter.background');
|
|
16
|
+
border-radius: dt('password.meter.border.radius');
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.p-password-meter-label {
|
|
20
|
+
height: 100%;
|
|
21
|
+
width: 0;
|
|
22
|
+
transition: width 1s ease-in-out;
|
|
23
|
+
border-radius: dt('password.meter.border.radius');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.p-password-meter-weak {
|
|
27
|
+
background: dt('password.strength.weak.background');
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.p-password-meter-medium {
|
|
31
|
+
background: dt('password.strength.medium.background');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.p-password-meter-strong {
|
|
35
|
+
background: dt('password.strength.strong.background');
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.p-password-fluid {
|
|
39
|
+
display: flex;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.p-password-fluid .p-password-input {
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.p-password-input::-ms-reveal,
|
|
47
|
+
.p-password-input::-ms-clear {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.p-password-overlay {
|
|
52
|
+
padding: dt('password.overlay.padding');
|
|
53
|
+
background: dt('password.overlay.background');
|
|
54
|
+
color: dt('password.overlay.color');
|
|
55
|
+
border: 1px solid dt('password.overlay.border.color');
|
|
56
|
+
box-shadow: dt('password.overlay.shadow');
|
|
57
|
+
border-radius: dt('password.overlay.border.radius');
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.p-password-content {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
gap: dt('password.content.gap');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.p-password-toggle-mask-icon {
|
|
67
|
+
inset-inline-end: dt('form.field.padding.x');
|
|
68
|
+
color: dt('password.icon.color');
|
|
69
|
+
position: absolute;
|
|
70
|
+
top: 50%;
|
|
71
|
+
margin-top: calc(-1 * calc(dt('icon.size') / 2));
|
|
72
|
+
width: dt('icon.size');
|
|
73
|
+
height: dt('icon.size');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.p-password-clear-icon {
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 50%;
|
|
79
|
+
margin-top: -0.5rem;
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
inset-inline-end: dt('form.field.padding.x');
|
|
82
|
+
color: dt('form.field.icon.color');
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.p-password:has(.p-password-toggle-mask-icon) .p-password-input {
|
|
86
|
+
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.p-password:has(.p-password-toggle-mask-icon) .p-password-clear-icon {
|
|
90
|
+
inset-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.p-password:has(.p-password-clear-icon) .p-password-input {
|
|
94
|
+
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.p-password:has(.p-password-clear-icon):has(.p-password-toggle-mask-icon) .p-password-input {
|
|
98
|
+
padding-inline-end: calc((dt('form.field.padding.x') * 3) + calc(dt('icon.size') * 2));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
`,classes:{root:function(e){var t=e.instance;return[`p-password p-component p-inputwrapper`,{"p-inputwrapper-filled":t.$filled,"p-inputwrapper-focus":t.focused,"p-password-fluid":t.$fluid}]},pcInputText:`p-password-input`,maskIcon:`p-password-toggle-mask-icon p-password-mask-icon`,unmaskIcon:`p-password-toggle-mask-icon p-password-unmask-icon`,clearIcon:`p-password-clear-icon`,overlay:`p-password-overlay p-component`,content:`p-password-content`,meter:`p-password-meter`,meterLabel:function(e){var t=e.instance;return`p-password-meter-label ${t.meter?`p-password-meter-`+t.meter.strength:``}`},meterText:`p-password-meter-text`},inlineStyles:{root:function(e){return{position:e.props.appendTo===`self`?`relative`:void 0}}}}),q={name:`BasePassword`,extends:j,props:{promptLabel:{type:String,default:null},mediumRegex:{type:[String,RegExp],default:`^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})`},strongRegex:{type:[String,RegExp],default:`^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})`},weakLabel:{type:String,default:null},mediumLabel:{type:String,default:null},strongLabel:{type:String,default:null},feedback:{type:Boolean,default:!0},appendTo:{type:[String,Object],default:`body`},toggleMask:{type:Boolean,default:!1},hideIcon:{type:String,default:void 0},maskIcon:{type:String,default:void 0},showIcon:{type:String,default:void 0},unmaskIcon:{type:String,default:void 0},showClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelId:{type:String,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},overlayId:{type:String,default:null},overlayClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null},autofocus:{type:Boolean,default:null}},style:xe,provide:function(){return{$pcPassword:this,$parentInstance:this}}};function J(e){"@babel/helpers - typeof";return J=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},J(e)}function Y(e,t,n){return(t=Se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e){var t=Ce(e,`string`);return J(t)==`symbol`?t:t+``}function Ce(e,t){if(J(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(J(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var we={name:`Password`,extends:q,inheritAttrs:!1,emits:[`change`,`focus`,`blur`,`invalid`],inject:{$pcFluid:{default:null}},data:function(){return{overlayVisible:!1,meter:null,infoText:null,focused:!1,unmasked:!1}},mediumCheckRegExp:null,strongCheckRegExp:null,resizeListener:null,scrollHandler:null,overlay:null,mounted:function(){this.infoText=this.promptText,this.mediumCheckRegExp=new RegExp(this.mediumRegex),this.strongCheckRegExp=new RegExp(this.strongRegex)},beforeUnmount:function(){this.unbindResizeListener(),this.scrollHandler&&=(this.scrollHandler.destroy(),null),this.overlay&&=(O.clear(this.overlay),null)},methods:{onOverlayEnter:function(e){O.set(`overlay`,e,this.$primevue.config.zIndex.overlay),b(e,{position:`absolute`,top:`0`}),this.alignOverlay(),this.bindScrollListener(),this.bindResizeListener(),this.$attrSelector&&e.setAttribute(this.$attrSelector,``)},onOverlayLeave:function(){this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null},onOverlayAfterLeave:function(e){O.clear(e)},alignOverlay:function(){this.appendTo===`self`?m(this.overlay,this.$refs.input.$el):(this.overlay.style.minWidth=u(this.$refs.input.$el)+`px`,n(this.overlay,this.$refs.input.$el))},testStrength:function(e){var t=0;return this.strongCheckRegExp.test(e)?t=3:this.mediumCheckRegExp.test(e)?t=2:e.length&&(t=1),t},onInput:function(e){this.writeValue(e.target.value,e),this.$emit(`change`,e)},onFocus:function(e){this.focused=!0,this.feedback&&(this.setPasswordMeter(this.d_value),this.overlayVisible=!0),this.$emit(`focus`,e)},onBlur:function(e){this.focused=!1,this.feedback&&(this.overlayVisible=!1),this.$emit(`blur`,e)},onKeyUp:function(e){if(this.feedback){var t=e.target.value,n=this.checkPasswordStrength(t),r=n.meter,ee=n.label;if(this.meter=r,this.infoText=ee,e.code===`Escape`){this.overlayVisible&&=!1;return}this.overlayVisible||=!0}},setPasswordMeter:function(){if(!this.d_value){this.meter=null,this.infoText=this.promptText;return}var e=this.checkPasswordStrength(this.d_value),t=e.meter,n=e.label;this.meter=t,this.infoText=n,this.overlayVisible||=!0},checkPasswordStrength:function(e){var t=null,n=null;switch(this.testStrength(e)){case 1:t=this.weakText,n={strength:`weak`,width:`33.33%`};break;case 2:t=this.mediumText,n={strength:`medium`,width:`66.66%`};break;case 3:t=this.strongText,n={strength:`strong`,width:`100%`};break;default:t=this.promptText,n=null;break}return{label:t,meter:n}},onInvalid:function(e){this.$emit(`invalid`,e)},bindScrollListener:function(){var e=this;this.scrollHandler||=new k(this.$refs.input.$el,function(){e.overlayVisible&&=!1}),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!T()&&(e.overlayVisible=!1)},window.addEventListener(`resize`,this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),null)},overlayRef:function(e){this.overlay=e},onMaskToggle:function(){this.unmasked=!this.unmasked},onClearClick:function(e){this.writeValue(null,{})},onOverlayClick:function(e){N.emit(`overlay-click`,{originalEvent:e,target:this.$el})}},computed:{inputType:function(){return this.unmasked?`text`:`password`},weakText:function(){return this.weakLabel||this.$primevue.config.locale.weak},mediumText:function(){return this.mediumLabel||this.$primevue.config.locale.medium},strongText:function(){return this.strongLabel||this.$primevue.config.locale.strong},promptText:function(){return this.promptLabel||this.$primevue.config.locale.passwordPrompt},isClearIconVisible:function(){return this.showClear&&this.$filled&&!this.disabled},overlayUniqueId:function(){return this.$id+`_overlay`},containerDataP:function(){return d({fluid:this.$fluid})},meterDataP:function(){return d(Y({},this.meter?.strength,this.meter?.strength))},overlayDataP:function(){return d(Y({},`portal-`+this.appendTo,`portal-`+this.appendTo))}},components:{InputText:P,Portal:oe,EyeSlashIcon:B,EyeIcon:F,TimesIcon:se}};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 Te(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 Ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Te(Object(n),!0).forEach(function(t){De(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function De(e,t,n){return(t=Oe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(e){var t=ke(e,`string`);return X(t)==`symbol`?t:t+``}function ke(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 Z=[`data-p`],Ae=[`id`,`data-p`],je=[`data-p`];function Me(t,n,ee,o,s,c){var u=p(`InputText`),d=p(`TimesIcon`),m=p(`Portal`);return e(),E(`div`,a({class:t.cx(`root`),style:t.sx(`root`),"data-p":c.containerDataP},t.ptmi(`root`)),[l(u,a({ref:`input`,id:t.inputId,type:c.inputType,class:[t.cx(`pcInputText`),t.inputClass],style:t.inputStyle,defaultValue:t.d_value,name:t.$formName,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-expanded":s.overlayVisible,"aria-controls":s.overlayVisible?t.overlayProps&&t.overlayProps.id||t.overlayId||t.panelProps&&t.panelProps.id||t.panelId||c.overlayUniqueId:void 0,"aria-haspopup":t.feedback,placeholder:t.placeholder,required:t.required,fluid:t.fluid,disabled:t.disabled,variant:t.variant,invalid:t.invalid,size:t.size,autofocus:t.autofocus,onInput:c.onInput,onFocus:c.onFocus,onBlur:c.onBlur,onKeyup:c.onKeyUp,onInvalid:c.onInvalid},t.inputProps,{"data-p-has-e-icon":t.toggleMask,pt:t.ptm(`pcInputText`),unstyled:t.unstyled}),null,16,`id.type.class.style.defaultValue.name.aria-labelledby.aria-label.aria-expanded.aria-controls.aria-haspopup.placeholder.required.fluid.disabled.variant.invalid.size.autofocus.onInput.onFocus.onBlur.onKeyup.onInvalid.data-p-has-e-icon.pt.unstyled`.split(`.`)),t.toggleMask&&s.unmasked?f(t.$slots,t.$slots.maskicon?`maskicon`:`hideicon`,a({key:0,toggleCallback:c.onMaskToggle,class:[t.cx(`maskIcon`),t.maskIcon]},t.ptm(`maskIcon`)),function(){return[(e(),re(r(t.maskIcon?`i`:`EyeSlashIcon`),a({class:[t.cx(`maskIcon`),t.maskIcon],onClick:c.onMaskToggle},t.ptm(`maskIcon`)),null,16,[`class`,`onClick`]))]}):h(``,!0),t.toggleMask&&!s.unmasked?f(t.$slots,t.$slots.unmaskicon?`unmaskicon`:`showicon`,a({key:1,toggleCallback:c.onMaskToggle,class:[t.cx(`unmaskIcon`)]},t.ptm(`unmaskIcon`)),function(){return[(e(),re(r(t.unmaskIcon?`i`:`EyeIcon`),a({class:[t.cx(`unmaskIcon`),t.unmaskIcon],onClick:c.onMaskToggle},t.ptm(`unmaskIcon`)),null,16,[`class`,`onClick`]))]}):h(``,!0),c.isClearIconVisible?f(t.$slots,`clearicon`,a({key:2,class:t.cx(`clearIcon`),clearCallback:c.onClearClick},t.ptm(`clearIcon`)),function(){return[l(d,a({class:[t.cx(`clearIcon`)],onClick:c.onClearClick},t.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):h(``,!0),_(`span`,a({class:`p-hidden-accessible`,"aria-live":`polite`},t.ptm(`hiddenAccesible`),{"data-p-hidden-accessible":!0}),i(s.infoText),17),l(m,{appendTo:t.appendTo},{default:ie(function(){return[l(ue,a({name:`p-anchored-overlay`,onEnter:c.onOverlayEnter,onLeave:c.onOverlayLeave,onAfterLeave:c.onOverlayAfterLeave},t.ptm(`transition`)),{default:ie(function(){return[s.overlayVisible?(e(),E(`div`,a({key:0,ref:c.overlayRef,id:t.overlayId||t.panelId||c.overlayUniqueId,class:[t.cx(`overlay`),t.panelClass,t.overlayClass],style:[t.overlayStyle,t.panelStyle],onClick:n[0]||=function(){return c.onOverlayClick&&c.onOverlayClick.apply(c,arguments)},"data-p":c.overlayDataP,role:`dialog`,"aria-live":`polite`},Ee(Ee(Ee({},t.panelProps),t.overlayProps),t.ptm(`overlay`))),[f(t.$slots,`header`),f(t.$slots,`content`,{},function(){return[_(`div`,a({class:t.cx(`content`)},t.ptm(`content`)),[_(`div`,a({class:t.cx(`meter`)},t.ptm(`meter`)),[_(`div`,a({class:t.cx(`meterLabel`),style:{width:s.meter?s.meter.width:``},"data-p":c.meterDataP},t.ptm(`meterLabel`)),null,16,je)],16),_(`div`,a({class:t.cx(`meterText`)},t.ptm(`meterText`)),i(s.infoText),17)],16)]}),f(t.$slots,`footer`)],16,Ae)):h(``,!0)]}),_:3},16,[`onEnter`,`onLeave`,`onAfterLeave`])]}),_:3},8,[`appendTo`])],16,Z)}we.render=Me;var Ne=g.extend({name:`textarea`,style:`
|
|
102
|
+
.p-textarea {
|
|
103
|
+
font-family: inherit;
|
|
104
|
+
font-feature-settings: inherit;
|
|
105
|
+
font-size: 1rem;
|
|
106
|
+
color: dt('textarea.color');
|
|
107
|
+
background: dt('textarea.background');
|
|
108
|
+
padding-block: dt('textarea.padding.y');
|
|
109
|
+
padding-inline: dt('textarea.padding.x');
|
|
110
|
+
border: 1px solid dt('textarea.border.color');
|
|
111
|
+
transition:
|
|
112
|
+
background dt('textarea.transition.duration'),
|
|
113
|
+
color dt('textarea.transition.duration'),
|
|
114
|
+
border-color dt('textarea.transition.duration'),
|
|
115
|
+
outline-color dt('textarea.transition.duration'),
|
|
116
|
+
box-shadow dt('textarea.transition.duration');
|
|
117
|
+
appearance: none;
|
|
118
|
+
border-radius: dt('textarea.border.radius');
|
|
119
|
+
outline-color: transparent;
|
|
120
|
+
box-shadow: dt('textarea.shadow');
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.p-textarea:enabled:hover {
|
|
124
|
+
border-color: dt('textarea.hover.border.color');
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.p-textarea:enabled:focus {
|
|
128
|
+
border-color: dt('textarea.focus.border.color');
|
|
129
|
+
box-shadow: dt('textarea.focus.ring.shadow');
|
|
130
|
+
outline: dt('textarea.focus.ring.width') dt('textarea.focus.ring.style') dt('textarea.focus.ring.color');
|
|
131
|
+
outline-offset: dt('textarea.focus.ring.offset');
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.p-textarea.p-invalid {
|
|
135
|
+
border-color: dt('textarea.invalid.border.color');
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.p-textarea.p-variant-filled {
|
|
139
|
+
background: dt('textarea.filled.background');
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.p-textarea.p-variant-filled:enabled:hover {
|
|
143
|
+
background: dt('textarea.filled.hover.background');
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.p-textarea.p-variant-filled:enabled:focus {
|
|
147
|
+
background: dt('textarea.filled.focus.background');
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.p-textarea:disabled {
|
|
151
|
+
opacity: 1;
|
|
152
|
+
background: dt('textarea.disabled.background');
|
|
153
|
+
color: dt('textarea.disabled.color');
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.p-textarea::placeholder {
|
|
157
|
+
color: dt('textarea.placeholder.color');
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.p-textarea.p-invalid::placeholder {
|
|
161
|
+
color: dt('textarea.invalid.placeholder.color');
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.p-textarea-fluid {
|
|
165
|
+
width: 100%;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.p-textarea-resizable {
|
|
169
|
+
overflow: hidden;
|
|
170
|
+
resize: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.p-textarea-sm {
|
|
174
|
+
font-size: dt('textarea.sm.font.size');
|
|
175
|
+
padding-block: dt('textarea.sm.padding.y');
|
|
176
|
+
padding-inline: dt('textarea.sm.padding.x');
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.p-textarea-lg {
|
|
180
|
+
font-size: dt('textarea.lg.font.size');
|
|
181
|
+
padding-block: dt('textarea.lg.padding.y');
|
|
182
|
+
padding-inline: dt('textarea.lg.padding.x');
|
|
183
|
+
}
|
|
184
|
+
`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-textarea p-component`,{"p-filled":t.$filled,"p-textarea-resizable ":n.autoResize,"p-textarea-sm p-inputfield-sm":n.size===`small`,"p-textarea-lg p-inputfield-lg":n.size===`large`,"p-invalid":t.$invalid,"p-variant-filled":t.$variant===`filled`,"p-textarea-fluid":t.$fluid}]}}}),Pe={name:`BaseTextarea`,extends:j,props:{autoResize:Boolean},style:Ne,provide:function(){return{$pcTextarea:this,$parentInstance:this}}};function Q(e){"@babel/helpers - typeof";return Q=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},Q(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 Q(t)==`symbol`?t:t+``}function Le(e,t){if(Q(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Q(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var $={name:`Textarea`,extends:Pe,inheritAttrs:!1,observer:null,mounted:function(){var e=this;this.autoResize&&(this.observer=new ResizeObserver(function(){requestAnimationFrame(function(){e.resize()})}),this.observer.observe(this.$el))},updated:function(){this.autoResize&&this.resize()},beforeUnmount:function(){this.observer&&this.observer.disconnect()},methods:{resize:function(){if(this.$el.offsetParent){var e=this.$el.style.height,t=parseInt(e)||0,n=this.$el.scrollHeight;t&&n<t?(this.$el.style.height=`auto`,this.$el.style.height=`${this.$el.scrollHeight}px`):(!t||n>t)&&(this.$el.style.height=`${n}px`)}},onInput:function(e){this.autoResize&&this.resize(),this.writeValue(e.target.value,e)}},computed:{attrs:function(){return a(this.ptmi(`root`,{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)},dataP:function(){return d(Fe({invalid:this.$invalid,fluid:this.$fluid,filled:this.$variant===`filled`},this.size,this.size))}}},Re=[`value`,`name`,`disabled`,`aria-invalid`,`data-p`];function ze(t,n,r,ee,i,o){return e(),E(`textarea`,a({class:t.cx(`root`),value:t.d_value,name:t.name,disabled:t.disabled,"aria-invalid":t.invalid||void 0,"data-p":o.dataP,onInput:n[0]||=function(){return o.onInput&&o.onInput.apply(o,arguments)}},o.attrs),null,16,Re)}$.render=ze;var Be={key:0,class:`flex items-center justify-center py-8`},Ve={key:1,class:`space-y-6`},He={class:`space-y-3`},Ue={class:`flex flex-col gap-1`},We={class:`flex flex-col gap-1`},Ge={class:`flex flex-col gap-1`},Ke={class:`space-y-2`},qe={class:`text-sm font-mono flex-1`},Je={key:0,class:`flex flex-col gap-2 px-3 py-2 rounded border border-border bg-card`},Ye={class:`flex items-center gap-2`},Xe={class:`flex items-center gap-4 text-xs`},Ze={class:`flex items-center gap-1.5 cursor-pointer`},Qe={class:`flex items-center gap-1.5 cursor-pointer`},$e={key:0,class:`text-muted-foreground ml-auto`},et={class:`space-y-3`},tt={class:`flex flex-col gap-1`},nt={key:0,class:`space-y-3 pl-6 border-l-2 border-border`},rt={class:`flex flex-col gap-1`},it={class:`flex flex-col gap-1`},at={class:`flex flex-col gap-1`},ot={class:`flex items-center gap-2`},st={class:`flex items-center gap-2`},ct={key:1,class:`space-y-3 pl-6 border-l-2 border-border`},lt={class:`flex flex-col gap-1`},ut={class:`flex flex-col gap-1`},dt={class:`flex flex-col gap-1`},ft={class:`flex flex-col gap-1`},pt={class:`flex items-center gap-2`},mt={class:`flex items-center gap-2`},ht={class:`space-y-3`},gt={class:`flex items-center gap-2`},_t={key:0,class:`space-y-3 pl-6 border-l-2 border-border`},vt={class:`flex flex-col gap-1`},yt={class:`flex flex-col gap-1`},bt={class:`flex flex-col gap-1`},xt={class:`space-y-3`},St={class:`flex items-center gap-2`},Ct={class:`space-y-3 pl-6 border-l-2 border-border`},wt={class:`flex flex-col gap-1`},Tt={class:`flex flex-col gap-1`},Et={class:`flex flex-col gap-1`},Dt={class:`flex flex-col gap-1`},Ot={class:`flex items-center gap-2`},kt={key:0,class:`text-xs text-muted-foreground`},At={key:0,class:`max-h-28 overflow-auto rounded border border-border divide-y divide-border`},jt={class:`text-foreground truncate`},Mt={class:`text-muted-foreground shrink-0`},Nt={class:`flex flex-col gap-1`},Pt={class:`flex items-center justify-between gap-2`},Ft={key:0,class:`text-xs text-muted-foreground`},It={key:0,class:`text-xs text-red-500 mt-1`},Lt={class:`space-y-3`},Rt={class:`flex flex-col gap-1`},zt={key:0,class:`text-xs text-red-500 mt-1`},Bt={class:`flex flex-col gap-1`},Vt={key:0,class:`text-xs text-red-500 mt-1`},Ht={class:`flex justify-end gap-2`},Ut=`You are a professional data extraction assistant. Your task is to extract structured data from text and return a JSON object based on the data structure definition provided below.
|
|
185
|
+
|
|
186
|
+
{schema}
|
|
187
|
+
|
|
188
|
+
Extraction requirements:
|
|
189
|
+
1. Extract data strictly according to the field names and types defined in the structure
|
|
190
|
+
2. If a field's information is missing from the text, set that field to null
|
|
191
|
+
3. Do not add fields that are not in the structure definition
|
|
192
|
+
4. Maintain data accuracy and completeness`,Wt=`Please extract data from the following text:
|
|
193
|
+
{text}`,Gt=ae({__name:`AISettings`,props:x({schemas:{}},{visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:[`update:visible`],setup(n){let r=n,a=s(n,`visible`),u=S(!1),d=S(!1),f=S(`https://dashscope.aliyuncs.com/compatible-mode/v1`),p=S(``),m=S(300),g=S([]),y=S(``),b=S(``),x=S(`unpdf`),T=S(`mineru`),ae=S(`-p
|
|
194
|
+
{input}
|
|
195
|
+
-o
|
|
196
|
+
{outputDir}`),O=S(600),oe=S(!0),se=S(!0),k=S(`markitdown`),ue=S(`{input}
|
|
197
|
+
-o
|
|
198
|
+
{outputDir}/{basename}.md`),j=S(`{outputDir}/{basename}.md`),N=S(600),F=S(!0),I=S(!0),L=S(!1),_e=S(``),ve=S(``),ye=S(``),R=S(!1),z=S(``),B=S({}),V=S(``),H=S(``),U=S(``),W=S(``),be=S(!1),G=S([]),K=S([]),xe=S(!1),q=S(``),J=S({vision:!1,structuredOutput:!1}),Y=S(`manual`);function Se(){Y.value=`manual`,J.value={vision:!1,structuredOutput:!1},q.value&&pe(q.value).then(e=>{e&&(J.value={...e},Y.value=`registry`)})}function Ce(){q.value&&(g.value.push({name:q.value,capabilities:{...J.value}}),Te())}function X(){Te()}function Te(){q.value=``,J.value={vision:!1,structuredOutput:!1},Y.value=`manual`,xe.value=!1}function Ee(e){g.value.splice(e,1)}let De=C(()=>y.value.includes(`{schema}`)?``:`System prompt must contain the {schema} placeholder`),Oe=C(()=>b.value.includes(`{text}`)?``:`User prompt must contain the {text} placeholder`),ke=C(()=>r.schemas.map(e=>e.replace(`.json`,``))),Z=C(()=>{let e=W.value.trim();if(!e)return``;try{let t=JSON.parse(e);if(!t||typeof t!=`object`||Array.isArray(t))return`Field map must be a JSON object`;for(let[e,n]of Object.entries(t))if(typeof n!=`string`)return`Field map value for "${e}" must be a string`;return``}catch{return`Field map must be valid JSON`}}),Ae=C(()=>{try{return Object.keys(Me()??{}).length}catch{return 0}}),je=C(()=>!De.value&&!Oe.value&&!Z.value&&!u.value&&g.value.length>0&&(!R.value||!!z.value.trim())&&(x.value!==`mineru`||!!T.value.trim())&&(x.value!==`markitdown`||!!k.value.trim()));function Me(){if(!W.value.trim())return;let e=JSON.parse(W.value),t=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,typeof t==`string`?t.trim():``]).filter(([e,t])=>!!e&&!!t));return Object.keys(t).length>0?t:void 0}function Ne(e){return!e?.properties||typeof e.properties!=`object`?[]:Object.entries(e.properties).filter(([,e])=>!(e?.nested?.enabled||e?.type===`array`&&e?.items?.nested?.enabled)).map(([e])=>e)}function Pe(e){let t={};for(let n of K.value)t[n]=e?.[n]??``;for(let[n,r]of Object.entries(e??{}))n in t||(t[n]=r);return Object.keys(t).length>0?JSON.stringify(t,null,2):``}function Q(e=V.value){if(!e||Z.value)return;let t=H.value.trim(),n=U.value.trim(),r=Me();if(!t){let t={...B.value};delete t[e],B.value=t;return}B.value={...B.value,[e]:{databaseId:t,titleProperty:n||void 0,fieldMap:r}}}function Fe(){let e=V.value?B.value[V.value]:void 0;H.value=e?.databaseId??``,U.value=e?.titleProperty??``,W.value=Pe(e?.fieldMap),G.value=[]}ne(ke,e=>{!V.value&&e.length>0&&(V.value=e[0])},{immediate:!0}),ne(V,(e,t)=>{t&&Q(t),Ie()});async function Ie(){let e=V.value;if(K.value=[],!e){Fe();return}try{K.value=Ne(await me(`${e}.json`))}catch{K.value=[]}Fe()}let Le=[{label:`Built-in text extraction`,value:`unpdf`},{label:`MinerU command`,value:`mineru`},{label:`MarkItDown command`,value:`markitdown`}];async function Re(){u.value=!0;try{let e=await he();f.value=e.provider.baseURL,p.value=e.provider.apiKey,m.value=e.provider.timeout??300,g.value=e.provider.models??[],y.value=e.prompt.systemTemplate,b.value=e.prompt.userTemplate,x.value=e.pdf?.converter??`unpdf`,T.value=e.pdf?.mineru?.command??`mineru`,ae.value=(e.pdf?.mineru?.args??[`-p`,`{input}`,`-o`,`{outputDir}`]).join(`
|
|
199
|
+
`),O.value=e.pdf?.mineru?.timeout??600,oe.value=e.pdf?.mineru?.fallbackToUnpdf??!0,se.value=e.pdf?.mineru?.keepOutput??!0,k.value=e.pdf?.markitdown?.command??`markitdown`,ue.value=(e.pdf?.markitdown?.args??[`{input}`,`-o`,`{outputDir}/{basename}.md`]).join(`
|
|
200
|
+
`),j.value=e.pdf?.markitdown?.outputFile??`{outputDir}/{basename}.md`,N.value=e.pdf?.markitdown?.timeout??600,F.value=e.pdf?.markitdown?.fallbackToUnpdf??!0,I.value=e.pdf?.markitdown?.keepOutput??!0,L.value=!!e.langfuse,_e.value=e.langfuse?.publicKey??``,ve.value=e.langfuse?.secretKey??``,ye.value=e.langfuse?.host??``,R.value=!!e.notion?.enabled,z.value=e.notion?.token??``,B.value=e.notion?.schemas??{},await Ie()}catch{p.value=``,g.value=[],y.value=Ut,b.value=Wt}finally{u.value=!1}}async function ze(){if(je.value){d.value=!0;try{Q(),await de({provider:{baseURL:f.value,apiKey:p.value,timeout:m.value,models:g.value},prompt:{systemTemplate:y.value,userTemplate:b.value},extraction:{outputDir:`.aiex/extracted`},pdf:{converter:x.value,mineru:{command:T.value,args:ae.value.split(`
|
|
201
|
+
`).map(e=>e.trim()).filter(Boolean),timeout:O.value,fallbackToUnpdf:oe.value,keepOutput:se.value||void 0},markitdown:{command:k.value,args:ue.value.split(`
|
|
202
|
+
`).map(e=>e.trim()).filter(Boolean),outputFile:j.value.trim()||void 0,timeout:N.value,fallbackToUnpdf:F.value,keepOutput:I.value||void 0}},langfuse:L.value?{publicKey:_e.value,secretKey:ve.value,host:ye.value||void 0}:void 0,notion:{enabled:R.value,token:z.value,schemas:B.value}}),a.value=!1}catch(e){A.error(e.message||`Failed to save`)}finally{d.value=!1}}}async function Gt(){if(!V.value){A.error(`Select a schema first`);return}if(!z.value.trim()){A.error(`Enter a Notion integration token`);return}if(!H.value.trim()){A.error(`Enter a Notion database URL or ID`);return}if(Z.value){A.error(Z.value);return}be.value=!0;try{let e=await fe({token:z.value,databaseId:H.value,schemaName:V.value});e.databaseId&&(H.value=e.databaseId),!U.value&&e.titleProperty&&(U.value=e.titleProperty);let t=Me()??{},n={...e.suggestedFieldMap??{},...t};W.value=Object.keys(n).length>0?JSON.stringify(n,null,2):``,G.value=e.properties??[],Q(),A.success(`Connected to Notion (${G.value.length} properties)`)}catch(e){A.error(e instanceof Error?e.message:`Notion connection failed`)}finally{be.value=!1}}return ee(()=>{Re()}),c(()=>{}),(n,r)=>(e(),re(v(ce),{visible:a.value,"onUpdate:visible":r[32]||=e=>a.value=e,modal:``,header:`AI Settings`,style:{width:`680px`},draggable:!1},{footer:ie(()=>[_(`div`,Ht,[l(v(w),{label:`Cancel`,severity:`secondary`,text:``,onClick:r[31]||=e=>a.value=!1}),l(v(w),{label:`Save`,icon:`pi pi-check`,loading:d.value,disabled:!je.value,onClick:ze},null,8,[`loading`,`disabled`])])]),default:ie(()=>[u.value?(e(),E(`div`,Be,[...r[33]||=[_(`i`,{class:`pi pi-spin pi-spinner text-xl`},null,-1)]])):(e(),E(`div`,Ve,[_(`section`,null,[r[37]||=_(`h3`,{class:`text-sm font-semibold mb-3 text-foreground`},` Provider `,-1),_(`div`,He,[_(`div`,Ue,[r[34]||=_(`label`,{class:`text-xs text-muted-foreground`},`Base URL`,-1),l(v(P),{modelValue:f.value,"onUpdate:modelValue":r[0]||=e=>f.value=e,size:`small`,placeholder:`https://dashscope.aliyuncs.com/compatible-mode/v1`},null,8,[`modelValue`])]),_(`div`,We,[r[35]||=_(`label`,{class:`text-xs text-muted-foreground`},`API Key`,-1),l(v(we),{modelValue:p.value,"onUpdate:modelValue":r[1]||=e=>p.value=e,feedback:!1,"toggle-mask":``,size:`small`,placeholder:`sk-xxx`,"input-class":`w-full`},null,8,[`modelValue`])]),_(`div`,Ge,[r[36]||=_(`label`,{class:`text-xs text-muted-foreground`},`Timeout (seconds)`,-1),l(v(P),{value:String(m.value),type:`number`,size:`small`,placeholder:`300`,min:1,onInput:r[2]||=e=>m.value=Number(e.target.value)||300},null,8,[`value`])])])]),_(`section`,null,[r[39]||=_(`h3`,{class:`text-sm font-semibold mb-3 text-foreground`},` Models `,-1),_(`div`,Ke,[(e(!0),E(te,null,t(g.value,(t,n)=>(e(),E(`div`,{key:n,class:`flex items-center gap-2 px-3 py-2 rounded border border-border bg-card`},[_(`code`,qe,i(t.name),1),_(`span`,{class:o([`inline-flex items-center gap-1 text-xs px-1.5 py-0.5 rounded`,t.capabilities.structuredOutput?`bg-green-500/10 text-green-600`:`bg-yellow-500/10 text-yellow-600`])},[_(`i`,{class:o([t.capabilities.structuredOutput?`pi pi-check-circle`:`pi pi-exclamation-triangle`,`text-[10px]`])},null,2),D(` `+i(t.capabilities.structuredOutput?`Structured Output`:`Text-only Output`),1)],2),_(`span`,{class:o([`inline-flex items-center gap-1 text-xs px-1.5 py-0.5 rounded`,t.capabilities.vision?`bg-green-500/10 text-green-600`:`bg-red-500/10 text-red-600`])},[_(`i`,{class:o([t.capabilities.vision?`pi pi-check-circle`:`pi pi-times-circle`,`text-[10px]`])},null,2),D(` `+i(t.capabilities.vision?`Vision Supported`:`Vision Unsupported`),1)],2),l(v(w),{icon:`pi pi-times`,severity:`danger`,text:``,size:`small`,onClick:e=>Ee(n)},null,8,[`onClick`])]))),128)),xe.value?(e(),E(`div`,Je,[_(`div`,Ye,[l(v(P),{modelValue:q.value,"onUpdate:modelValue":r[3]||=e=>q.value=e,size:`small`,placeholder:`Model name (e.g. gpt-4o)`,class:`flex-1 font-mono`,onInput:Se,onKeyup:le(Ce,[`enter`])},null,8,[`modelValue`]),l(v(w),{icon:`pi pi-check`,severity:`success`,text:``,size:`small`,disabled:!q.value,onClick:Ce},null,8,[`disabled`]),l(v(w),{icon:`pi pi-times`,severity:`secondary`,text:``,size:`small`,onClick:X})]),_(`div`,Xe,[_(`label`,Ze,[l(v(M),{modelValue:J.value.structuredOutput,"onUpdate:modelValue":r[4]||=e=>J.value.structuredOutput=e,binary:!0,"input-id":`add-so`},null,8,[`modelValue`]),_(`span`,{class:o(J.value.structuredOutput?`text-green-600`:`text-muted-foreground`)},` Structured Output `,2)]),_(`label`,Qe,[l(v(M),{modelValue:J.value.vision,"onUpdate:modelValue":r[5]||=e=>J.value.vision=e,binary:!0,"input-id":`add-vision`},null,8,[`modelValue`]),_(`span`,{class:o(J.value.vision?`text-green-600`:`text-muted-foreground`)},` Vision `,2)]),Y.value===`registry`?(e(),E(`span`,$e,[...r[38]||=[_(`i`,{class:`pi pi-database mr-0.5`},null,-1),D(`Registry `,-1)]])):h(``,!0)])])):(e(),re(v(w),{key:1,label:`Add Model`,icon:`pi pi-plus`,severity:`secondary`,text:``,size:`small`,onClick:r[6]||=e=>xe.value=!0}))])]),_(`section`,null,[r[54]||=_(`h3`,{class:`text-sm font-semibold mb-3 text-foreground`},` PDF Conversion `,-1),_(`div`,et,[_(`div`,tt,[r[40]||=_(`label`,{class:`text-xs text-muted-foreground`},`Converter`,-1),l(v(ge),{modelValue:x.value,"onUpdate:modelValue":r[7]||=e=>x.value=e,options:Le,"option-label":`label`,"option-value":`value`,size:`small`},null,8,[`modelValue`])]),x.value===`mineru`?(e(),E(`div`,nt,[_(`div`,rt,[r[41]||=_(`label`,{class:`text-xs text-muted-foreground`},`Command`,-1),l(v(P),{modelValue:T.value,"onUpdate:modelValue":r[8]||=e=>T.value=e,size:`small`,placeholder:`mineru`},null,8,[`modelValue`])]),_(`div`,it,[r[42]||=_(`label`,{class:`text-xs text-muted-foreground`},`Arguments`,-1),l(v($),{modelValue:ae.value,"onUpdate:modelValue":r[9]||=e=>ae.value=e,rows:`4`,"auto-resize":``,class:`text-xs font-mono`},null,8,[`modelValue`])]),_(`div`,at,[r[43]||=_(`label`,{class:`text-xs text-muted-foreground`},`Timeout (seconds)`,-1),l(v(P),{value:String(O.value),type:`number`,size:`small`,placeholder:`600`,min:1,onInput:r[10]||=e=>O.value=Number(e.target.value)||600},null,8,[`value`])]),_(`div`,ot,[l(v(M),{modelValue:oe.value,"onUpdate:modelValue":r[11]||=e=>oe.value=e,binary:!0,"input-id":`mineru-fallback`},null,8,[`modelValue`]),r[44]||=_(`label`,{for:`mineru-fallback`,class:`text-sm cursor-pointer`},`Fallback to built-in converter`,-1)]),_(`div`,st,[l(v(M),{modelValue:se.value,"onUpdate:modelValue":r[12]||=e=>se.value=e,binary:!0,"input-id":`mineru-keep-output`},null,8,[`modelValue`]),r[45]||=_(`label`,{for:`mineru-keep-output`,class:`text-sm cursor-pointer`},`Keep converted files on disk`,-1)]),r[46]||=_(`div`,{class:`text-xs text-muted-foreground p-2 rounded border border-border`},[D(` Placeholders: `),_(`code`,{class:`bg-secondary px-1 rounded`},`{input}`),D(`, `),_(`code`,{class:`bg-secondary px-1 rounded`},`{outputDir}`),D(`, `),_(`code`,{class:`bg-secondary px-1 rounded`},`{basename}`)],-1)])):h(``,!0),x.value===`markitdown`?(e(),E(`div`,ct,[_(`div`,lt,[r[47]||=_(`label`,{class:`text-xs text-muted-foreground`},`Command`,-1),l(v(P),{modelValue:k.value,"onUpdate:modelValue":r[13]||=e=>k.value=e,size:`small`,placeholder:`markitdown`},null,8,[`modelValue`])]),_(`div`,ut,[r[48]||=_(`label`,{class:`text-xs text-muted-foreground`},`Arguments`,-1),l(v($),{modelValue:ue.value,"onUpdate:modelValue":r[14]||=e=>ue.value=e,rows:`4`,"auto-resize":``,class:`text-xs font-mono`},null,8,[`modelValue`])]),_(`div`,dt,[r[49]||=_(`label`,{class:`text-xs text-muted-foreground`},`Output File`,-1),l(v(P),{modelValue:j.value,"onUpdate:modelValue":r[15]||=e=>j.value=e,size:`small`,class:`text-xs font-mono`,placeholder:`{outputDir}/{basename}.md`},null,8,[`modelValue`])]),_(`div`,ft,[r[50]||=_(`label`,{class:`text-xs text-muted-foreground`},`Timeout (seconds)`,-1),l(v(P),{value:String(N.value),type:`number`,size:`small`,placeholder:`600`,min:1,onInput:r[16]||=e=>N.value=Number(e.target.value)||600},null,8,[`value`])]),_(`div`,pt,[l(v(M),{modelValue:F.value,"onUpdate:modelValue":r[17]||=e=>F.value=e,binary:!0,"input-id":`markitdown-fallback`},null,8,[`modelValue`]),r[51]||=_(`label`,{for:`markitdown-fallback`,class:`text-sm cursor-pointer`},`Fallback to built-in converter`,-1)]),_(`div`,mt,[l(v(M),{modelValue:I.value,"onUpdate:modelValue":r[18]||=e=>I.value=e,binary:!0,"input-id":`markitdown-keep-output`},null,8,[`modelValue`]),r[52]||=_(`label`,{for:`markitdown-keep-output`,class:`text-sm cursor-pointer`},`Keep converted files on disk`,-1)]),r[53]||=_(`div`,{class:`text-xs text-muted-foreground p-2 rounded border border-border`},[D(` Placeholders: `),_(`code`,{class:`bg-secondary px-1 rounded`},`{input}`),D(`, `),_(`code`,{class:`bg-secondary px-1 rounded`},`{outputDir}`),D(`, `),_(`code`,{class:`bg-secondary px-1 rounded`},`{basename}`)],-1)])):h(``,!0)])]),_(`section`,null,[r[59]||=_(`h3`,{class:`text-sm font-semibold mb-3 text-foreground`},` Langfuse Tracing `,-1),_(`div`,ht,[_(`div`,gt,[l(v(M),{modelValue:L.value,"onUpdate:modelValue":r[19]||=e=>L.value=e,binary:!0,"input-id":`lf-enabled`},null,8,[`modelValue`]),r[55]||=_(`label`,{for:`lf-enabled`,class:`text-sm cursor-pointer`},`Enabled`,-1)]),L.value?(e(),E(`div`,_t,[_(`div`,vt,[r[56]||=_(`label`,{class:`text-xs text-muted-foreground`},`Secret Key`,-1),l(v(we),{modelValue:ve.value,"onUpdate:modelValue":r[20]||=e=>ve.value=e,feedback:!1,"toggle-mask":``,size:`small`,placeholder:`sk-lf-...`,"input-class":`w-full`},null,8,[`modelValue`])]),_(`div`,yt,[r[57]||=_(`label`,{class:`text-xs text-muted-foreground`},`Public Key`,-1),l(v(P),{modelValue:_e.value,"onUpdate:modelValue":r[21]||=e=>_e.value=e,size:`small`,placeholder:`pk-lf-...`},null,8,[`modelValue`])]),_(`div`,bt,[r[58]||=_(`label`,{class:`text-xs text-muted-foreground`},`Host (optional)`,-1),l(v(P),{modelValue:ye.value,"onUpdate:modelValue":r[22]||=e=>ye.value=e,size:`small`,placeholder:`https://us.cloud.langfuse.com`},null,8,[`modelValue`])])])):h(``,!0)])]),_(`section`,null,[r[67]||=_(`h3`,{class:`text-sm font-semibold mb-3 text-foreground`},` Notion Export `,-1),_(`div`,xt,[_(`div`,St,[l(v(M),{modelValue:R.value,"onUpdate:modelValue":r[23]||=e=>R.value=e,binary:!0,"input-id":`notion-enabled`},null,8,[`modelValue`]),r[60]||=_(`label`,{for:`notion-enabled`,class:`text-sm cursor-pointer`},`Enabled`,-1)]),_(`div`,Ct,[_(`div`,wt,[r[61]||=_(`label`,{class:`text-xs text-muted-foreground`},`Integration Token`,-1),l(v(we),{modelValue:z.value,"onUpdate:modelValue":r[24]||=e=>z.value=e,feedback:!1,"toggle-mask":``,size:`small`,placeholder:`secret_...`,"input-class":`w-full`},null,8,[`modelValue`])]),_(`div`,Tt,[r[62]||=_(`label`,{class:`text-xs text-muted-foreground`},`Schema Binding`,-1),l(v(ge),{modelValue:V.value,"onUpdate:modelValue":r[25]||=e=>V.value=e,options:ke.value,size:`small`,placeholder:`Select a schema`,disabled:ke.value.length===0},null,8,[`modelValue`,`options`,`disabled`])]),_(`div`,Et,[r[63]||=_(`label`,{class:`text-xs text-muted-foreground`},`Database URL or ID`,-1),l(v(P),{modelValue:H.value,"onUpdate:modelValue":r[26]||=e=>H.value=e,size:`small`,placeholder:`https://www.notion.so/... or xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`},null,8,[`modelValue`])]),_(`div`,Dt,[r[64]||=_(`label`,{class:`text-xs text-muted-foreground`},`Title Property (optional)`,-1),l(v(P),{modelValue:U.value,"onUpdate:modelValue":r[27]||=e=>U.value=e,size:`small`,placeholder:`Name`},null,8,[`modelValue`])]),_(`div`,Ot,[l(v(w),{label:`Test & Auto Map`,icon:`pi pi-bolt`,severity:`secondary`,size:`small`,loading:be.value,disabled:!V.value||!z.value.trim()||!H.value.trim()||!!Z.value,onClick:Gt},null,8,[`loading`,`disabled`]),G.value.length>0?(e(),E(`span`,kt,i(G.value.length)+` properties loaded `,1)):h(``,!0)]),G.value.length>0?(e(),E(`div`,At,[(e(!0),E(te,null,t(G.value,t=>(e(),E(`div`,{key:t.name,class:`flex items-center justify-between gap-3 px-2 py-1.5 text-xs`},[_(`span`,jt,i(t.name),1),_(`span`,Mt,i(t.type),1)]))),128))])):h(``,!0),_(`div`,Nt,[_(`div`,Pt,[r[65]||=_(`label`,{class:`text-xs text-muted-foreground`},`Field Map JSON (optional)`,-1),K.value.length>0?(e(),E(`span`,Ft,i(Ae.value)+` / `+i(K.value.length)+` mapped `,1)):h(``,!0)]),l(v($),{modelValue:W.value,"onUpdate:modelValue":r[28]||=e=>W.value=e,rows:`5`,"auto-resize":``,class:`text-xs font-mono`,placeholder:`{
|
|
203
|
+
"invoiceNo": "Invoice No",
|
|
204
|
+
"issuedAt": "Issued At"
|
|
205
|
+
}`},null,8,[`modelValue`]),Z.value?(e(),E(`p`,It,i(Z.value),1)):h(``,!0)]),r[66]||=_(`div`,{class:`text-xs text-muted-foreground p-2 rounded border border-border`},` Selecting a schema fills the left-side keys. Fill the values with Notion property names, or test to auto-map matching properties. `,-1)])])]),_(`section`,null,[r[71]||=_(`h3`,{class:`text-sm font-semibold mb-3 text-foreground`},` Prompt Templates `,-1),_(`div`,Lt,[_(`div`,Rt,[r[68]||=_(`label`,{class:`text-xs text-muted-foreground`},`System Prompt`,-1),l(v($),{modelValue:y.value,"onUpdate:modelValue":r[29]||=e=>y.value=e,rows:`6`,"auto-resize":``,class:`text-xs font-mono`},null,8,[`modelValue`]),De.value?(e(),E(`p`,zt,i(De.value),1)):h(``,!0)]),_(`div`,Bt,[r[69]||=_(`label`,{class:`text-xs text-muted-foreground`},`User Prompt`,-1),l(v($),{modelValue:b.value,"onUpdate:modelValue":r[30]||=e=>b.value=e,rows:`6`,"auto-resize":``,class:`text-xs font-mono`},null,8,[`modelValue`]),Oe.value?(e(),E(`p`,Vt,i(Oe.value),1)):h(``,!0)]),r[70]||=_(`div`,{class:`text-xs text-muted-foreground p-2 rounded border border-border`},[D(` Placeholders: `),_(`code`,{class:`bg-secondary px-1 rounded`},`{schema}`),D(` JSON Schema structure description, `),_(`code`,{class:`bg-secondary px-1 rounded`},`{text}`),D(` text to extract from `)],-1)])])]))]),_:1},8,[`visible`]))}});export{Gt as default};
|