@sfxcode/formkit-primevue 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -5
- package/dist/formkit-primevue.es.js +0 -3131
- package/dist/formkit-primevue.umd.js +0 -1
- package/dist/index.d.ts +0 -25
- package/dist/index_form.json +0 -128
- package/dist/manifest.json +0 -7
- package/dist/sass/formkit-prime-inputs.scss +0 -49
- package/dist/sass/formkit-primevue.scss +0 -87
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(k,o){typeof exports=="object"&&typeof module!="undefined"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(k=typeof globalThis!="undefined"?globalThis:k||self,o(k["formkit-primevue"]={},k.Vue))})(this,function(k,o){"use strict";var Ar=Object.defineProperty,Ir=Object.defineProperties;var jr=Object.getOwnPropertyDescriptors;var ce=Object.getOwnPropertySymbols;var Ct=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable;var wt=(k,o,R)=>o in k?Ar(k,o,{enumerable:!0,configurable:!0,writable:!0,value:R}):k[o]=R,T=(k,o)=>{for(var R in o||(o={}))Ct.call(o,R)&&wt(k,R,o[R]);if(ce)for(var R of ce(o))kt.call(o,R)&&wt(k,R,o[R]);return k},pe=(k,o)=>Ir(k,jr(o));var Ie=(k,o)=>{var R={};for(var F in k)Ct.call(k,F)&&o.indexOf(F)<0&&(R[F]=k[F]);if(k!=null&&ce)for(var F of ce(k))o.indexOf(F)<0&&kt.call(k,F)&&(R[F]=k[F]);return R};function R(){return Math.random().toString(36).substring(2,15)}function F(e,n){const t=e instanceof Set?e:new Set(e);return n&&n.forEach(r=>t.add(r)),[...t]}function j(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function de(e,n,t=!0,r=["__key"]){if(e===n)return!0;if(typeof n=="object"&&typeof e=="object"){if(e instanceof Map||e instanceof Set||e instanceof Date||e===null||n===null||Object.keys(e).length!==Object.keys(n).length)return!1;for(const i of r)if((i in e||i in n)&&e[i]!==n[i])return!1;for(const i in e)if(!(i in n)||e[i]!==n[i]&&!t||t&&!de(e[i],n[i],t,r))return!1;return!0}return!1}function me(e){return Object.prototype.toString.call(e)==="[object Object]"}function ye(e){return me(e)||Array.isArray(e)}function ee(e){if(me(e)===!1||e.__FKNode__||e.__POJO__===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const t=n.prototype;return!(me(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)}function te(e,n,t=!1,r=!1){if(n===null)return null;const i={};if(typeof n=="string")return n;for(const s in e)if(j(n,s)&&(n[s]!==void 0||!r)){if(t&&Array.isArray(e[s])&&Array.isArray(n[s])){i[s]=e[s].concat(n[s]);continue}if(n[s]===void 0)continue;ee(e[s])&&ee(n[s])?i[s]=te(e[s],n[s],t,r):i[s]=n[s]}else i[s]=e[s];for(const s in n)!j(i,s)&&n[s]!==void 0&&(i[s]=n[s]);return i}function St(e){if(e[0]!=='"'&&e[0]!=="'"||e[0]!==e[e.length-1])return!1;const n=e[0];for(let t=1;t<e.length;t++)if(e[t]===n&&(t===1||e[t-1]!=="\\")&&t!==e.length-1)return!1;return!0}function vt(e){if(!e.length)return"";let n="",t="";for(let r=0;r<e.length;r++){const i=e.charAt(r);(i!=="\\"||t==="\\")&&(n+=i),t=i}return n}function H(...e){return e.reduce((n,t)=>{const _=t,{value:r,name:i,modelValue:s,config:l,plugins:f}=_,y=Ie(_,["value","name","modelValue","config","plugins"]);return Object.assign(n,y)},{})}function Ot(e){const n=[];let t="",r=0,i="",s="";for(let l=0;l<e.length;l++){const f=e.charAt(l);f===i&&s!=="\\"?i="":(f==="'"||f==='"')&&!i&&s!=="\\"?i=f:f==="("&&!i?r++:f===")"&&!i&&r--,f===","&&!i&&r===0?(n.push(t),t=""):(f!==" "||i)&&(t+=f),s=f}return t&&n.push(t),n}function je(e,n){const t={},r=n.filter(s=>s instanceof RegExp),i=new Set(n);for(const s in e)!i.has(s)&&!r.some(l=>l.test(s))&&(t[s]=e[s]);return t}function Ne(e,n){const t={},r=n.filter(i=>i instanceof RegExp);return n.forEach(i=>{i instanceof RegExp||(t[i]=e[i])}),Object.keys(e).forEach(i=>{r.some(s=>s.test(i))&&(t[i]=e[i])}),t}function ne(e){return e.replace(/-([a-z0-9])/gi,(n,t)=>t.toUpperCase())}function Re(e){return e.replace(/([a-z0-9])([A-Z])/g,(n,t,r)=>t+"-"+r.toLowerCase()).replace(" ","-").toLowerCase()}function J(e,n=["__key","__init"]){if(e===null||e instanceof RegExp||e instanceof Date||e instanceof Map||e instanceof Set||typeof File=="function"&&e instanceof File)return e;let t;Array.isArray(e)?t=e.map(r=>typeof r=="object"?J(r,n):r):t=Object.keys(e).reduce((r,i)=>(r[i]=typeof e[i]=="object"?J(e[i],n):e[i],r),{});for(const r of n)r in e&&Object.defineProperty(t,r,{enumerable:!1,value:e[r]});return t}function Z(e){return typeof e=="object"?J(e):e}function Vt(e,n){if(!e||typeof e!="object")return null;const t=n.split(".");let r=e;for(const i in t){const s=t[i];if(j(r,s)&&(r=r[s]),+i===t.length-1)return r;if(!r||typeof r!="object")return null}return null}function Me(e){return e!==void 0&&e!=="false"&&e!==!1?!0:void 0}function Q(e){return Object.isFrozen(e)?e:Object.defineProperty(e,"__init",{enumerable:!1,value:!0})}function Te(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")}function he(){const e=[];let n=0;const t=i=>e.push(i),r=i=>{const s=e[n];return typeof s=="function"?s(i,l=>(n++,r(l===void 0?i:l))):(n=0,i)};return t.dispatch=r,t.unshift=i=>e.unshift(i),t.remove=i=>{const s=e.indexOf(i);s>-1&&e.splice(s,1)},t}function Be(){const e=new Map,n=new Map;let t;const r=(i,s)=>{if(t){t.set(s.name,[i,s]);return}e.has(s.name)&&e.get(s.name).forEach(l=>{(s.origin===i||l.modifiers.includes("deep"))&&l.listener(s)}),s.bubble&&i.bubble(s)};return r.on=(i,s)=>{const[l,...f]=i.split("."),y=s.receipt||R(),_={modifiers:f,event:l,listener:s,receipt:y};return e.has(l)?e.get(l).push(_):e.set(l,[_]),n.has(y)?n.get(y).push(l):n.set(y,[l]),y},r.off=i=>{var s;n.has(i)&&((s=n.get(i))===null||s===void 0||s.forEach(l=>{const f=e.get(l);Array.isArray(f)&&e.set(l,f.filter(y=>y.receipt!==i))}),n.delete(i))},r.pause=i=>{t||(t=new Map),i&&i.walk(s=>s._e.pause())},r.play=i=>{if(!t)return;const s=t;t=void 0,s.forEach(([l,f])=>r(l,f)),i&&i.walk(l=>l._e.play())},r}function Et(e,n,t,r,i=!0){return n._e(e,{payload:r,name:t,bubble:i,origin:e}),e}function Pt(e,n,t){return oe(e.parent)&&e.parent._e(e.parent,t),e}function At(e,n,t,r){return n._e.on(t,r)}function It(e,n,t){return n._e.off(t),e}const ge=he();ge((e,n)=>(e.message||(e.message=String(`E${e.code}`)),n(e)));const _e=he();_e((e,n)=>{e.message||(e.message=String(`W${e.code}`));const t=n(e);return console&&typeof console.warn=="function"&&console.warn(t.message),t});function re(e,n={}){_e.dispatch({code:e,data:n})}function D(e,n={}){throw Error(ge.dispatch({code:e,data:n}).message)}function ie(e,n){const t=T({blocking:!1,key:R(),meta:{},type:"state",visible:!0},e);return n&&t.value&&t.meta.localize!==!1&&(t.value=n.t(t),t.meta.locale=n.config.locale),t}const De={apply:Bt,set:Nt,remove:Fe,filter:Mt,reduce:Tt,release:zt,touch:Rt};function jt(e=!1){const n={};let t,r=e,i=[];const s=new Map;let l;const f=new Proxy(n,{get(...y){const[_,$]=y;return $==="buffer"?r:$==="_b"?i:$==="_m"?s:$==="_r"?l:j(De,$)?De[$].bind(null,n,f,t):Reflect.get(...y)},set(y,_,$){return _==="_n"?(t=$,l==="__n"&&ze(t,f),!0):_==="_b"?(i=$,!0):_==="buffer"?(r=$,!0):_==="_r"?(l=$,!0):(D(101,t),!1)}});return f}function Nt(e,n,t,r){if(n.buffer)return n._b.push([[r]]),n;if(e[r.key]!==r){if(typeof r.value=="string"&&r.meta.localize!==!1){const s=r.value;r.value=t.t(r),r.value!==s&&(r.meta.locale=t.props.locale)}const i=`message-${j(e,r.key)?"updated":"added"}`;e[r.key]=Object.freeze(t.hook.message.dispatch(r)),t.emit(i,r)}return n}function Rt(e,n){for(const t in e){const r=T({},e[t]);n.set(r)}}function Fe(e,n,t,r){if(j(e,r)){const i=e[r];delete e[r],t.emit("message-removed",i)}return n.buffer===!0&&(n._b=n._b.filter(i=>(i[0]=i[0].filter(s=>s.key!==r),i[1]||i[0].length))),n}function Mt(e,n,t,r,i){for(const s in e){const l=e[s];(!i||l.type===i)&&!r(l)&&Fe(e,n,t,s)}}function Tt(e,n,t,r,i){for(const s in e){const l=e[s];i=r(i,l)}return i}function Bt(e,n,t,r,i){if(Array.isArray(r)){if(n.buffer){n._b.push([r,i]);return}const s=new Set(r.map(l=>(n.set(l),l.key)));typeof i=="string"?n.filter(l=>l.type!==i||s.has(l.key)):typeof i=="function"&&n.filter(l=>!i(l)||s.has(l.key))}else for(const s in r){const l=t.at(s);l?l.store.apply(r[s],i):Ft(t,n,s,r[s],i)}}function Dt(e,...n){const t=`${e.name}-set`,r=i=>ie({key:Te(i),type:"error",value:i,meta:{source:t,autoClear:!0}});return n.filter(i=>!!i).map(i=>{if(typeof i=="string"&&(i=[i]),Array.isArray(i))return i.map(s=>r(s));{const s={};for(const l in i)Array.isArray(i[l])?s[l]=i[l].map(f=>r(f)):s[l]=[r(i[l])];return s}})}function Ft(e,n,t,r,i){var s;const l=n._m;l.has(t)||l.set(t,[]),n._r||(n._r=ze(e,n)),(s=l.get(t))===null||s===void 0||s.push([r,i])}function ze(e,n){return e.on("child.deep",({payload:t})=>{n._m.forEach((r,i)=>{e.at(i)===t&&(r.forEach(([s,l])=>{t.store.apply(s,l)}),n._m.delete(i))}),n._m.size===0&&n._r&&(e.off(n._r),n._r=void 0)})}function zt(e,n){n.buffer=!1,n._b.forEach(([t,r])=>n.apply(t,r)),n._b=[]}function Wt(){const e={};let n;return{count:(...t)=>Lt(n,e,...t),init(t){n=t,t.on("message-added.deep",Le(e,1)),t.on("message-removed.deep",Le(e,-1))},merge:t=>qe(n,e,t),settled(t){return j(e,t)?e[t].promise:Promise.resolve()},unmerge:t=>qe(n,e,t,!0),value(t){return j(e,t)?e[t].count:0}}}function Lt(e,n,t,r,i=0){if(r=qt(r||t),!j(n,t)){const s={condition:r,count:0,name:t,node:e,promise:Promise.resolve(),resolve:()=>{}};n[t]=s,i=e.store.reduce((l,f)=>l+s.condition(f)*1,i),e.each(l=>{l.ledger.count(s.name,s.condition),i+=l.ledger.value(s.name)})}return We(n[t],i).promise}function qt(e){return typeof e=="function"?e:n=>n.type===e}function We(e,n){const t=e.count,r=e.count+n;return e.count=r,t===0&&r!==0?(e.node.emit(`unsettled:${e.name}`,e.count,!1),e.promise=new Promise(i=>e.resolve=i)):t!==0&&r===0&&(e.node.emit(`settled:${e.name}`,e.count,!1),e.resolve()),e.node.emit(`count:${e.name}`,e.count,!1),e}function Le(e,n){return t=>{for(const r in e){const i=e[r];i.condition(t.payload)&&We(i,n)}}}function qe(e,n,t,r=!1){for(const i in n){const s=n[i].condition;r||t.ledger.count(i,s);const l=t.ledger.value(i)*(r?-1:1);if(!!e)do e.ledger.count(i,s,l),e=e.parent;while(e)}}const be=new Map,se=new Map,$e=Be(),Kt=[];function xt(e){e.props.id&&(be.set(e.props.id,e),se.set(e,e.props.id),$e(e,{payload:e,name:e.props.id,bubble:!1,origin:e}))}function Ut(e){if(se.has(e)){const n=se.get(e);se.delete(e),be.delete(n),$e(e,{payload:null,name:n,bubble:!1,origin:e})}}function Ke(e){return be.get(e)}function Ht(e,n){Kt.push($e.on(e,n))}function xe(e,n,t){let r=!0;return n in e.config._t?r=!1:e.emit(`config:${n}`,t,!1),n in e.props||(e.emit("prop",{prop:n,value:t}),e.emit(`prop:${n}`,t)),r}function Zt(e){const n=document.getElementById(e);if(n instanceof HTMLFormElement){const t=new Event("submit",{cancelable:!0,bubbles:!0});n.dispatchEvent(t);return}re(151,e)}function Jt(e){const n=t=>{for(const r in t.store){const i=t.store[r];i.type==="error"||i.type==="ui"&&r==="incomplete"?t.store.remove(r):i.type==="state"&&t.store.set(pe(T({},i),{value:!1}))}};n(e),e.walk(n)}function Qt(e,n){const t=typeof e=="string"?Ke(e):e;if(t){const r=s=>Z(s.props.initial)||(s.type==="group"?{}:s.type==="list"?[]:void 0);t._e.pause(t),t.input(Z(n)||r(t),!1),t.walk(s=>s.input(r(s),!1));const i=r(t);return t.input(typeof i=="object"?Z(n)||Q(i):i,!1),t._e.play(t),Jt(t),t.emit("reset",t),t}re(152,e)}const Yt={delimiter:".",delay:0,locale:"en",rootClasses:e=>({[`formkit-${Re(e)}`]:!0})},Ue=Symbol("index"),we=Symbol("removed"),Ce=Symbol("moved"),He=Symbol("inserted");function Xt(e){return e.type==="list"&&Array.isArray(e._value)}function oe(e){return e&&typeof e=="object"&&e.__FKNode__===!0}const le=(e,n,t)=>{D(102,[e,t])},Gt={_c:v(wn,le,!1),add:v(dn),addProps:v(pn),address:v(kn,le,!1),at:v(Sn),bubble:v(Pt),clearErrors:v(jn),calm:v(fn),config:v(!1),define:v(cn),disturb:v(an),destroy:v(un),hydrate:v(ln),index:v($n,bn,!1),input:v(Je),each:v(hn),emit:v(Et),find:v(On),on:v(At),off:v(It),parent:v(!1,mn),plugins:v(!1),remove:v(yn),root:v(En,le,!1),reset:v(In),resetConfig:v(_n),setErrors:v(Xe),submit:v(An),t:v(Pn),use:v(ke),name:v(Cn,!1,!1),walk:v(gn)};function en(){return new Map(Object.entries(Gt))}function v(e,n,t=!0){return{get:e?(r,i)=>t?(...s)=>e(r,i,...s):e(r,i):!1,set:n!==void 0?n:le.bind(null)}}function tn(){const e=new Map;return new Proxy(e,{get(n,t){return e.has(t)||e.set(t,he()),e.get(t)}})}let nn=0,rn=0;function sn(e){var n,t;return((n=e.parent)===null||n===void 0?void 0:n.type)==="list"?Ue:e.name||`${((t=e.props)===null||t===void 0?void 0:t.type)||"input"}_${++nn}`}function Ze(e){return e.type==="group"?Q(e.value&&typeof e.value=="object"&&!Array.isArray(e.value)?e.value:{}):e.type==="list"?Q(Array.isArray(e.value)?e.value:[]):e.value===null?"":e.value}function Je(e,n,t,r=!0){return n._value=on(e,e.hook.input.dispatch(t)),e.emit("input",n._value),n.isSettled&&e.disturb(),r?(n._tmo&&clearTimeout(n._tmo),n._tmo=setTimeout(ae,e.props.delay,e,n)):ae(e,n),n.settled}function on(e,n){switch(e.type){case"input":break;case"group":(!n||typeof n!="object")&&D(107,[e,n]);break;case"list":Array.isArray(n)||D(108,[e,n]);break}return n}function ae(e,n,t=!0,r=!0){n._value=n.value=e.hook.commit.dispatch(n._value),e.type!=="input"&&r&&e.hydrate(),e.emit("commit",n.value),t&&e.calm()}function Qe(e,{name:n,value:t,from:r}){if(!Object.isFrozen(e._value)){if(Xt(e)){const i=t===we?[]:t===Ce&&typeof r=="number"?e._value.splice(r,1):[t];e._value.splice(n,t===Ce||r===He?0:1,...i);return}t!==we?e._value[n]=t:delete e._value[n]}}function ln(e,n){const t=n._value;return n.children.forEach(r=>{if(typeof t=="object")if(r.name in t){const i=r.type!=="input"||t[r.name]&&typeof t[r.name]=="object"?Q(t[r.name]):t[r.name];r.input(i,!1)}else(e.type!=="list"||typeof r.name=="number")&&Qe(n,{name:r.name,value:r.value}),t.__init||(r.type==="group"?r.input({},!1):r.type==="list"?r.input([],!1):r.input(void 0,!1))}),e}function an(e,n){var t;return n._d<=0&&(n.isSettled=!1,e.emit("settled",!1,!1),n.settled=new Promise(r=>{n._resolve=r}),e.parent&&((t=e.parent)===null||t===void 0||t.disturb())),n._d++,e}function fn(e,n,t){var r;if(t!==void 0&&e.type!=="input")return Qe(n,t),ae(e,n,!0,!1);n._d>0&&n._d--,n._d===0&&(n.isSettled=!0,e.emit("settled",!0,!1),e.parent&&((r=e.parent)===null||r===void 0||r.calm({name:e.name,value:n.value})),n._resolve&&n._resolve(n.value))}function un(e,n){e.emit("destroying",e),e.store.filter(()=>!1),e.parent&&e.parent.remove(e),Ut(e),n._value=n.value=void 0,e.emit("destroyed",e)}function cn(e,n,t){n.type=t.type,n.props.definition=J(t),n.value=n._value=Ze({type:e.type,value:n.value}),t.features&&t.features.forEach(r=>r(e)),t.props&&e.addProps(t.props),e.emit("defined",t)}function pn(e,n,t){var r;if(e.props.attrs){const i=T({},e.props.attrs);e.props._emit=!1;for(const l in i){const f=ne(l);t.includes(f)&&(e.props[f]=i[l],delete i[l])}const s=Z(n._value);e.props.initial=e.type!=="input"?Q(s):s,e.props._emit=!0,e.props.attrs=i,e.props.definition&&(e.props.definition.props=[...((r=e.props.definition)===null||r===void 0?void 0:r.props)||[],...t])}return e.emit("added-props",t),e}function dn(e,n,t,r){if(e.type==="input"&&D(100,e),t.parent&&t.parent!==e&&t.parent.remove(t),n.children.includes(t)||(r!==void 0&&e.type==="list"?(n.children.splice(r,0,t),Array.isArray(e.value)&&e.value.length<n.children.length&&e.disturb().calm({name:r,value:t.value,from:He})):n.children.push(t),t.isSettled||e.disturb()),t.parent!==e){if(t.parent=e,t.parent!==e)return e.remove(t),t.parent.add(t),e}else t.use(e.plugins);return ae(e,n,!1),e.ledger.merge(t),e.emit("child",t),e}function mn(e,n,t,r){return oe(r)?(e.parent&&e.parent!==r&&e.parent.remove(e),n.parent=r,e.resetConfig(),r.children.includes(e)?e.use(r.plugins):r.add(e),!0):r===null?(n.parent=null,!0):!1}function yn(e,n,t){const r=n.children.indexOf(t);if(r!==-1){t.isSettled&&e.disturb(),n.children.splice(r,1);let i=Me(t.props.preserve),s=t.parent;for(;i===void 0&&s;)i=Me(s.props.preserve),s=s.parent;i?e.calm():e.calm({name:e.type==="list"?r:t.name,value:we}),t.parent=null,t.config._rmn=t}return e.ledger.unmerge(t),e}function hn(e,n,t){n.children.forEach(r=>t(r))}function gn(e,n,t,r=!1){n.children.forEach(i=>{(t(i)!==!1||!r)&&i.walk(t)})}function _n(e,n){const t=e.parent||void 0;n.config=Ye(e.config._t,t),e.walk(r=>r.resetConfig())}function ke(e,n,t,r=!0,i=!0){return Array.isArray(t)||t instanceof Set?(t.forEach(s=>ke(e,n,s)),e):(n.plugins.has(t)||(i&&typeof t.library=="function"&&t.library(e),r&&t(e)!==!1&&(n.plugins.add(t),e.children.forEach(s=>s.use(t)))),e)}function bn(e,n,t,r){if(oe(e.parent)){const i=e.parent.children,s=r>=i.length?i.length-1:r<0?0:r,l=i.indexOf(e);return l===-1?!1:(i.splice(l,1),i.splice(s,0,e),e.parent.children=i,e.parent.type==="list"&&e.parent.disturb().calm({name:s,value:Ce,from:l}),!0)}return!1}function $n(e){if(e.parent){const n=[...e.parent.children].indexOf(e);return n===-1?e.parent.children.length:n}return-1}function wn(e,n){return n}function Cn(e,n){var t;return((t=e.parent)===null||t===void 0?void 0:t.type)==="list"?e.index:n.name!==Ue?n.name:e.index}function kn(e,n){return n.parent?n.parent.address.concat([e.name]):[e.name]}function Sn(e,n,t){const r=typeof t=="string"?t.split(e.config.delimiter):t;if(!r.length)return;const i=r[0];let s=e.parent;for(s||(String(r[0])===String(e.name)&&r.shift(),s=e),i==="$parent"&&r.shift();s&&r.length;){const l=r.shift();switch(l){case"$root":s=e.root;break;case"$parent":s=s.parent;break;case"$self":s=e;break;default:s=s.children.find(f=>String(f.name)===String(l))||vn(s,l)}}return s||void 0}function vn(e,n){const t=String(n).match(/^(find)\((.*)\)$/);if(t){const[,r,i]=t,s=i.split(",").map(l=>l.trim());switch(r){case"find":return e.find(s[0],s[1]);default:return}}}function On(e,n,t,r){return Vn(e,t,r)}function Vn(e,n,t="name"){const r=typeof t=="string"?s=>s[t]==n:t,i=[e];for(;i.length;){const s=i.shift();if(r(s,n))return s;i.push(...s.children)}}function En(e){let n=e;for(;n.parent;)n=n.parent;return n}function Ye(e={},n){let t;return new Proxy(e,{get(...r){const i=r[1];if(i==="_t")return e;const s=Reflect.get(...r);if(s!==void 0)return s;if(n){const l=n.config[i];if(l!==void 0)return l}if(e.rootConfig&&typeof i=="string"){const l=e.rootConfig[i];if(l!==void 0)return l}return i==="delay"&&(t==null?void 0:t.type)==="input"?20:Yt[i]},set(...r){const i=r[1],s=r[2];if(i==="_n")return t=s,e.rootConfig&&e.rootConfig._add(t),!0;if(i==="_rmn")return e.rootConfig&&e.rootConfig._rm(t),t=void 0,!0;if(!de(e[i],s,!1)){const l=Reflect.set(...r);return t&&(t.emit(`config:${i}`,s,!1),xe(t,i,s),t.walk(f=>xe(f,i,s),!0)),l}return!0}})}function Pn(e,n,t,r="ui"){const i=typeof t=="string"?{key:t,value:t,type:r}:t,s=e.hook.text.dispatch(i);return e.emit("text",s,!1),s.value}function An(e){const n=e.name;do{if(e.props.isForm===!0)break;e.parent||D(106,n),e=e.parent}while(e);e.props.id&&Zt(e.props.id)}function In(e,n,t){return Qt(e,t)}function Xe(e,n,t,r){const i=`${e.name}-set`;return Dt(e,t,r).forEach(s=>{e.store.apply(s,l=>l.meta.source===i)}),e}function jn(e,n,t=!0){if(Xe(e,n,[]),t){const r=`${e.name}-set`;e.walk(i=>{i.store.filter(s=>!(s.type==="error"&&s.meta&&s.meta.source===r))})}return e}function Nn(e){return j(e.props,"id")||(e.props.id=`input_${rn++}`),e}function Rn(e){const n={initial:typeof e=="object"?Z(e):e};let t,r=!0;return new Proxy(n,{get(...i){const[s,l]=i;if(j(n,l))return Reflect.get(...i);if(t&&typeof l=="string"&&t.config[l]!==void 0)return t.config[l]},set(i,s,l,f){if(s==="_n")return t=l,!0;if(s==="_emit")return r=l,!0;const{prop:y,value:_}=t.hook.prop.dispatch({prop:s,value:l});if(!de(n[y],_,!1)||typeof _=="object"){const $=Reflect.set(i,y,_,f);return r&&(t.emit("prop",{prop:y,value:_}),typeof y=="string"&&t.emit(`prop:${y}`,_)),$}return!0}})}function Mn(e,n){if(e.props.definition)return e.define(e.props.definition);for(const t of n){if(e.props.definition)return;typeof t.library=="function"&&t.library(e)}}function Tn(e){const n=Ze(e),t=Ye(e.config||{},e.parent);return{_d:0,_e:Be(),_resolve:!1,_tmo:!1,_value:n,children:F(e.children||[]),config:t,hook:tn(),isCreated:!1,isSettled:!0,ledger:Wt(),name:sn(e),parent:e.parent||null,plugins:new Set,props:Rn(n),settled:Promise.resolve(n),store:jt(!0),traps:en(),type:e.type||"input",value:n}}function Bn(e,n){var t;if(e.ledger.init(e.store._n=e.props._n=e.config._n=e),e.props._emit=!1,n.props&&Object.assign(e.props,n.props),e.props._emit=!0,Mn(e,new Set([...n.plugins||[],...e.parent?e.parent.plugins:[]])),n.plugins)for(const r of n.plugins)ke(e,e._c,r,!0,!1);return Nn(e),e.each(r=>e.add(r)),e.parent&&e.parent.add(e,n.index),e.type==="input"&&e.children.length&&D(100,e),Je(e,e._c,e._value,!1),e.store.release(),!((t=n.props)===null||t===void 0)&&t.id&&xt(e),e.emit("created",e),e.isCreated=!0,e}function Dn(e){const n=e||{},t=Tn(n),r=new Proxy(t,{get(...i){const[,s]=i;if(s==="__FKNode__")return!0;const l=t.traps.get(s);return l&&l.get?l.get(r,t):Reflect.get(...i)},set(...i){const[,s,l]=i,f=t.traps.get(s);return f&&f.set?f.set(r,t,s,l):Reflect.set(...i)}});return Bn(r,n)}function Fn(e){return typeof e!="string"&&j(e,"$el")}function Ge(e){return typeof e!="string"&&j(e,"$cmp")}function Y(e){return!e||typeof e=="string"?!1:j(e,"if")&&j(e,"then")}function zn(e){return typeof e!="string"&&"$formkit"in e}function Wn(e){if(typeof e=="string")return{$el:"text",children:e};if(zn(e)){const n=e,{$formkit:t,for:r,if:i,children:s,key:l,bind:f}=n,y=Ie(n,["$formkit","for","if","children","key","bind"]);return Object.assign({$cmp:"FormKit",props:pe(T({},y),{type:t})},i?{if:i}:{},r?{for:r}:{},s?{children:s}:{},l?{key:l}:{},f?{bind:f}:{})}return e}function z(e){let n;const t=new Set,r=function(u,c){return typeof u=="function"?u(c):u},i=[{"&&":(p,u,c)=>r(p,c)&&r(u,c),"||":(p,u,c)=>r(p,c)||r(u,c)},{"===":(p,u,c)=>r(p,c)===r(u,c),"!==":(p,u,c)=>r(p,c)!==r(u,c),"==":(p,u,c)=>r(p,c)==r(u,c),"!=":(p,u,c)=>r(p,c)!=r(u,c),">=":(p,u,c)=>r(p,c)>=r(u,c),"<=":(p,u,c)=>r(p,c)<=r(u,c),">":(p,u,c)=>r(p,c)>r(u,c),"<":(p,u,c)=>r(p,c)<r(u,c)},{"+":(p,u,c)=>r(p,c)+r(u,c),"-":(p,u,c)=>r(p,c)-r(u,c)},{"*":(p,u,c)=>r(p,c)*r(u,c),"/":(p,u,c)=>r(p,c)/r(u,c),"%":(p,u,c)=>r(p,c)%r(u,c)}],s=i.reduce((p,u)=>p.concat(Object.keys(u)),[]),l=new Set(s.map(p=>p.charAt(0)));function f(p,u,c,g){const C=p.filter(a=>a.startsWith(u));return C.length?C.find(a=>g.length>=c+a.length&&g.substring(c,c+a.length)===a?a:!1):!1}function y(p,u,c=1){let g=c?u.substring(p+1).trim():u.substring(0,p).trim();if(!g.length)return-1;if(!c){const a=g.split("").reverse(),m=a.findIndex(h=>l.has(h));g=a.slice(m).join("")}const C=g[0];return i.findIndex(a=>{const m=Object.keys(a);return!!f(m,C,0,g)})}function _(p,u){let c="";const g=u.length;let C=0;for(let a=p;a<g;a++){const m=u.charAt(a);if(m==="(")C++;else if(m===")")C--;else if(C===0&&m===" ")continue;if(C===0&&f(s,m,a,u))return[c,a-1];c+=m}return[c,u.length-1]}function $(p,u=0){const c=i[u],g=p.length,C=Object.keys(c);let a=0,m=!1,h=null,b="",P=null,E,M="",V="",I="",N="",L=0;const q=(A,x)=>{A?I+=x:b+=x};for(let A=0;A<g;A++)if(M=V,V=p.charAt(A),(V==="'"||V==='"')&&M!=="\\"&&(a===0&&!m||a&&!N)){a?N=V:m=V,q(a,V);continue}else if(m&&(V!==m||M==="\\")||N&&(V!==N||M==="\\")){q(a,V);continue}else if(m===V){m=!1,q(a,V);continue}else if(N===V){N=!1,q(a,V);continue}else{if(V===" ")continue;if(V==="(")a===0?L=A:I+=V,a++;else if(V===")")if(a--,a===0){const x=typeof b=="string"&&b.startsWith("$")?b:void 0,$t=x&&p.charAt(A+1)===".";let X="";$t&&([X,A]=_(A+2,p));const ue=h?u:y(L,p,0),G=y(A,p);ue===-1&&G===-1?b=d(I,-1,x,X):h&&(ue>=G||G===-1)&&u===ue?(P=h.bind(null,d(I,-1,x,X)),h=null,b=""):G>ue&&u===G?b=d(I,-1,x,X):b+=`(${I})${$t?`.${X}`:""}`,I=""}else I+=V;else if(a===0&&(E=f(C,V,A,p))){A===0&&D(103,[E,p]),A+=E.length-1,A===p.length-1&&D(104,[E,p]),h?b&&(P=h.bind(null,d(b,u)),h=c[E].bind(null,P),b=""):P?(h=c[E].bind(null,d(P,u)),P=null):(h=c[E].bind(null,d(b,u)),b="");continue}else q(a,V)}return b&&h&&(h=h.bind(null,d(b,u))),h=!h&&P?P:h,!h&&b&&(h=(A,x)=>typeof A=="function"?A(x):A,h=h.bind(null,d(b,u))),!h&&!b&&D(105,p),h}function d(p,u,c,g){if(c){const C=d(c,i.length);let a,m=g?z(`$${g}`):!1;if(typeof C=="function"){const h=Ot(String(p)).map(b=>d(b,-1));return b=>{const P=C(b);return typeof P!="function"?(re(150,c),P):(a=P(...h.map(E=>typeof E=="function"?E(b):E)),m&&(m=m.provide(E=>{const M=n(E);return E.reduce((I,N)=>{if(N===g||(g==null?void 0:g.startsWith(`${N}(`))){const q=Vt(a,N);I[N]=()=>q}else I[N]=M[N];return I},{})})),m?m():a)}}}else if(typeof p=="string"){if(p==="true")return!0;if(p==="false")return!1;if(p==="undefined")return;if(St(p))return vt(p.substring(1,p.length-1));if(!isNaN(+p))return Number(p);if(u<i.length-1)return $(p,u+1);if(p.startsWith("$")){const C=p.substring(1);return t.add(C),function(m){return C in m?m[C]():void 0}}return p}return p}const O=$(e.startsWith("$:")?e.substring(2):e),w=Array.from(t);function S(p){return n=p,Object.assign(O.bind(null,p(w)),{provide:S})}return Object.assign(O,{provide:S})}const Ln=K("outer",()=>({$el:"div",attrs:{class:"$classes.outer","data-type":"$type","data-multiple":"$attrs.multiple","data-disabled":"$disabled || undefined","data-complete":"$state.complete || undefined","data-invalid":"$state.valid === false && $state.validationVisible || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined"}})),qn=K("wrapper",()=>({$el:"div",attrs:{class:"$classes.wrapper"}})),Kn=K("inner",()=>({$el:"div",attrs:{class:"$classes.inner"}})),xn=(e={},n=[],t="help",r="$help")=>({if:`$slots.${t}`,then:`$slots.${t}`,else:te({$el:"div",attrs:{id:`$: "help-" + ${t=="optionHelp"?"$option.attrs.id":"$id"}`,class:`$classes.${t}`},if:r,children:n},e)}),Un=K("messages",()=>({$el:"ul",if:"$fns.length($messages)",attrs:{class:"$classes.messages","aria-live":'$type === "form" && "assertive" || "polite"'}})),Hn=K("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",class:"$classes.message",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),Zn=K("prefix",()=>({$el:null})),Jn=K("suffix",()=>({$el:null}));function Se(e){return typeof e=="object"&&("$el"in e||"$cmp"in e||"$formkit"in e)}function Qn(e,n={}){return typeof e=="string"?Se(n)||typeof n=="string"?n:e:Array.isArray(e)?Se(n)?n:e:te(e,n)}function K(e,n){return(t={},r=void 0)=>{const i=typeof n=="function"?n(r):typeof n=="object"?J(n):n;Se(i)&&!("children"in i)&&r&&(Array.isArray(r)?r.length&&(i.children=r):i.children=[r]);const l=Qn(i,t);return{if:`$slots.${e}`,then:`$slots.${e}`,else:Array.isArray(l)?l:[l]}}}function Yn(e){return(n={})=>{const t=K("input",e)(n.input);return[Ln(n.outer,[qn(n.wrapper,[Xn(n.label,"$label"),Kn(n.inner,[Zn(n.prefix),...Array.isArray(t)?t:[t],Jn(n.suffix)])]),xn(n.help,"$help"),Un(n.messages,[Hn(n.message,"$message.value")])])]}}const Xn=K("label",()=>({$el:"label",if:"$label",attrs:{for:"$id",class:"$classes.label"}}));ie({type:"state",blocking:!0,visible:!1,value:!0,key:"validating"});let ve=!1;const et={100:({data:e})=>`Only groups, lists, and forms can have children (${e.name}).`,101:({data:e})=>`You cannot directly modify the store (${e.name}). See: https://formkit.com/advanced/core#message-store`,102:({data:[e,n]})=>`You cannot directly assign node.${n} (${e.name})`,103:({data:[e]})=>`Schema expressions cannot start with an operator (${e})`,104:({data:[e,n]})=>`Schema expressions cannot end with an operator (${e} in "${n}")`,105:({data:e})=>`Invalid schema expression: ${e}`,106:({data:e})=>`Cannot submit because (${e}) is not in a form.`,107:({data:[e,n]})=>`Cannot set ${e.name} to non object value: ${n}`,108:({data:[e,n]})=>`Cannot set ${e.name} to non array value: ${n}`,600:({data:e})=>`Unknown input type${typeof e.props.type=="string"?' "'+e.props.type+'"':""} ("${e.name}")`,601:({data:e})=>`Input definition${typeof e.props.type=="string"?' "'+e.props.type+'"':""} is missing a schema or component property (${e.name}).`},tt={150:({data:e})=>`Schema function "${e}()" is not a valid function.`,151:({data:e})=>`No form element with id: ${e}`,152:({data:e})=>`No input element with id: ${e}`,350:({data:e})=>`Invalid options prop for radio input (${e.name}). See https://formkit.com/inputs/radio`,650:'Schema "$get()" must use the id of an input to access.',651:({data:e})=>`Cannot setErrors() on "${e}" because no such id exists.`,652:({data:e})=>`Cannot clearErrors() on "${e}" because no such id exists.`};ve||ge((e,n)=>{if(e.code in et){const t=et[e.code];e.message=typeof t=="function"?t(e):t}return n(e)}),ve||_e((e,n)=>{if(e.code in tt){const t=tt[e.code];e.message=typeof t=="function"?t(e):t}return n(e)}),ve=!0;const Oe={};let B;const U=new Map,Gn="__raw__",er=/[a-zA-Z0-9\-][cC]lass$/;function tr(e,n){const t=o.ref(null);if(e==="get"){const i={};return t.value=nr.bind(null,i),t}const r=e.split(".");return o.watchEffect(()=>t.value=Ve(n,r)),t}function Ve(e,n){if(Array.isArray(e)){for(const r of e){const i=r!==!1&&Ve(r,n);if(i!==void 0)return i}return}let t;return n.reduce((r,i,s,l)=>{if(typeof r!="object")return t=void 0,l.splice(1);const f=r[i];return s===n.length-1&&f!==void 0&&(t=f),r[i]},e),t}function nr(e,n){if(typeof n!="string")return re(650);if(n in e||(e[n]=o.ref(void 0)),e[n].value===void 0){e[n].value=null;const t=Ke(n);t&&(e[n].value=t.context),Ht(n,({payload:r})=>{e[n].value=oe(r)?r.context:r})}return e[n].value}function nt(e,n){function t(d,O){const w=$(z(O.if),{if:!0}),S=y(d,O.then),p=O.else?y(d,O.else):null;return[w,S,p]}function r(d,O){var w,S;const p=$(z(d.if));let u=()=>O,c=()=>O;return typeof d.then=="object"?c=i(d.then,void 0):typeof d.then=="string"&&((w=d.then)===null||w===void 0?void 0:w.startsWith("$"))?c=$(z(d.then)):c=()=>d.then,j(d,"else")&&(typeof d.else=="object"?u=i(d.else):typeof d.else=="string"&&((S=d.else)===null||S===void 0?void 0:S.startsWith("$"))?u=$(z(d.else)):u=()=>d.else),()=>p()?c():u()}function i(d,O,w={}){const S=new Set(Object.keys(d||{})),p=O?$(z(O)):()=>({}),u=[c=>{const g=p();for(const C in g)S.has(C)||(c[C]=g[C])}];if(d){if(Y(d))return r(d,w);for(let c in d){const g=d[c];let C;const a=typeof g=="string";c.startsWith(Gn)?(c=c.substring(7),C=()=>g):a&&g.startsWith("$")&&g.length>1&&!(g.startsWith("$reset")&&er.test(c))?C=$(z(g)):typeof g=="object"&&Y(g)?C=r(g,void 0):typeof g=="object"&&ee(g)?C=i(g):C=()=>g,u.push(m=>{m[c]=C()})}}return()=>{const c={};return u.forEach(g=>g(c)),c}}function s(d,O){let w=null,S=()=>null,p=!1,u=null,c=null,g=null,C=!1;const a=Wn(O);if(Fn(a)?(w=a.$el,S=a.$el!=="text"?i(a.attrs,a.bind):()=>null):Ge(a)?(typeof a.$cmp=="string"?j(d,a.$cmp)?w=d[a.$cmp]:(w=a.$cmp,C=!0):w=a.$cmp,S=i(a.props,a.bind)):Y(a)&&([p,u,c]=t(d,a)),!Y(a)&&"if"in a?p=$(z(a.if)):!Y(a)&&w===null&&(p=()=>!0),"children"in a&&a.children)if(typeof a.children=="string")if(a.children.startsWith("$slots."))w=w==="text"?"slot":w,u=$(z(a.children));else if(a.children.startsWith("$")&&a.children.length>1){const m=$(z(a.children));u=()=>String(m())}else u=()=>String(a.children);else if(Array.isArray(a.children))u=y(d,a.children);else{const[m,h,b]=t(d,a.children);u=P=>m&&m()?h&&h(P):b&&b(P)}if(Ge(a))if(u){const m=u;u=h=>({default(b,P){var E,M,V,I;const N=B;P&&(B=P),b&&((E=U.get(B))===null||E===void 0||E.unshift(b)),h&&((M=U.get(B))===null||M===void 0||M.unshift(h));const L=m(h);return b&&((V=U.get(B))===null||V===void 0||V.shift()),h&&((I=U.get(B))===null||I===void 0||I.shift()),B=N,L}}),u.slot=!0}else u=()=>({});if("for"in a&&a.for){const m=a.for.length===3?a.for[2]:a.for[1];g=[typeof m=="string"&&m.startsWith("$")?$(z(m)):()=>m,a.for[0],a.for.length===3?String(a.for[1]):null]}return[p,w,S,u,c,g,C]}function l(d,O){const w=d(O),S=B;return Object.keys(w).reduce((p,u)=>{const c=w&&w[u];return p[u]=g=>c&&c(g,S)||null,p},{})}function f(d,O){const[w,S,p,u,c,g,C]=s(d,O);let a=m=>{if(w&&S===null&&u)return w()?u(m):c&&c(m);if(S&&(!w||w())){if(S==="text"&&u)return o.createTextVNode(String(u()));if(S==="slot"&&u)return u(m);const h=C?o.resolveComponent(S):S,b=u!=null&&u.slot?l(u,m):null;return o.h(h,p(),b||(u?u(m):[]))}return typeof c=="function"?c(m):c};if(g){const m=a,[h,b,P]=g;a=()=>{const E=h(),M=isNaN(E)?E:Array(Number(E)).fill(0).map((N,L)=>L),V=[];if(typeof M!="object")return null;const I=U.get(B)||[];for(const N in M){const L=Object.defineProperty(T(pe(T({},I.reduce((q,A)=>q.__idata?T(T({},q),A):A,{})),{[b]:M[N]}),P!==null?{[P]:N}:{}),"__idata",{enumerable:!1,value:!0});I.unshift(L),V.push(m.bind(null,L)()),I.shift()}return V}}return a}function y(d,O){if(Array.isArray(O)){const S=O.map(f.bind(null,d));return p=>S.map(u=>u(p))}const w=f(d,O);return S=>w(S)}const _=[];function $(d,O={}){const w={};return _.push((S,p)=>{w[p]=d.provide(u=>S(u,O))}),()=>w[B]()}return function(O,w){const S=JSON.stringify(n),[p,u]=j(Oe,S)?Oe[S]:[y(e,n),_];return Oe[S]=[p,u],u.forEach(c=>{c(O,w)}),()=>(B=w,p())}}function rt(e,n){const t=U.get(B)||[];let r;return t.length&&(r=Ve(t,e.split("."))),r===void 0?n:r}function rr(e,n){return new Proxy(e,{get(...t){let r;const i=t[1];if(typeof i=="string"){const s=B;B=n,r=rt(i,void 0),B=s}return r!==void 0?r:Reflect.get(...t)}})}function it(e,n,t){return e((r,i={})=>r.reduce((s,l)=>{if(l.startsWith("slots.")){const y=l.substring(6),_=n.slots&&j(n.slots,y);if(i.if)s[l]=()=>_;else if(n.slots&&_){const $=rr(n,t);return s[l]=()=>n.slots[y]($),s}}const f=tr(l,n);return s[l]=()=>rt(l,f.value),s},{}),t)}let st=0;const ir=o.defineComponent({name:"FormKitSchema",props:{schema:{type:[Array,Object],required:!0},data:{type:Object,default:()=>({})},library:{type:Object,default:()=>({})}},setup(e,n){const t=o.getCurrentInstance();let r=Symbol(String(st++));U.set(r,[]);let i=nt(e.library,e.schema),s,l;return o.watch(()=>e.schema,(f,y)=>{var _;r=Symbol(String(st++)),i=nt(e.library,e.schema),s=it(i,l,r),f===y&&((_=t==null?void 0:t.proxy)===null||_===void 0?void 0:_.$forceUpdate)()},{deep:!0}),o.watchEffect(()=>{l=Object.assign(o.reactive(e.data),{slots:n.slots}),s=it(i,l,r)}),()=>s()}}),sr={config:{type:Object,default:{}},classes:{type:Object,required:!1},delay:{type:Number,required:!1},errors:{type:Array,default:[]},inputErrors:{type:Object,default:()=>({})},index:{type:Number,required:!1},id:{type:String,required:!1},modelValue:{required:!1},name:{type:String,required:!1},parent:{type:Object,required:!1},plugins:{type:Array,default:[]},sectionsSchema:{type:Object,default:{}},type:{type:[String,Object],default:"text"},validation:{type:[String,Array],required:!1},validationMessages:{type:Object,required:!1},validationRules:{type:Object,required:!1},validationLabel:{type:[String,Function],required:!1}},ot=Symbol("FormKitParent");o.defineComponent({props:sr,emits:{input:(e,n)=>!0,inputRaw:(e,n)=>!0,"update:modelValue":e=>!0,node:e=>!!e,submit:(e,n)=>!0,submitRaw:(e,n)=>!0},inheritAttrs:!1,setup(e,n){const t=cr(e,n);if(t.props.definition||D(600,t),t.props.definition.component)return()=>{var l;return o.h((l=t.props.definition)===null||l===void 0?void 0:l.component,{context:t.context},T({},n.slots))};const r=o.ref([]),i=()=>{var l,f;const y=(f=(l=t.props)===null||l===void 0?void 0:l.definition)===null||f===void 0?void 0:f.schema;y||D(601,t),r.value=typeof y=="function"?y(T({},e.sectionsSchema)):y};i(),t.on("schema",i),n.emit("node",t);const s=t.props.definition.library;return n.expose({node:t}),()=>o.h(ir,{schema:r.value,data:t.context,library:s},T({},n.slots))}});const or=Symbol.for("FormKitOptions"),Ee=Symbol();function lr(e,n){const t={},r=l=>{for(const f of l)f.__str in t&&t[f.__str](),t[f.__str]=o.watch(fr.bind(null,e,f),s.bind(null,f),{deep:!1})},s=ar(e,n,r,l=>{if(!!l.length)for(const f in t)`${f}`.startsWith(`${l.__str}.`)&&(t[f](),delete t[f])});r(Pe(e))}function ar(e,n,t,r){return i=>{const s=lt(e,i);s!==Ee&&(i.__deep&&r(i),typeof s=="object"&&t(Pe(s,[i],...i)),n(i,s,e))}}function fr(e,n){const t=lt(e,n);return t&&typeof t=="object"?Object.keys(t):t}function lt(e,n){if(o.isRef(e)){if(n.length===0)return e.value;e=e.value}return n.reduce((t,r)=>t===Ee?t:t===null||typeof t!="object"?Ee:t[r],e)}function Pe(e,n=[],...t){if(e===null)return n;if(!t.length){const r=Object.defineProperty([],"__str",{value:""});if(e=o.isRef(e)?e.value:e,e&&typeof e=="object")Object.defineProperty(r,"__deep",{value:!0}),n.push(r);else return[r]}if(e===null||typeof e!="object")return n;for(const r in e){const i=t.concat(r);Object.defineProperty(i,"__str",{value:i.join(".")});const s=e[r];ee(s)||Array.isArray(s)?(n.push(Object.defineProperty(i,"__deep",{value:!0})),n=n.concat(Pe(s,[],...i))):n.push(i)}return n}function fe(e){return e===null||typeof e!="object"||(o.isReactive(e)?e=o.toRaw(e):o.isRef(e)&&(e=o.isReactive(e.value)?fe(e.value):e.value)),e}const Ae=["help","label","ignore","disabled","preserve",/^preserve(-e|E)rrors/,/^[a-z]+(?:-visibility|Visibility)$/,/^[a-zA-Z-]+(?:-class|Class)$/];function at(e,n){n.classes&&Object.keys(n.classes).forEach(t=>{typeof t=="string"&&(e.props[`_${t}Class`]=n.classes[t],ye(n.classes[t])&&t==="inner"&&Object.values(n.classes[t]))})}function ur(e){return e?["Submit","SubmitRaw"].reduce((t,r)=>{const i=`on${r}`;return i in e&&typeof e[i]=="function"&&(t[i]=e[i]),t},{}):{}}function cr(e,n,t={}){const r=Object.assign({},o.inject(or)||{},t),i=o.getCurrentInstance(),s=ur(i==null?void 0:i.vnode.props),l=e.modelValue!==void 0,f=e.modelValue!==void 0?e.modelValue:Z(n.attrs.value);function y(){const a=T(T({},H(e)),s),m=je(H(n.attrs),Ae);a.attrs=m;const h=Ne(H(n.attrs),Ae);for(const P in h)a[ne(P)]=h[P];const b={props:{}};return at(b,e),Object.assign(a,b.props),typeof a.type!="string"&&(a.definition=a.type,delete a.type),a}const _=y(),$=_.ignore?null:e.parent||o.inject(ot,null),d=Dn(te(r||{},{name:e.name||void 0,value:f,parent:$,plugins:(r.plugins||[]).concat(e.plugins),config:e.config,props:_,index:e.index},!1,!0));d.props.definition||D(600,d);const O=o.ref(new Set(d.props.definition.props||[]));d.on("added-props",({payload:a})=>{Array.isArray(a)&&a.forEach(m=>O.value.add(m))});const w=o.computed(()=>Ae.concat([...O.value]).reduce((a,m)=>(typeof m=="string"?(a.push(ne(m)),a.push(Re(m))):a.push(m),a),[]));o.watchEffect(()=>at(d,e));const S=H(e);for(const a in S)o.watch(()=>e[a],()=>{e[a]!==void 0&&(d.props[a]=e[a])});const p=new Set,u=H(n.attrs);o.watchEffect(()=>{c(Ne(u,w.value))});function c(a){p.forEach(m=>{m(),p.delete(m)});for(const m in a){const h=ne(m);p.add(o.watch(()=>n.attrs[m],()=>{d.props[h]=n.attrs[m]}))}}if(o.watchEffect(()=>{const a=je(H(n.attrs),w.value);d.props.attrs=Object.assign({},d.props.attrs||{},a)}),o.watchEffect(()=>{const a=e.errors.map(m=>ie({key:Te(m),type:"error",value:m,meta:{source:"prop"}}));d.store.apply(a,m=>m.type==="error"&&m.meta.source==="prop")}),d.type!=="input"){const a=`${d.name}-prop`;o.watchEffect(()=>{const h=Object.keys(e.inputErrors).reduce((b,P)=>{let E=e.inputErrors[P];return typeof E=="string"&&(E=[E]),Array.isArray(E)&&(b[P]=E.map(M=>ie({key:M,type:"error",value:M,meta:{source:a}}))),b},{});d.store.apply(h,b=>b.type==="error"&&b.meta.source===a)})}o.watchEffect(()=>Object.assign(d.config,e.config)),d.type!=="input"&&o.provide(ot,d);let g;const C=new WeakSet;return d.on("modelUpdated",()=>{var a,m;if(n.emit("inputRaw",(a=d.context)===null||a===void 0?void 0:a.value,d),clearTimeout(g),g=setTimeout(n.emit,20,"input",(m=d.context)===null||m===void 0?void 0:m.value,d),l&&d.context){const h=fe(d.context.value);ye(h)&&fe(e.modelValue)!==h&&C.add(h),n.emit("update:modelValue",h)}}),l&&lr(o.toRef(e,"modelValue"),(a,m)=>{var h;const b=fe(m);if(ye(b)&&C.has(b))return C.delete(b);a.length?(h=d.at(a))===null||h===void 0||h.input(m,!1):d.input(m,!1)}),o.onUnmounted(()=>d.destroy()),d}let pr=1;function dr(e){return typeof e=="function"&&e.length===2||typeof e=="object"&&!Array.isArray(e)&&!("$el"in e)&&!("$cmp"in e)&&!("if"in e)}function W(e,n={}){const t=T({type:"input"},n);let r;if(dr(e)){const i=`SchemaComponent${pr++}`;r=()=>({$cmp:i,props:{context:"$node.context"}}),t.library={[i]:o.markRaw(e)}}else r=e;return t.schema=Yn(r||"Schema undefined"),t}const mr=o.defineComponent({name:"PrimeInputText",props:{context:Object},setup(e){const t=e.context,r=()=>(t==null?void 0:t.iconLeft)&&(t==null?void 0:t.iconLeft.length)>0,i=()=>(t==null?void 0:t.iconRight)&&(t==null?void 0:t.iconRight.length)>0,s=()=>{let f="";return r()&&(f=`${f}p-input-icon-left `),i()&&(f=`${f}p-input-icon-right `),f};function l(f){t==null||t.node.input(f.target.value)}return(f,y)=>{const _=o.resolveComponent("InputText");return o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(s())},[r()?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass(o.unref(t).iconLeft)},null,2)):o.createCommentVNode("",!0),o.createVNode(_,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":y[0]||(y[0]=$=>o.unref(t)._value=$),placeholder:o.unref(t).attrs.placeholder,class:o.normalizeClass(o.unref(t).attrs.class),onInput:l},null,8,["id","modelValue","placeholder","class"]),i?(o.openBlock(),o.createElementBlock("i",{key:1,class:o.normalizeClass(o.unref(t).iconRight)},null,2)):o.createCommentVNode("",!0)],2)}}}),yr=o.defineComponent({name:"PrimeInputNumber",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i.target.value)}return(i,s)=>{var f;const l=o.resolveComponent("InputNumber");return o.openBlock(),o.createBlock(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=y=>o.unref(t)._value=y),rows:(f=o.unref(t).rows)!=null?f:3,placeholder:o.unref(t).attrs.placeholder,class:o.normalizeClass(o.unref(t).attrs.class),onInput:r},null,8,["id","modelValue","rows","placeholder","class"])}}}),hr=o.defineComponent({name:"PrimePassword",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i.target.value)}return(i,s)=>{var f,y,_,$;const l=o.resolveComponent("Password");return o.openBlock(),o.createBlock(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=d=>o.unref(t)._value=d),placeholder:o.unref(t).attrs.placeholder,feedback:(y=(f=o.unref(t))==null?void 0:f.feedback)!=null?y:!0,"toggle-mask":($=(_=o.unref(t))==null?void 0:_.toggleMask)!=null?$:!1,class:o.normalizeClass(o.unref(t).attrs.class),onInput:r},null,8,["id","modelValue","placeholder","feedback","toggle-mask","class"])}}}),gr=o.defineComponent({name:"PrimeInputTextArea",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i.target.value)}return(i,s)=>{var f;const l=o.resolveComponent("Textarea");return o.openBlock(),o.createBlock(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=y=>o.unref(t)._value=y),rows:(f=o.unref(t).rows)!=null?f:3,placeholder:o.unref(t).attrs.placeholder,class:o.normalizeClass(o.unref(t).attrs.class),onInput:r},null,8,["id","modelValue","rows","placeholder","class"])}}}),_r={key:0,class:"formkit-prime-left"},br={key:1,class:"formkit-prime-right"},$r=o.defineComponent({name:"PrimeCheckBox",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i)}return(i,s)=>{const l=o.resolveComponent("Checkbox");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(t).attrs.labelLeft?(o.openBlock(),o.createElementBlock("span",_r,o.toDisplayString(o.unref(t).attrs.labelLeft),1)):o.createCommentVNode("",!0),o.createVNode(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=f=>o.unref(t)._value=f),placeholder:o.unref(t).attrs.placeholder,binary:!0,class:o.normalizeClass(o.unref(t).attrs.class),onInput:r},null,8,["id","modelValue","placeholder","class"]),o.unref(t).attrs.labelRight?(o.openBlock(),o.createElementBlock("span",br,o.toDisplayString(o.unref(t).attrs.labelRight),1)):o.createCommentVNode("",!0)],64)}}}),wr={key:0,class:"formkit-prime-left"},Cr={key:1,class:"formkit-prime-right"},kr=o.defineComponent({name:"PrimeInputSwitch",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var s;t==null||t.node.input((s=n.context)==null?void 0:s._value)}return(i,s)=>{var f,y;const l=o.resolveComponent("InputSwitch");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(t).attrs.labelLeft?(o.openBlock(),o.createElementBlock("span",wr,o.toDisplayString(o.unref(t).attrs.labelLeft),1)):o.createCommentVNode("",!0),o.createVNode(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=_=>o.unref(t)._value=_),"true-value":(f=o.unref(t).attrs.trueValue)!=null?f:void 0,"false-value":(y=o.unref(t).attrs.falseValue)!=null?y:void 0,class:o.normalizeClass(o.unref(t).attrs.class),onInput:r},null,8,["id","modelValue","true-value","false-value","class"]),o.unref(t).attrs.labelRight?(o.openBlock(),o.createElementBlock("span",Cr,o.toDisplayString(o.unref(t).attrs.labelRight),1)):o.createCommentVNode("",!0)],64)}}}),Sr=o.defineComponent({name:"PrimeEditor",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i.htmlValue)}return(i,s)=>{const l=o.resolveComponent("Editor");return o.openBlock(),o.createBlock(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=f=>o.unref(t)._value=f),placeholder:o.unref(t).attrs.placeholder,onTextChange:r},null,8,["id","modelValue","placeholder"])}}}),vr=o.defineComponent({name:"PrimeDropdown",props:{context:Object},setup(e){const t=e.context;function r(i){t==null||t.node.input(i.value)}return(i,s)=>{var f,y,_,$;const l=o.resolveComponent("Dropdown");return o.openBlock(),o.createBlock(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=d=>o.unref(t)._value=d),options:(y=(f=o.unref(t))==null?void 0:f.attrs)==null?void 0:y.options,"option-label":"label","option-value":"value",placeholder:o.unref(t).attrs.placeholder,filter:(_=o.unref(t).attrs.filter)!=null?_:!1,"show-clear":($=o.unref(t).attrs.showClear)!=null?$:!1,class:o.normalizeClass(o.unref(t).attrs.class),onChange:r},null,8,["id","modelValue","options","placeholder","filter","show-clear","class"])}}}),Or=o.defineComponent({name:"PrimeMultiSelect",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var s;t==null||t.node.input((s=n.context)==null?void 0:s._value)}return(i,s)=>{var f,y,_;const l=o.resolveComponent("MultiSelect");return o.openBlock(),o.createBlock(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=$=>o.unref(t)._value=$),options:(y=(f=o.unref(t))==null?void 0:f.attrs)==null?void 0:y.options,"option-label":"label","option-value":"value",placeholder:o.unref(t).attrs.placeholder,filter:(_=o.unref(t).attrs.filter)!=null?_:!1,class:o.normalizeClass(o.unref(t).attrs.class),onChange:r},null,8,["id","modelValue","options","placeholder","filter","class"])}}}),Vr=o.defineComponent({name:"PrimeCalendar",props:{context:Object},setup(e){const n=e,t=n.context;function r(s){t==null||t.node.input(t==null?void 0:t._value)}function i(s){t==null||t.node.input(s)}return(s,l)=>{const f=o.resolveComponent("Calendar");return o.openBlock(),o.createBlock(f,{id:n.context.id,modelValue:o.unref(t)._value,"onUpdate:modelValue":l[0]||(l[0]=y=>o.unref(t)._value=y),class:o.normalizeClass(o.unref(t).attrs.class),"date-format":o.unref(t).attrs.dateFormat,"show-icon":o.unref(t).attrs.showIcon,icon:o.unref(t).attrs.icon,onDateSelect:i,onInput:r},null,8,["id","modelValue","class","date-format","show-icon","icon"])}}}),Er=o.defineComponent({name:"PrimeSlider",props:{context:Object},setup(e){const n=e,t=n.context;function r(i){var s;t==null||t.node.input((s=n.context)==null?void 0:s._value)}return(i,s)=>{var f,y,_,$;const l=o.resolveComponent("Slider");return o.openBlock(),o.createBlock(l,{id:o.unref(t).id,modelValue:o.unref(t)._value,"onUpdate:modelValue":s[0]||(s[0]=d=>o.unref(t)._value=d),min:(f=o.unref(t).attrs.min)!=null?f:0,max:(y=o.unref(t).attrs.max)!=null?y:100,step:(_=o.unref(t).attrs.step)!=null?_:void 0,range:($=o.unref(t).attrs.range)!=null?$:!1,onChange:r},null,8,["id","modelValue","min","max","step","range"])}}}),ft=W(mr,{props:["iconRight","iconLeft"]}),ut=W(yr,{props:["iconRight","iconLeft"]}),ct=W(hr,{props:["feedback","toggleMask"]}),pt=W(gr,{props:["rows"]}),dt=W($r,{props:[]}),mt=W(kr,{props:[]}),yt=W(Sr,{props:[]}),ht=W(vr,{props:[]}),gt=W(Or,{props:[]}),_t=W(Vr,{props:[]}),bt=W(Er,{props:[]}),Pr={primeInputText:ft,primeInputNumber:ut,primePassword:ct,primeCheckBox:dt,primeInputSwitch:mt,primeInputTextArea:pt,primeEditor:yt,primeDropdown:ht,primeMultiSelect:gt,primeCalendar:_t,primeSlider:bt};k.primeCalendarDefinition=_t,k.primeCheckBoxDefinition=dt,k.primeDropdownDefinition=ht,k.primeEditorDefinition=yt,k.primeInputNumberDefinition=ut,k.primeInputSwitchDefinition=mt,k.primeInputTextAreaDefinition=pt,k.primeInputTextDefinition=ft,k.primeInputs=Pr,k.primeMultiSelectDefinition=gt,k.primePasswordDefinition=ct,k.primeSliderDefinition=bt,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { FormKitTypeDefinition } from '@formkit/core';
|
|
2
|
-
export declare const primeInputTextDefinition: FormKitTypeDefinition;
|
|
3
|
-
export declare const primeInputNumberDefinition: FormKitTypeDefinition;
|
|
4
|
-
export declare const primePasswordDefinition: FormKitTypeDefinition;
|
|
5
|
-
export declare const primeInputTextAreaDefinition: FormKitTypeDefinition;
|
|
6
|
-
export declare const primeCheckBoxDefinition: FormKitTypeDefinition;
|
|
7
|
-
export declare const primeInputSwitchDefinition: FormKitTypeDefinition;
|
|
8
|
-
export declare const primeEditorDefinition: FormKitTypeDefinition;
|
|
9
|
-
export declare const primeDropdownDefinition: FormKitTypeDefinition;
|
|
10
|
-
export declare const primeMultiSelectDefinition: FormKitTypeDefinition;
|
|
11
|
-
export declare const primeCalendarDefinition: FormKitTypeDefinition;
|
|
12
|
-
export declare const primeSliderDefinition: FormKitTypeDefinition;
|
|
13
|
-
export declare const primeInputs: {
|
|
14
|
-
primeInputText: FormKitTypeDefinition;
|
|
15
|
-
primeInputNumber: FormKitTypeDefinition;
|
|
16
|
-
primePassword: FormKitTypeDefinition;
|
|
17
|
-
primeCheckBox: FormKitTypeDefinition;
|
|
18
|
-
primeInputSwitch: FormKitTypeDefinition;
|
|
19
|
-
primeInputTextArea: FormKitTypeDefinition;
|
|
20
|
-
primeEditor: FormKitTypeDefinition;
|
|
21
|
-
primeDropdown: FormKitTypeDefinition;
|
|
22
|
-
primeMultiSelect: FormKitTypeDefinition;
|
|
23
|
-
primeCalendar: FormKitTypeDefinition;
|
|
24
|
-
primeSlider: FormKitTypeDefinition;
|
|
25
|
-
};
|
package/dist/index_form.json
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"$el": "h1",
|
|
4
|
-
"children": [
|
|
5
|
-
"Register New ",
|
|
6
|
-
"$myGroup.email"
|
|
7
|
-
]
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"$el": "h3",
|
|
11
|
-
"children": [
|
|
12
|
-
"Header Text H3"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"$formkit": "group",
|
|
17
|
-
"name": "myGroup",
|
|
18
|
-
"children": [
|
|
19
|
-
{
|
|
20
|
-
"$formkit": "primeInputText",
|
|
21
|
-
"name": "email",
|
|
22
|
-
"label": "Email",
|
|
23
|
-
"help": "This will be used for your account.",
|
|
24
|
-
"validation": "required|email",
|
|
25
|
-
"class": "test"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"$formkit": "primeInputTextArea",
|
|
29
|
-
"name": "myText",
|
|
30
|
-
"label": "Text",
|
|
31
|
-
"validation": "",
|
|
32
|
-
"rows": "5",
|
|
33
|
-
"class": "test"
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"$formkit": "primeEditor",
|
|
39
|
-
"name": "myEditor",
|
|
40
|
-
"label": "Editor",
|
|
41
|
-
"validation": "",
|
|
42
|
-
"class": "test"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"$formkit": "primeCalendar",
|
|
46
|
-
"name": "myCalendar",
|
|
47
|
-
"label": "Calendar",
|
|
48
|
-
"validation": "",
|
|
49
|
-
"class": "test",
|
|
50
|
-
"dateFormat": "dd.mm.yy",
|
|
51
|
-
"showIcon": true
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"$el": "div",
|
|
55
|
-
"attrs": {
|
|
56
|
-
"class": "double"
|
|
57
|
-
},
|
|
58
|
-
"children": [
|
|
59
|
-
{
|
|
60
|
-
"$formkit": "primeInputText",
|
|
61
|
-
"name": "password",
|
|
62
|
-
"label": "Password",
|
|
63
|
-
"help": "Enter your new password.",
|
|
64
|
-
"validation": "required|length:5,16",
|
|
65
|
-
"validationVisibility": "live",
|
|
66
|
-
"class": "test"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"$formkit": "primePassword",
|
|
70
|
-
"name": "password_confirm",
|
|
71
|
-
"label": "Confirm password",
|
|
72
|
-
"toggleMask": true,
|
|
73
|
-
"feedback": false,
|
|
74
|
-
"help": "Enter your new password again to confirm it.",
|
|
75
|
-
"validation": "required|confirm",
|
|
76
|
-
"validationLabel": "password confirmation",
|
|
77
|
-
"class": "test"
|
|
78
|
-
}
|
|
79
|
-
]
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"$formkit": "primeCheckBox",
|
|
83
|
-
"name": "eu_citizen",
|
|
84
|
-
"id": "eu",
|
|
85
|
-
"label": "Are you a european citizen?",
|
|
86
|
-
"class": "test",
|
|
87
|
-
"labelLeft": "Left Label: ",
|
|
88
|
-
"labelRight": "Right Label"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"$formkit": "primeInputSwitch",
|
|
92
|
-
"name": "primeInputSwitch",
|
|
93
|
-
"id": "primeInputSwitch",
|
|
94
|
-
"labelLeft": "Left Label: ",
|
|
95
|
-
"labelRight": "Right Label"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"$formkit": "primeSlider",
|
|
99
|
-
"name": "slider",
|
|
100
|
-
"label": "Use Slider",
|
|
101
|
-
"min": 5,
|
|
102
|
-
"step": 5,
|
|
103
|
-
"value": 10
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"$formkit": "primeDropdown",
|
|
107
|
-
"if": "$eu_citizen",
|
|
108
|
-
"name": "cookie_notice",
|
|
109
|
-
"label": "Cookie notice frequency",
|
|
110
|
-
"value": "hourly",
|
|
111
|
-
"showClear": false,
|
|
112
|
-
"filter": false,
|
|
113
|
-
"help": "How often should we display a cookie notice?",
|
|
114
|
-
"class": "test"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"$formkit": "primeMultiSelect",
|
|
118
|
-
"name": "cookie_notice2",
|
|
119
|
-
"label": "Cookie notice frequency",
|
|
120
|
-
"value": [
|
|
121
|
-
"hourly"
|
|
122
|
-
],
|
|
123
|
-
"showClear": true,
|
|
124
|
-
"filter": true,
|
|
125
|
-
"help": "How often should we display a cookie notice?",
|
|
126
|
-
"class": "test"
|
|
127
|
-
}
|
|
128
|
-
]
|
package/dist/manifest.json
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
.p-inputtext {
|
|
2
|
-
width: 300px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.p-slider {
|
|
6
|
-
width: 300px;
|
|
7
|
-
margin-top: 10px;
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.p-calendar {
|
|
12
|
-
.p-inputtext {
|
|
13
|
-
width: 150px;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.p-dropdown {
|
|
18
|
-
.p-inputtext {
|
|
19
|
-
width: 250px;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.p-multiselect {
|
|
24
|
-
.p-multiselect-label {
|
|
25
|
-
width: 250px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.p-editor-container {
|
|
30
|
-
width: 300px;
|
|
31
|
-
height: 250px;
|
|
32
|
-
margin-bottom: 90px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.formkit-outer[data-type="primeInputSwitch"], .formkit-outer[data-type="primeCheckBox"] {
|
|
36
|
-
.formkit-inner {
|
|
37
|
-
width: 300px;
|
|
38
|
-
.formkit-prime-right {
|
|
39
|
-
margin-left: 10px;
|
|
40
|
-
font-weight: bold;
|
|
41
|
-
font-size: 0.75rem;
|
|
42
|
-
}
|
|
43
|
-
.formkit-prime-left {
|
|
44
|
-
margin-right: 10px;
|
|
45
|
-
font-weight: bold;
|
|
46
|
-
font-size: 0.75rem;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
.formkit-form > .formkit-messages {
|
|
2
|
-
margin: 4px;
|
|
3
|
-
.formkit-message {
|
|
4
|
-
font-size: 0.8rem;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.formkit-outer {
|
|
9
|
-
margin: 4px;
|
|
10
|
-
padding-bottom: 10px;
|
|
11
|
-
width: 400px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.formkit-wrapper,
|
|
15
|
-
.formkit-fieldset {
|
|
16
|
-
max-width: 0;
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.formkit-label {
|
|
21
|
-
display: block;
|
|
22
|
-
margin: 0;
|
|
23
|
-
padding-bottom: 4px;
|
|
24
|
-
width: 300px;
|
|
25
|
-
font-weight: bold;
|
|
26
|
-
font-size: 0.75rem;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.formkit-fieldset {
|
|
30
|
-
margin: 0;
|
|
31
|
-
padding: 0;
|
|
32
|
-
border-radius: 0;
|
|
33
|
-
border: 0;
|
|
34
|
-
|
|
35
|
-
&:focus-within {
|
|
36
|
-
border: 0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
& > .formkit-help {
|
|
40
|
-
margin-top: 0;
|
|
41
|
-
margin-bottom: 0;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.formkit-legend {
|
|
46
|
-
display: block;
|
|
47
|
-
margin: 0;
|
|
48
|
-
padding: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.formkit-inner {
|
|
52
|
-
position: relative;
|
|
53
|
-
border-radius: 0;
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
|
|
57
|
-
width: fit-content;
|
|
58
|
-
|
|
59
|
-
&:focus-within {
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.formkit-help {
|
|
66
|
-
margin: 0;
|
|
67
|
-
font-size: 0.80rem;
|
|
68
|
-
color: var(--text-color-secondary);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.formkit-messages {
|
|
72
|
-
padding: 0;
|
|
73
|
-
margin: 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.formkit-help + .formkit-messages {
|
|
77
|
-
padding-top: 0;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.formkit-message {
|
|
81
|
-
padding: 0;
|
|
82
|
-
margin: 0;
|
|
83
|
-
color: #ef9a9a;
|
|
84
|
-
list-style: none;
|
|
85
|
-
font-size: 0.75rem;
|
|
86
|
-
|
|
87
|
-
}
|