@fiscozen/input 3.3.1 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/input.js +206 -207
- package/dist/input.umd.cjs +1 -1
- package/dist/src/FzCurrencyInput.vue.d.ts +2 -0
- package/dist/src/types.d.ts +6 -0
- package/dist/src/useInputStyle.d.ts +0 -1
- package/package.json +3 -3
- package/src/FzInput.vue +14 -16
- package/src/__tests__/FzInput.spec.ts +94 -15
- package/src/types.ts +6 -0
- package/src/useInputStyle.ts +3 -8
- package/tsconfig.tsbuildinfo +1 -1
- package/coverage/FzCurrencyInput.vue.html +0 -640
- package/coverage/FzInput.vue.html +0 -709
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/clover.xml +0 -494
- package/coverage/coverage-final.json +0 -4
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -146
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/coverage/useInputStyle.ts.html +0 -343
package/dist/input.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`),require(`@fiscozen/alert`),require(`@fiscozen/icons`),require(`@fiscozen/button`),require(`@fiscozen/composables`)):typeof define==`function`&&define.amd?define([`exports`,`vue`,`@fiscozen/alert`,`@fiscozen/icons`,`@fiscozen/button`,`@fiscozen/composables`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.FzInput={},e.Vue,e._fiscozen_alert,e._fiscozen_icons,e._fiscozen_button,e._fiscozen_composables))})(this,function(e,t,n,r,i,a){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function o(e,n,r,i,a){let o=(0,t.computed)(()=>n.value?`${n.value.clientWidth}px`:`auto`),s={backoffice:`h-32`,frontoffice:`h-44`},c=(0,t.computed)(()=>{let t=i.value;return[e.variant?.value===`normal`?s[t]:s.frontoffice,y()]}),l=(0,t.computed)(()=>[`font-normal text-base`,e.disabled?.value||e.readonly?.value?`text-grey-300`:`text-grey-500`]),u={backoffice:`text-base`,frontoffice:`text-base`},d=(0,t.computed)(()=>e.variant?.value===`floating-label`?!r.value&&!a.value:!0),f=(0,t.computed)(()=>{let t=i.value;return e.variant?.value===`floating-label`?[u[t]]:[]}),p=(0,t.computed)(()=>[`font-normal text-base`,e.disabled?.value||e.readonly?.value?`text-grey-300`:`text-grey-500`]),m=(0,t.computed)(()=>[`font-normal text-base`,e.disabled?.value||e.readonly?.value?`text-grey-300`:`text-core-black`]),h=e=>!!e.error?.value,g=e=>!!e.disabled?.value||!!e.readonly?.value,_=e=>!!e.highlighted?.value,v=e=>!!e.aiReasoning?.value,y=()=>{switch(!0){case h(e):return`border-semantic-error-200 has-[:focus]:border-semantic-error-300 bg-core-white text-core-black cursor-text`;case g(e):return`bg-grey-100 border-grey-100 text-grey-300 cursor-not-allowed`;case _(e):return`bg-semantic-warning-50 border-semantic-warning-200 ring-2 ring-semantic-warning-100 text-core-black cursor-text`;case v(e):return`bg-purple-50 border-purple-600 ring-2 ring-purple-200 text-core-black cursor-text`;default:return`border-grey-200 has-[:focus]:border-blue-600 bg-core-white text-core-black cursor-text`}};return{staticContainerClass:`flex justify-between w-full items-center pl-[10px] pr-[10px] rounded border-1 gap-8 text-left relative outline-none`,computedContainerClass:c,computedLabelClass:l,staticInputClass:`peer w-full bg-transparent border-0 outline-none focus:outline-none cursor-[inherit] focus:ring-0 truncate placeholder:text-grey-300 font-normal text-base`,computedInputClass:f,computedHelpClass:p,computedErrorClass:m,containerWidth:o,showNormalPlaceholder:d}}var s={sm:`backoffice`,md:`backoffice`,lg:`frontoffice`},c=0;function l(e){return`${e}-${Date.now()-16e11}-${++c}`}function u(){return l(`fz-input`)}var d=[`id`,`for`],f=[`tabindex`],p={class:`flex flex-col justify-around min-w-0 grow`},m={key:0,class:`text-xs text-grey-300 grow-0 overflow-hidden text-ellipsis whitespace-nowrap`},h=[`type`,`required`,`disabled`,`readonly`,`placeholder`,`id`,`pattern`,`name`,`maxlength`,`autocomplete`,`aria-required`,`aria-invalid`,`aria-disabled`,`aria-labelledby`,`aria-describedby`,`aria-description`],g={class:`flex items-center gap-4`},_=[`id`],v=(0,t.defineComponent)({inheritAttrs:!1,__name:`FzInput`,props:(0,t.mergeModels)({label:{},environment:{default:`frontoffice`},size:{},placeholder:{},required:{type:Boolean},disabled:{type:Boolean},error:{type:Boolean,default:!1},leftIcon:{},leftIconVariant:{},leftIconButtonVariant:{},leftIconAriaLabel:{},rightIcon:{},rightIconClass:{},rightIconSize:{},rightIconVariant:{},rightIconButton:{type:Boolean},rightIconButtonVariant:{default:`invisible`},rightIconAriaLabel:{},secondRightIcon:{},secondRightIconClass:{},secondRightIconVariant:{},secondRightIconButton:{type:Boolean},secondRightIconButtonVariant:{default:`invisible`},secondRightIconAriaLabel:{},type:{default:`text`},valid:{type:Boolean},variant:{default:`normal`},pattern:{},name:{},readonly:{type:Boolean},highlighted:{type:Boolean,default:!1},highlightedDescription:{default:`Campo in evidenza`},aiReasoning:{type:Boolean,default:!1},aiReasoningDescription:{default:`Suggerito dall'intelligenza artificiale`},disableEmphasisReset:{type:Boolean,default:!1},maxlength:{},autocomplete:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},clearAriaLabel:{default:`Cancella`},leftIconClass:{}},{modelValue:{},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`,`fzinput:left-icon-click`,`fzinput:right-icon-click`,`fzinput:second-right-icon-click`,`update:highlighted`,`update:aiReasoning`,`fzinput:clear`],[`update:modelValue`]),setup(e,{expose:a,emit:c}){let l=e,v=(0,t.useAttrs)(),y=(0,t.computed)(()=>({...v,class:void 0})),b=(0,t.computed)(()=>v.class);(0,t.watch)(()=>l.size,e=>{if(e!==void 0){let t=s[e];l.environment&&l.environment!==t?console.warn(`[FzInput] Both "size" and "environment" props are provided. "environment=${l.environment}" will be used and "size=${e}" will be ignored. Please remove the deprecated "size" prop.`):console.warn(`[FzInput] The "size" prop is deprecated and will be removed in a future version. Please use environment="${t}" instead of size="${e}".`)}},{immediate:!0}),(0,t.watch)(()=>l.rightIconSize,e=>{e!==void 0&&console.warn(`[FzInput] The "rightIconSize" prop is deprecated and will be removed in a future version. Icons now have a fixed size of "md". The provided value "${e}" will be ignored.`)},{immediate:!0});let x=(0,t.computed)(()=>l.environment?l.environment:l.size?s[l.size]:`frontoffice`),S=(0,t.useModel)(e,`modelValue`),C=(0,t.ref)(null),w=(0,t.ref)(null),T=u(),E=(0,t.ref)(!1),D=(0,t.ref)(l.highlighted),O=(0,t.ref)(l.aiReasoning);(0,t.watch)(()=>l.highlighted,e=>{D.value=e}),(0,t.watch)(()=>l.aiReasoning,e=>{O.value=e});let k=()=>{l.disableEmphasisReset||(D.value&&(D.value=!1,V(`update:highlighted`,!1)),O.value&&(O.value=!1,V(`update:aiReasoning`,!1)))},{staticContainerClass:A,computedContainerClass:j,computedLabelClass:M,staticInputClass:N,computedInputClass:P,computedHelpClass:F,containerWidth:I,showNormalPlaceholder:L}=o({...(0,t.toRefs)(l),highlighted:D,aiReasoning:O},C,S,x,E);(0,t.useSlots)();let R=(0,t.useSlots)(),z=(0,t.computed)(()=>{let e=!!l.label,t=!!R.label;if(e&&!t)return`${T}-label`}),B=(0,t.computed)(()=>{let e=[];return l.error&&R.errorMessage&&e.push(`${T}-error`),!l.error&&R.helpText&&e.push(`${T}-help`),e.length>0?e.join(` `):void 0}),V=c,H=()=>{!l.disabled&&!l.readonly&&w.value&&w.value.focus()},U=e=>{(e.key===`Enter`||e.key===` `)&&(e.target===e.currentTarget||e.target===C.value)&&(e.preventDefault(),H())},W=(e,t)=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),X.value||V(t===`fzinput:left-icon-click`?`fzinput:left-icon-click`:t===`fzinput:right-icon-click`?`fzinput:right-icon-click`:`fzinput:second-right-icon-click`))},G=()=>{X.value||V(`fzinput:left-icon-click`)},K=()=>{X.value||V(`fzinput:right-icon-click`)},q=()=>{X.value||V(`fzinput:second-right-icon-click`)},J=(0,t.computed)(()=>!!l.leftIcon),Y=(0,t.computed)(()=>J.value&&!!l.leftIconAriaLabel),X=(0,t.computed)(()=>!!l.disabled||!!l.readonly),Z=(0,t.computed)(()=>X.value||l.error?`text-grey-300`:`text-purple-600`),ee=(0,t.computed)(()=>{if(!(X.value||l.error)){if(D.value)return l.highlightedDescription;if(O.value)return l.aiReasoningDescription}}),te=(0,t.computed)(()=>!!l.rightIcon&&!l.rightIconButton),Q=(0,t.computed)(()=>te.value&&!!l.rightIconAriaLabel),ne=(0,t.computed)(()=>!!l.secondRightIcon&&!l.secondRightIconButton),$=(0,t.computed)(()=>ne.value&&!!l.secondRightIconAriaLabel),re=(0,t.computed)(()=>l.clearable&&!!S.value&&!X.value),ie=()=>{S.value=``,V(`fzinput:clear`),w.value?.focus()};return a({inputRef:w,containerRef:C}),(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`fz-input w-full flex flex-col gap-8`,b.value])},[(0,t.renderSlot)(a.$slots,`label`,{},()=>[e.label?((0,t.openBlock)(),(0,t.createElementBlock)(`label`,{key:0,id:`${(0,t.unref)(T)}-label`,class:(0,t.normalizeClass)((0,t.unref)(M)),for:(0,t.unref)(T)},(0,t.toDisplayString)(e.label)+(0,t.toDisplayString)(e.required?` *`:``),11,d)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([(0,t.unref)(A),(0,t.unref)(j)]),ref_key:`containerRef`,ref:C,tabindex:X.value?void 0:0,onClick:H,onKeydown:U},[(0,t.renderSlot)(a.$slots,`left-icon`,{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.FzIcon),{key:0,name:e.leftIcon,size:`md`,variant:e.leftIconVariant,role:Y.value?`button`:void 0,"aria-label":Y.value?e.leftIconAriaLabel:void 0,"aria-disabled":Y.value&&X.value?`true`:void 0,tabindex:Y.value&&!X.value?0:void 0,class:(0,t.normalizeClass)(e.leftIconClass),onClick:(0,t.withModifiers)(G,[`stop`]),onKeydown:o[0]||=e=>Y.value?e=>W(e,`fzinput:left-icon-click`):void 0},null,8,[`name`,`variant`,`role`,`aria-label`,`aria-disabled`,`tabindex`,`class`])):O.value&&!D.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.FzIcon),{key:1,name:`sparkles`,variant:`fas`,size:`md`,"aria-hidden":`true`,class:(0,t.normalizeClass)(Z.value)},null,8,[`class`])):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,p,[(0,t.unref)(L)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,m,(0,t.toDisplayString)(e.placeholder),1)),(0,t.withDirectives)((0,t.createElementVNode)(`input`,(0,t.mergeProps)({type:e.type,required:e.required,disabled:e.disabled,readonly:e.readonly,placeholder:(0,t.unref)(L)?e.placeholder:``,"onUpdate:modelValue":o[1]||=e=>S.value=e,id:(0,t.unref)(T),ref_key:`inputRef`,ref:w,class:[(0,t.unref)(N),(0,t.unref)(P)],pattern:e.pattern,name:e.name,maxlength:e.maxlength,autocomplete:e.autocomplete?`on`:`off`,"aria-required":e.required?`true`:`false`,"aria-invalid":e.error?`true`:`false`,"aria-disabled":X.value?`true`:`false`,"aria-labelledby":z.value,"aria-describedby":B.value,"aria-description":ee.value},y.value,{onInput:k,onBlur:o[2]||=e=>{E.value=!1,a.$emit(`blur`,e)},onFocus:o[3]||=e=>{E.value=!0,a.$emit(`focus`,e)}}),null,16,h),[[t.vModelDynamic,S.value]])]),(0,t.createElementVNode)(`div`,g,[re.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i.FzIconButton),{key:0,iconName:`xmark`,size:`md`,variant:`invisible`,ariaLabel:e.clearAriaLabel,onClick:(0,t.withModifiers)(ie,[`stop`])},null,8,[`ariaLabel`])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(a.$slots,`right-icon`,{},()=>[e.secondRightIcon&&!e.secondRightIconButton?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.FzIcon),{key:0,name:e.secondRightIcon,size:`md`,variant:e.secondRightIconVariant,role:$.value?`button`:void 0,"aria-label":$.value?e.secondRightIconAriaLabel:void 0,"aria-disabled":$.value&&X.value?`true`:void 0,tabindex:$.value&&!X.value?0:void 0,class:(0,t.normalizeClass)(e.secondRightIconClass),onClick:(0,t.withModifiers)(q,[`stop`]),onKeydown:o[4]||=e=>$.value?e=>W(e,`fzinput:second-right-icon-click`):void 0},null,8,[`name`,`variant`,`role`,`aria-label`,`aria-disabled`,`tabindex`,`class`])):(0,t.createCommentVNode)(``,!0),e.secondRightIcon&&e.secondRightIconButton?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i.FzIconButton),{key:1,iconName:e.secondRightIcon,size:`md`,iconVariant:e.secondRightIconVariant,variant:X.value?`invisible`:e.secondRightIconButtonVariant,onClick:(0,t.withModifiers)(q,[`stop`]),class:(0,t.normalizeClass)([{"bg-grey-100 !text-grey-300":X.value},e.secondRightIconClass])},null,8,[`iconName`,`iconVariant`,`variant`,`class`])):(0,t.createCommentVNode)(``,!0),e.rightIcon&&!e.rightIconButton?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.FzIcon),{key:2,name:e.rightIcon,size:`md`,variant:e.rightIconVariant,role:Q.value?`button`:void 0,"aria-label":Q.value?e.rightIconAriaLabel:void 0,"aria-disabled":Q.value&&X.value?`true`:void 0,tabindex:Q.value&&!X.value?0:void 0,class:(0,t.normalizeClass)(e.rightIconClass),onClick:(0,t.withModifiers)(K,[`stop`]),onKeydown:o[5]||=e=>Q.value?e=>W(e,`fzinput:right-icon-click`):void 0},null,8,[`name`,`variant`,`role`,`aria-label`,`aria-disabled`,`tabindex`,`class`])):(0,t.createCommentVNode)(``,!0),e.rightIcon&&e.rightIconButton?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i.FzIconButton),{key:3,iconName:e.rightIcon,size:`md`,iconVariant:e.rightIconVariant,variant:X.value?`invisible`:e.rightIconButtonVariant,onClick:(0,t.withModifiers)(K,[`stop`]),class:(0,t.normalizeClass)([{"bg-grey-100 !text-grey-300":X.value},e.rightIconClass])},null,8,[`iconName`,`iconVariant`,`variant`,`class`])):(0,t.createCommentVNode)(``,!0),e.valid?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.FzIcon),{key:4,name:`check`,size:`md`,class:`text-semantic-success`,"aria-hidden":`true`})):(0,t.createCommentVNode)(``,!0)])])],42,f),e.error&&a.$slots.errorMessage?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.FzAlert),{key:0,id:`${(0,t.unref)(T)}-error`,role:`alert`,tone:`error`,variant:`text`,style:(0,t.normalizeStyle)({width:(0,t.unref)(I)})},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(a.$slots,`errorMessage`)]),_:3},8,[`id`,`style`])):a.$slots.helpText?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,id:`${(0,t.unref)(T)}-help`,class:(0,t.normalizeClass)([(0,t.unref)(F)]),style:(0,t.normalizeStyle)({width:(0,t.unref)(I)})},[(0,t.renderSlot)(a.$slots,`helpText`)],14,_)):(0,t.createCommentVNode)(``,!0)],2))}}),y={class:`flex items-center gap-4`},b={class:`flex flex-col justify-between items-center`};e.FzCurrencyInput=(0,t.defineComponent)({__name:`FzCurrencyInput`,props:(0,t.mergeModels)({modelValue:{},nullOnEmpty:{type:Boolean},zeroOnEmpty:{type:Boolean},minimumFractionDigits:{default:2},maximumFractionDigits:{default:2},min:{default:-1/0},max:{default:1/0},step:{default:1},forceStep:{type:Boolean},stepUpAriaLabel:{},stepDownAriaLabel:{},label:{},environment:{},size:{},placeholder:{},required:{type:Boolean},disabled:{type:Boolean},error:{type:Boolean},leftIcon:{},leftIconVariant:{},leftIconButtonVariant:{},leftIconAriaLabel:{},valid:{type:Boolean},variant:{},pattern:{},name:{},readonly:{type:Boolean},highlighted:{type:Boolean},highlightedDescription:{},aiReasoning:{type:Boolean},aiReasoningDescription:{},disableEmphasisReset:{type:Boolean},maxlength:{},autocomplete:{type:Boolean},clearable:{type:Boolean},clearAriaLabel:{},leftIconClass:{}},{modelValue:{},modelModifiers:{}}),emits:(0,t.mergeModels)([`fzcurrencyinput:clear`],[`update:modelValue`]),setup(e,{expose:n,emit:i}){let o=(0,t.ref)(),s=(0,t.ref)(),c=(0,t.computed)(()=>o.value?.containerRef),l=(0,t.computed)(()=>o.value?.inputRef),u=(0,t.ref)(!1),d=e,f=i,p=(0,t.useModel)(e,`modelValue`),m=!1,h=()=>{if(d.nullOnEmpty)return null;if(d.zeroOnEmpty)return 0},g=(e,t)=>e?t?``:(0,a.format)(0,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0}):``,_=(0,t.computed)(()=>d.stepUpAriaLabel?d.stepUpAriaLabel:`Incrementa di ${d.step}`),x=(0,t.computed)(()=>d.stepDownAriaLabel?d.stepDownAriaLabel:`Decrementa di ${d.step}`),S=(0,t.computed)(()=>d.readonly||d.disabled),C=e=>{let t=e.replace(/[^0-9.,-]/g,``),n=t.startsWith(`-`);t=t.replace(/-/g,``),t=t.replace(/\./g,`,`);let r=t.indexOf(`,`);if(r!==-1){let e=t.substring(0,r),n=t.substring(r+1).replace(/,/g,``);t=e+`,`+n}return n?`-`+t:t},w=e=>{if(!(e.ctrlKey||e.metaKey||e.altKey||[`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Tab`,`Enter`,`Home`,`End`].includes(e.key))){if(e.key===`-`){let t=e.target,n=t.selectionStart??0,r=(t.selectionEnd??0)-n,i=t.value.length;n!==0&&r!==i&&e.preventDefault();return}/^[0-9.,]$/.test(e.key)||e.preventDefault()}},T=e=>{if(d.readonly||d.disabled)return;e.preventDefault();let t=e.clipboardData?.getData(`text`)||``;if(!t)return;let n=(0,a.parse)(t);if(!isNaN(n)&&isFinite(n)){let e=(0,a.truncateDecimals)(n,d.maximumFractionDigits);m=!0,p.value=e,m=!1,s.value=C(String(e))}},E=e=>{if(!e){let e=h();m=!0,p.value=e,m=!1,s.value=``;return}let t=C(e);s.value=t;let n=(0,a.parse)(t);if(!isNaN(n)&&isFinite(n)){let e=(0,a.truncateDecimals)(n,d.maximumFractionDigits);m=!0,p.value=e,m=!1}else m=!0,p.value=h(),m=!1},D=()=>{if(d.readonly||d.disabled)return;u.value=!1;let e=k(p.value);if(e==null){let e=h();p.value!==e&&(m=!0,p.value=e,m=!1),s.value=g(e===0,!1);return}let t=e;d.forceStep&&(t=(0,a.roundTo)(d.step,t)),t=(0,a.clamp)(d.min,t,d.max),t!==e&&(m=!0,p.value=t,m=!1),s.value=(0,a.format)(t,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0})},O=()=>{if(d.readonly||d.disabled)return;u.value=!0;let e=k(p.value);e!==void 0&&(s.value=(0,a.format)(e,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0}).replace(/\./g,``))},k=e=>{if(e==null||e===``)return e===null?null:void 0;if(typeof e==`number`)return e;if(typeof e==`string`){console.warn(`[FzCurrencyInput] String values in v-model are deprecated. Please use number instead. Received: "${e}". This will be parsed to a number for retrocompatibility, but string support may be removed in a future version.`);let t=(0,a.parse)(e);return isNaN(t)?void 0:t}},A=()=>{if(d.readonly||d.disabled)return;let e=k(p.value),t=(0,a.truncateDecimals)((e??0)+d.step,d.maximumFractionDigits),n=(0,a.clamp)(d.min,t,d.max);m=!0,p.value=n,m=!1,s.value=(0,a.format)(n,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0})},j=()=>{if(d.readonly||d.disabled)return;let e=k(p.value),t=(0,a.truncateDecimals)((e??0)-d.step,d.maximumFractionDigits),n=(0,a.clamp)(d.min,t,d.max);m=!0,p.value=n,m=!1,s.value=(0,a.format)(n,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0})};return(0,t.onMounted)(()=>{let e=p.value;if(e==null){let t=h();e!==t&&(m=!0,p.value=t,m=!1),s.value=g(t===0,!1);return}if(typeof e==`number`){let t=(0,a.truncateDecimals)(e,d.maximumFractionDigits);d.forceStep&&(t=(0,a.roundTo)(d.step,t)),t=(0,a.clamp)(d.min,t,d.max),t!==e&&(m=!0,p.value=t,m=!1),s.value=(0,a.format)(t,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0});return}if(typeof e==`string`){let t=k(e);if(t!=null){let e=(0,a.truncateDecimals)(t,d.maximumFractionDigits);d.forceStep&&(e=(0,a.roundTo)(d.step,e)),e=(0,a.clamp)(d.min,e,d.max),m=!0,p.value=e,m=!1,s.value=(0,a.format)(e,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0})}else{let e=h();m=!0,p.value=e,m=!1,s.value=g(e===0,!1)}return}}),(0,t.watch)(()=>p.value,e=>{if(!m){if(e==null){let t=h();e!==t&&(m=!0,p.value=t,m=!1),s.value=g(t===0,u.value);return}if(typeof e==`number`){let t=(0,a.truncateDecimals)(e,d.maximumFractionDigits);d.forceStep&&(t=(0,a.roundTo)(d.step,t)),u.value||(t=(0,a.clamp)(d.min,t,d.max)),t!==e&&(m=!0,p.value=t,m=!1),u.value||(s.value=(0,a.format)(t,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0}));return}if(typeof e==`string`){let t=k(e);if(t!=null){let e=(0,a.truncateDecimals)(t,d.maximumFractionDigits);d.forceStep&&(e=(0,a.roundTo)(d.step,e)),u.value||(e=(0,a.clamp)(d.min,e,d.max)),m=!0,p.value=e,m=!1,u.value||(s.value=(0,a.format)(e,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0}))}else{let e=h();m=!0,p.value=e,m=!1,s.value=g(e===0,u.value)}return}}}),n({inputRef:l,containerRef:c}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(v,(0,t.mergeProps)({ref_key:`fzInputRef`,ref:o},d,{modelValue:s.value,type:`text`,"onUpdate:modelValue":E,onKeydown:w,onFocus:O,onBlur:D,onPaste:T,"onFzinput:clear":n[2]||=e=>f(`fzcurrencyinput:clear`)}),(0,t.createSlots)({"right-icon":(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,y,[d.valid?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.FzIcon),{key:0,name:`check`,size:`md`,class:`text-semantic-success`,"aria-hidden":`true`})):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,b,[(0,t.createVNode)((0,t.unref)(r.FzIcon),{name:`angle-up`,size:`xs`,role:`button`,"aria-label":_.value,"aria-disabled":S.value?`true`:void 0,tabindex:S.value?void 0:`0`,class:`fz__currencyinput__arrowup cursor-pointer`,onClick:A,onKeydown:n[0]||=e=>{(e.key===`Enter`||e.key===` `)&&!S.value&&(e.preventDefault(),A())}},null,8,[`aria-label`,`aria-disabled`,`tabindex`]),(0,t.createVNode)((0,t.unref)(r.FzIcon),{name:`angle-down`,size:`xs`,role:`button`,"aria-label":x.value,"aria-disabled":S.value?`true`:void 0,tabindex:S.value?void 0:`0`,class:`fz__currencyinput__arrowdown cursor-pointer`,onClick:j,onKeydown:n[1]||=e=>{(e.key===`Enter`||e.key===` `)&&!S.value&&(e.preventDefault(),j())}},null,8,[`aria-label`,`aria-disabled`,`tabindex`])])])]),_:2},[e.$slots.label?{name:`label`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),key:`0`}:void 0,e.$slots[`left-icon`]?{name:`left-icon`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`left-icon`)]),key:`1`}:void 0,e.$slots.helpText?{name:`helpText`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`helpText`)]),key:`2`}:void 0,e.$slots.errorMessage?{name:`errorMessage`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`errorMessage`)]),key:`3`}:void 0]),1040,[`modelValue`]))}}),e.FzInput=v,e.sizeToEnvironmentMapping=s});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`),require(`@fiscozen/alert`),require(`@fiscozen/icons`),require(`@fiscozen/button`),require(`@fiscozen/composables`)):typeof define==`function`&&define.amd?define([`exports`,`vue`,`@fiscozen/alert`,`@fiscozen/icons`,`@fiscozen/button`,`@fiscozen/composables`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.FzInput={},e.Vue,e._fiscozen_alert,e._fiscozen_icons,e._fiscozen_button,e._fiscozen_composables))})(this,function(e,t,n,r,i,a){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function o(e,n,r,i,a){let o={backoffice:`h-32`,frontoffice:`h-44`},s=(0,t.computed)(()=>{let t=i.value;return[e.variant?.value===`normal`?o[t]:o.frontoffice,v()]}),c=(0,t.computed)(()=>[`font-normal text-base mb-0`,e.disabled?.value||e.readonly?.value?`text-grey-300`:`text-grey-500`]),l={backoffice:`text-base`,frontoffice:`text-base`},u=(0,t.computed)(()=>e.variant?.value===`floating-label`?!r.value&&!a.value:!0),d=(0,t.computed)(()=>{let t=i.value;return e.variant?.value===`floating-label`?[l[t]]:[]}),f=(0,t.computed)(()=>[`font-normal text-base`,e.disabled?.value||e.readonly?.value?`text-grey-300`:`text-grey-500`]),p=(0,t.computed)(()=>[`font-normal text-base`,e.disabled?.value||e.readonly?.value?`text-grey-300`:`text-core-black`]),m=e=>!!e.error?.value,h=e=>!!e.disabled?.value||!!e.readonly?.value,g=e=>!!e.highlighted?.value,_=e=>!!e.aiReasoning?.value,v=()=>{switch(!0){case m(e):return`border-semantic-error-200 has-[:focus]:border-semantic-error-300 bg-core-white text-core-black cursor-text`;case h(e):return`bg-grey-100 border-grey-100 text-grey-300 cursor-not-allowed`;case g(e):return`bg-semantic-warning-50 border-semantic-warning-200 ring-2 ring-semantic-warning-100 text-core-black cursor-text`;case _(e):return`bg-purple-50 border-purple-600 ring-2 ring-purple-200 text-core-black cursor-text`;default:return`border-grey-200 has-[:focus]:border-blue-600 bg-core-white text-core-black cursor-text`}};return{staticContainerClass:`flex justify-between w-full items-center pl-[10px] pr-[10px] rounded border-1 border-solid gap-8 text-left relative outline-none`,computedContainerClass:s,computedLabelClass:c,staticInputClass:`peer w-full bg-transparent border-0 outline-none focus:outline-none cursor-[inherit] focus:ring-0 truncate placeholder:text-grey-300 disabled:text-grey-300 read-only:text-grey-300 font-normal text-base`,computedInputClass:d,computedHelpClass:f,computedErrorClass:p,showNormalPlaceholder:u}}var s={sm:`backoffice`,md:`backoffice`,lg:`frontoffice`},c=0;function l(e){return`${e}-${Date.now()-16e11}-${++c}`}function u(){return l(`fz-input`)}var d=[`id`,`for`],f=[`tabindex`],p={class:`flex flex-col justify-around min-w-0 grow`},m={key:0,class:`text-xs text-grey-300 grow-0 overflow-hidden text-ellipsis whitespace-nowrap`},h=[`type`,`required`,`disabled`,`readonly`,`placeholder`,`pattern`,`name`,`maxlength`,`autocomplete`,`aria-required`,`aria-invalid`,`aria-disabled`,`aria-labelledby`,`aria-describedby`,`aria-description`,`id`],g={class:`flex items-center gap-4`},_=[`id`],v=(0,t.defineComponent)({inheritAttrs:!1,__name:`FzInput`,props:(0,t.mergeModels)({id:{},label:{},environment:{default:`frontoffice`},size:{},placeholder:{},required:{type:Boolean},disabled:{type:Boolean},error:{type:Boolean,default:!1},leftIcon:{},leftIconVariant:{},leftIconButtonVariant:{},leftIconAriaLabel:{},rightIcon:{},rightIconClass:{},rightIconSize:{},rightIconVariant:{},rightIconButton:{type:Boolean},rightIconButtonVariant:{default:`invisible`},rightIconAriaLabel:{},secondRightIcon:{},secondRightIconClass:{},secondRightIconVariant:{},secondRightIconButton:{type:Boolean},secondRightIconButtonVariant:{default:`invisible`},secondRightIconAriaLabel:{},type:{default:`text`},valid:{type:Boolean},variant:{default:`normal`},pattern:{},name:{},readonly:{type:Boolean},highlighted:{type:Boolean,default:!1},highlightedDescription:{default:`Campo in evidenza`},aiReasoning:{type:Boolean,default:!1},aiReasoningDescription:{default:`Suggerito dall'intelligenza artificiale`},disableEmphasisReset:{type:Boolean,default:!1},maxlength:{},autocomplete:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},clearAriaLabel:{default:`Cancella`},leftIconClass:{}},{modelValue:{},modelModifiers:{}}),emits:(0,t.mergeModels)([`focus`,`blur`,`fzinput:left-icon-click`,`fzinput:right-icon-click`,`fzinput:second-right-icon-click`,`update:highlighted`,`update:aiReasoning`,`fzinput:clear`],[`update:modelValue`]),setup(e,{expose:a,emit:c}){let l=e,v=(0,t.useAttrs)(),y=(0,t.computed)(()=>{let{class:e,id:t,...n}=v;return n}),b=(0,t.computed)(()=>v.class);(0,t.watch)(()=>l.size,e=>{if(e!==void 0){let t=s[e];l.environment&&l.environment!==t?console.warn(`[FzInput] Both "size" and "environment" props are provided. "environment=${l.environment}" will be used and "size=${e}" will be ignored. Please remove the deprecated "size" prop.`):console.warn(`[FzInput] The "size" prop is deprecated and will be removed in a future version. Please use environment="${t}" instead of size="${e}".`)}},{immediate:!0}),(0,t.watch)(()=>l.rightIconSize,e=>{e!==void 0&&console.warn(`[FzInput] The "rightIconSize" prop is deprecated and will be removed in a future version. Icons now have a fixed size of "md". The provided value "${e}" will be ignored.`)},{immediate:!0});let x=(0,t.computed)(()=>l.environment?l.environment:l.size?s[l.size]:`frontoffice`),S=(0,t.useModel)(e,`modelValue`),C=(0,t.ref)(null),w=(0,t.ref)(null),T=u(),E=(0,t.computed)(()=>l.id||T),D=(0,t.ref)(!1),O=(0,t.ref)(l.highlighted),k=(0,t.ref)(l.aiReasoning);(0,t.watch)(()=>l.highlighted,e=>{O.value=e}),(0,t.watch)(()=>l.aiReasoning,e=>{k.value=e});let A=()=>{l.disableEmphasisReset||(O.value&&(O.value=!1,V(`update:highlighted`,!1)),k.value&&(k.value=!1,V(`update:aiReasoning`,!1)))},{staticContainerClass:j,computedContainerClass:M,computedLabelClass:N,staticInputClass:P,computedInputClass:F,computedHelpClass:I,showNormalPlaceholder:L}=o({...(0,t.toRefs)(l),highlighted:O,aiReasoning:k},C,S,x,D);(0,t.useSlots)();let R=(0,t.useSlots)(),z=(0,t.computed)(()=>{let e=!!l.label,t=!!R.label;if(e&&!t)return`${E.value}-label`}),B=(0,t.computed)(()=>{let e=[];return l.error&&R.errorMessage&&e.push(`${E.value}-error`),!l.error&&R.helpText&&e.push(`${E.value}-help`),e.length>0?e.join(` `):void 0}),V=c,H=()=>{!l.disabled&&!l.readonly&&w.value&&w.value.focus()},U=e=>{(e.key===`Enter`||e.key===` `)&&(e.target===e.currentTarget||e.target===C.value)&&(e.preventDefault(),H())},W=(e,t)=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),X.value||V(t===`fzinput:left-icon-click`?`fzinput:left-icon-click`:t===`fzinput:right-icon-click`?`fzinput:right-icon-click`:`fzinput:second-right-icon-click`))},G=()=>{X.value||V(`fzinput:left-icon-click`)},K=()=>{X.value||V(`fzinput:right-icon-click`)},q=()=>{X.value||V(`fzinput:second-right-icon-click`)},J=(0,t.computed)(()=>!!l.leftIcon),Y=(0,t.computed)(()=>J.value&&!!l.leftIconAriaLabel),X=(0,t.computed)(()=>!!l.disabled||!!l.readonly),Z=(0,t.computed)(()=>X.value||l.error?`text-grey-300`:`text-purple-600`),ee=(0,t.computed)(()=>{if(!(X.value||l.error)){if(O.value)return l.highlightedDescription;if(k.value)return l.aiReasoningDescription}}),te=(0,t.computed)(()=>!!l.rightIcon&&!l.rightIconButton),Q=(0,t.computed)(()=>te.value&&!!l.rightIconAriaLabel),ne=(0,t.computed)(()=>!!l.secondRightIcon&&!l.secondRightIconButton),$=(0,t.computed)(()=>ne.value&&!!l.secondRightIconAriaLabel),re=(0,t.computed)(()=>l.clearable&&!!S.value&&!X.value),ie=()=>{S.value=``,V(`fzinput:clear`),w.value?.focus()};return a({inputRef:w,containerRef:C}),(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`fz-input text-core-black w-full flex flex-col gap-8`,b.value])},[(0,t.renderSlot)(a.$slots,`label`,{},()=>[e.label?((0,t.openBlock)(),(0,t.createElementBlock)(`label`,{key:0,id:`${E.value}-label`,class:(0,t.normalizeClass)((0,t.unref)(N)),for:E.value},(0,t.toDisplayString)(e.label)+(0,t.toDisplayString)(e.required?` *`:``),11,d)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([(0,t.unref)(j),(0,t.unref)(M)]),ref_key:`containerRef`,ref:C,tabindex:X.value?void 0:0,onClick:H,onKeydown:U},[(0,t.renderSlot)(a.$slots,`left-icon`,{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.FzIcon),{key:0,name:e.leftIcon,size:`md`,variant:e.leftIconVariant,role:Y.value?`button`:void 0,"aria-label":Y.value?e.leftIconAriaLabel:void 0,"aria-disabled":Y.value&&X.value?`true`:void 0,tabindex:Y.value&&!X.value?0:void 0,class:(0,t.normalizeClass)(e.leftIconClass),onClick:(0,t.withModifiers)(G,[`stop`]),onKeydown:o[0]||=e=>Y.value?e=>W(e,`fzinput:left-icon-click`):void 0},null,8,[`name`,`variant`,`role`,`aria-label`,`aria-disabled`,`tabindex`,`class`])):k.value&&!O.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.FzIcon),{key:1,name:`sparkles`,variant:`fas`,size:`md`,"aria-hidden":`true`,class:(0,t.normalizeClass)(Z.value)},null,8,[`class`])):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,p,[(0,t.unref)(L)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,m,(0,t.toDisplayString)(e.placeholder),1)),(0,t.withDirectives)((0,t.createElementVNode)(`input`,(0,t.mergeProps)({type:e.type,required:e.required,disabled:e.disabled,readonly:e.readonly,placeholder:(0,t.unref)(L)?e.placeholder:``,"onUpdate:modelValue":o[1]||=e=>S.value=e,ref_key:`inputRef`,ref:w,class:[(0,t.unref)(P),(0,t.unref)(F)],pattern:e.pattern,name:e.name,maxlength:e.maxlength,autocomplete:e.autocomplete?`on`:`off`,"aria-required":e.required?`true`:`false`,"aria-invalid":e.error?`true`:`false`,"aria-disabled":X.value?`true`:`false`,"aria-labelledby":z.value,"aria-describedby":B.value,"aria-description":ee.value},y.value,{id:E.value,onInput:A,onBlur:o[2]||=e=>{D.value=!1,a.$emit(`blur`,e)},onFocus:o[3]||=e=>{D.value=!0,a.$emit(`focus`,e)}}),null,16,h),[[t.vModelDynamic,S.value]])]),(0,t.createElementVNode)(`div`,g,[re.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i.FzIconButton),{key:0,iconName:`xmark`,size:`md`,variant:`invisible`,ariaLabel:e.clearAriaLabel,onClick:(0,t.withModifiers)(ie,[`stop`])},null,8,[`ariaLabel`])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(a.$slots,`right-icon`,{},()=>[e.secondRightIcon&&!e.secondRightIconButton?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.FzIcon),{key:0,name:e.secondRightIcon,size:`md`,variant:e.secondRightIconVariant,role:$.value?`button`:void 0,"aria-label":$.value?e.secondRightIconAriaLabel:void 0,"aria-disabled":$.value&&X.value?`true`:void 0,tabindex:$.value&&!X.value?0:void 0,class:(0,t.normalizeClass)(e.secondRightIconClass),onClick:(0,t.withModifiers)(q,[`stop`]),onKeydown:o[4]||=e=>$.value?e=>W(e,`fzinput:second-right-icon-click`):void 0},null,8,[`name`,`variant`,`role`,`aria-label`,`aria-disabled`,`tabindex`,`class`])):(0,t.createCommentVNode)(``,!0),e.secondRightIcon&&e.secondRightIconButton?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i.FzIconButton),{key:1,iconName:e.secondRightIcon,size:`md`,iconVariant:e.secondRightIconVariant,variant:X.value?`invisible`:e.secondRightIconButtonVariant,onClick:(0,t.withModifiers)(q,[`stop`]),class:(0,t.normalizeClass)([{"bg-grey-100 !text-grey-300":X.value},e.secondRightIconClass])},null,8,[`iconName`,`iconVariant`,`variant`,`class`])):(0,t.createCommentVNode)(``,!0),e.rightIcon&&!e.rightIconButton?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.FzIcon),{key:2,name:e.rightIcon,size:`md`,variant:e.rightIconVariant,role:Q.value?`button`:void 0,"aria-label":Q.value?e.rightIconAriaLabel:void 0,"aria-disabled":Q.value&&X.value?`true`:void 0,tabindex:Q.value&&!X.value?0:void 0,class:(0,t.normalizeClass)(e.rightIconClass),onClick:(0,t.withModifiers)(K,[`stop`]),onKeydown:o[5]||=e=>Q.value?e=>W(e,`fzinput:right-icon-click`):void 0},null,8,[`name`,`variant`,`role`,`aria-label`,`aria-disabled`,`tabindex`,`class`])):(0,t.createCommentVNode)(``,!0),e.rightIcon&&e.rightIconButton?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i.FzIconButton),{key:3,iconName:e.rightIcon,size:`md`,iconVariant:e.rightIconVariant,variant:X.value?`invisible`:e.rightIconButtonVariant,onClick:(0,t.withModifiers)(K,[`stop`]),class:(0,t.normalizeClass)([{"bg-grey-100 !text-grey-300":X.value},e.rightIconClass])},null,8,[`iconName`,`iconVariant`,`variant`,`class`])):(0,t.createCommentVNode)(``,!0),e.valid?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.FzIcon),{key:4,name:`check`,size:`md`,class:`text-semantic-success`,"aria-hidden":`true`})):(0,t.createCommentVNode)(``,!0)])])],42,f),e.error&&a.$slots.errorMessage?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.FzAlert),{key:0,id:`${E.value}-error`,role:`alert`,tone:`error`,variant:`text`},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(a.$slots,`errorMessage`)]),_:3},8,[`id`])):a.$slots.helpText?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,id:`${E.value}-help`,class:(0,t.normalizeClass)([(0,t.unref)(I)])},[(0,t.renderSlot)(a.$slots,`helpText`)],10,_)):(0,t.createCommentVNode)(``,!0)],2))}}),y={class:`flex items-center gap-4`},b={class:`flex flex-col justify-between items-center`};e.FzCurrencyInput=(0,t.defineComponent)({__name:`FzCurrencyInput`,props:(0,t.mergeModels)({modelValue:{},nullOnEmpty:{type:Boolean},zeroOnEmpty:{type:Boolean},minimumFractionDigits:{default:2},maximumFractionDigits:{default:2},min:{default:-1/0},max:{default:1/0},step:{default:1},forceStep:{type:Boolean},stepUpAriaLabel:{},stepDownAriaLabel:{},id:{},label:{},environment:{},size:{},placeholder:{},required:{type:Boolean},disabled:{type:Boolean},error:{type:Boolean},leftIcon:{},leftIconVariant:{},leftIconButtonVariant:{},leftIconAriaLabel:{},valid:{type:Boolean},variant:{},pattern:{},name:{},readonly:{type:Boolean},highlighted:{type:Boolean},highlightedDescription:{},aiReasoning:{type:Boolean},aiReasoningDescription:{},disableEmphasisReset:{type:Boolean},maxlength:{},autocomplete:{type:Boolean},clearable:{type:Boolean},clearAriaLabel:{},leftIconClass:{}},{modelValue:{},modelModifiers:{}}),emits:(0,t.mergeModels)([`fzcurrencyinput:clear`],[`update:modelValue`]),setup(e,{expose:n,emit:i}){let o=(0,t.ref)(),s=(0,t.ref)(),c=(0,t.computed)(()=>o.value?.containerRef),l=(0,t.computed)(()=>o.value?.inputRef),u=(0,t.ref)(!1),d=e,f=i,p=(0,t.useModel)(e,`modelValue`),m=!1,h=()=>{if(d.nullOnEmpty)return null;if(d.zeroOnEmpty)return 0},g=(e,t)=>e?t?``:(0,a.format)(0,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0}):``,_=(0,t.computed)(()=>d.stepUpAriaLabel?d.stepUpAriaLabel:`Incrementa di ${d.step}`),x=(0,t.computed)(()=>d.stepDownAriaLabel?d.stepDownAriaLabel:`Decrementa di ${d.step}`),S=(0,t.computed)(()=>d.readonly||d.disabled),C=e=>{let t=e.replace(/[^0-9.,-]/g,``),n=t.startsWith(`-`);t=t.replace(/-/g,``),t=t.replace(/\./g,`,`);let r=t.indexOf(`,`);if(r!==-1){let e=t.substring(0,r),n=t.substring(r+1).replace(/,/g,``);t=e+`,`+n}return n?`-`+t:t},w=e=>{if(!(e.ctrlKey||e.metaKey||e.altKey||[`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Tab`,`Enter`,`Home`,`End`].includes(e.key))){if(e.key===`-`){let t=e.target,n=t.selectionStart??0,r=(t.selectionEnd??0)-n,i=t.value.length;n!==0&&r!==i&&e.preventDefault();return}/^[0-9.,]$/.test(e.key)||e.preventDefault()}},T=e=>{if(d.readonly||d.disabled)return;e.preventDefault();let t=e.clipboardData?.getData(`text`)||``;if(!t)return;let n=(0,a.parse)(t);if(!isNaN(n)&&isFinite(n)){let e=(0,a.truncateDecimals)(n,d.maximumFractionDigits);m=!0,p.value=e,m=!1,s.value=C(String(e))}},E=e=>{if(!e){let e=h();m=!0,p.value=e,m=!1,s.value=``;return}let t=C(e);s.value=t;let n=(0,a.parse)(t);if(!isNaN(n)&&isFinite(n)){let e=(0,a.truncateDecimals)(n,d.maximumFractionDigits);m=!0,p.value=e,m=!1}else m=!0,p.value=h(),m=!1},D=()=>{if(d.readonly||d.disabled)return;u.value=!1;let e=k(p.value);if(e==null){let e=h();p.value!==e&&(m=!0,p.value=e,m=!1),s.value=g(e===0,!1);return}let t=e;d.forceStep&&(t=(0,a.roundTo)(d.step,t)),t=(0,a.clamp)(d.min,t,d.max),t!==e&&(m=!0,p.value=t,m=!1),s.value=(0,a.format)(t,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0})},O=()=>{if(d.readonly||d.disabled)return;u.value=!0;let e=k(p.value);e!==void 0&&(s.value=(0,a.format)(e,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0}).replace(/\./g,``))},k=e=>{if(e==null||e===``)return e===null?null:void 0;if(typeof e==`number`)return e;if(typeof e==`string`){console.warn(`[FzCurrencyInput] String values in v-model are deprecated. Please use number instead. Received: "${e}". This will be parsed to a number for retrocompatibility, but string support may be removed in a future version.`);let t=(0,a.parse)(e);return isNaN(t)?void 0:t}},A=()=>{if(d.readonly||d.disabled)return;let e=k(p.value),t=(0,a.truncateDecimals)((e??0)+d.step,d.maximumFractionDigits),n=(0,a.clamp)(d.min,t,d.max);m=!0,p.value=n,m=!1,s.value=(0,a.format)(n,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0})},j=()=>{if(d.readonly||d.disabled)return;let e=k(p.value),t=(0,a.truncateDecimals)((e??0)-d.step,d.maximumFractionDigits),n=(0,a.clamp)(d.min,t,d.max);m=!0,p.value=n,m=!1,s.value=(0,a.format)(n,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0})};return(0,t.onMounted)(()=>{let e=p.value;if(e==null){let t=h();e!==t&&(m=!0,p.value=t,m=!1),s.value=g(t===0,!1);return}if(typeof e==`number`){let t=(0,a.truncateDecimals)(e,d.maximumFractionDigits);d.forceStep&&(t=(0,a.roundTo)(d.step,t)),t=(0,a.clamp)(d.min,t,d.max),t!==e&&(m=!0,p.value=t,m=!1),s.value=(0,a.format)(t,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0});return}if(typeof e==`string`){let t=k(e);if(t!=null){let e=(0,a.truncateDecimals)(t,d.maximumFractionDigits);d.forceStep&&(e=(0,a.roundTo)(d.step,e)),e=(0,a.clamp)(d.min,e,d.max),m=!0,p.value=e,m=!1,s.value=(0,a.format)(e,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0})}else{let e=h();m=!0,p.value=e,m=!1,s.value=g(e===0,!1)}return}}),(0,t.watch)(()=>p.value,e=>{if(!m){if(e==null){let t=h();e!==t&&(m=!0,p.value=t,m=!1),s.value=g(t===0,u.value);return}if(typeof e==`number`){let t=(0,a.truncateDecimals)(e,d.maximumFractionDigits);d.forceStep&&(t=(0,a.roundTo)(d.step,t)),u.value||(t=(0,a.clamp)(d.min,t,d.max)),t!==e&&(m=!0,p.value=t,m=!1),u.value||(s.value=(0,a.format)(t,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0}));return}if(typeof e==`string`){let t=k(e);if(t!=null){let e=(0,a.truncateDecimals)(t,d.maximumFractionDigits);d.forceStep&&(e=(0,a.roundTo)(d.step,e)),u.value||(e=(0,a.clamp)(d.min,e,d.max)),m=!0,p.value=e,m=!1,u.value||(s.value=(0,a.format)(e,{minimumFractionDigits:d.minimumFractionDigits,maximumFractionDigits:d.maximumFractionDigits,roundDecimals:!1,useGrouping:!0}))}else{let e=h();m=!0,p.value=e,m=!1,s.value=g(e===0,u.value)}return}}}),n({inputRef:l,containerRef:c}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(v,(0,t.mergeProps)({ref_key:`fzInputRef`,ref:o},d,{modelValue:s.value,type:`text`,"onUpdate:modelValue":E,onKeydown:w,onFocus:O,onBlur:D,onPaste:T,"onFzinput:clear":n[2]||=e=>f(`fzcurrencyinput:clear`)}),(0,t.createSlots)({"right-icon":(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,y,[d.valid?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.FzIcon),{key:0,name:`check`,size:`md`,class:`text-semantic-success`,"aria-hidden":`true`})):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,b,[(0,t.createVNode)((0,t.unref)(r.FzIcon),{name:`angle-up`,size:`xs`,role:`button`,"aria-label":_.value,"aria-disabled":S.value?`true`:void 0,tabindex:S.value?void 0:`0`,class:`fz__currencyinput__arrowup cursor-pointer`,onClick:A,onKeydown:n[0]||=e=>{(e.key===`Enter`||e.key===` `)&&!S.value&&(e.preventDefault(),A())}},null,8,[`aria-label`,`aria-disabled`,`tabindex`]),(0,t.createVNode)((0,t.unref)(r.FzIcon),{name:`angle-down`,size:`xs`,role:`button`,"aria-label":x.value,"aria-disabled":S.value?`true`:void 0,tabindex:S.value?void 0:`0`,class:`fz__currencyinput__arrowdown cursor-pointer`,onClick:j,onKeydown:n[1]||=e=>{(e.key===`Enter`||e.key===` `)&&!S.value&&(e.preventDefault(),j())}},null,8,[`aria-label`,`aria-disabled`,`tabindex`])])])]),_:2},[e.$slots.label?{name:`label`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`label`)]),key:`0`}:void 0,e.$slots[`left-icon`]?{name:`left-icon`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`left-icon`)]),key:`1`}:void 0,e.$slots.helpText?{name:`helpText`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`helpText`)]),key:`2`}:void 0,e.$slots.errorMessage?{name:`errorMessage`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`errorMessage`)]),key:`3`}:void 0]),1040,[`modelValue`]))}}),e.FzInput=v,e.sizeToEnvironmentMapping=s});
|
|
@@ -18,6 +18,7 @@ declare function __VLS_template(): {
|
|
|
18
18
|
$data: {};
|
|
19
19
|
$props: {
|
|
20
20
|
readonly modelValue?: string | undefined;
|
|
21
|
+
readonly id?: string | undefined;
|
|
21
22
|
readonly label?: string | undefined;
|
|
22
23
|
readonly environment?: import('./types').InputEnvironment | undefined;
|
|
23
24
|
readonly size?: "sm" | "md" | "lg" | undefined;
|
|
@@ -215,6 +216,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
215
216
|
$data: {};
|
|
216
217
|
$props: {
|
|
217
218
|
readonly modelValue?: string | undefined;
|
|
219
|
+
readonly id?: string | undefined;
|
|
218
220
|
readonly label?: string | undefined;
|
|
219
221
|
readonly environment?: import('./types').InputEnvironment | undefined;
|
|
220
222
|
readonly size?: "sm" | "md" | "lg" | undefined;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -2,6 +2,12 @@ import { IconButtonVariant } from '@fiscozen/button';
|
|
|
2
2
|
import { IconSize, IconVariant } from '@fiscozen/icons';
|
|
3
3
|
export type InputEnvironment = "backoffice" | "frontoffice";
|
|
4
4
|
type FzInputProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Custom DOM id for the underlying `<input>`. When provided, the same value is
|
|
7
|
+
* used for the `<label>`'s `for` attribute so the label-input binding stays
|
|
8
|
+
* intact. When omitted, the component generates a stable unique id.
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
5
11
|
/**
|
|
6
12
|
* Text label displayed above the input field. Overridden by label slot if provided.
|
|
7
13
|
*/
|
|
@@ -21,6 +21,5 @@ export default function useInputStyle(props: ToRefs<FzInputProps>, container: Re
|
|
|
21
21
|
computedInputClass: ComputedRef<string[]>;
|
|
22
22
|
computedHelpClass: ComputedRef<string[]>;
|
|
23
23
|
computedErrorClass: ComputedRef<string[]>;
|
|
24
|
-
containerWidth: ComputedRef<string>;
|
|
25
24
|
showNormalPlaceholder: ComputedRef<boolean>;
|
|
26
25
|
};
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiscozen/input",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Design System Input component",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"keywords": [],
|
|
8
8
|
"author": "Cristian Barraco",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@fiscozen/button": "3.0.1",
|
|
11
10
|
"@fiscozen/alert": "3.0.1",
|
|
12
|
-
"@fiscozen/composables": "1.0.3"
|
|
11
|
+
"@fiscozen/composables": "1.0.3",
|
|
12
|
+
"@fiscozen/button": "3.0.1"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"tailwindcss": "^3.4.1",
|
package/src/FzInput.vue
CHANGED
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
* so that consumers can control layout/positioning of the component.
|
|
49
49
|
*/
|
|
50
50
|
const inputAttrs = computed(() => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
// Drop class (applied to the root wrapper) and id (controlled by the
|
|
52
|
+
// dedicated `id` prop) so the visible input stays in sync with the label.
|
|
53
|
+
const { class: _class, id: _id, ...rest } = attrs as Record<string, unknown>;
|
|
54
|
+
return rest;
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
const rootClass = computed(() => attrs.class);
|
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
const containerRef: Ref<HTMLElement | null> = ref(null);
|
|
123
123
|
const inputRef: Ref<HTMLInputElement | null> = ref(null);
|
|
124
124
|
const uniqueId = generateInputId();
|
|
125
|
+
const effectiveId = computed(() => props.id || uniqueId);
|
|
125
126
|
const isFocused = ref(false);
|
|
126
127
|
|
|
127
128
|
/**
|
|
@@ -172,7 +173,6 @@
|
|
|
172
173
|
staticInputClass,
|
|
173
174
|
computedInputClass,
|
|
174
175
|
computedHelpClass,
|
|
175
|
-
containerWidth,
|
|
176
176
|
showNormalPlaceholder,
|
|
177
177
|
} = useInputStyle(
|
|
178
178
|
{
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
const hasCustomLabelSlot = !!runtimeSlots.label;
|
|
208
208
|
|
|
209
209
|
if (hasLabelProp && !hasCustomLabelSlot) {
|
|
210
|
-
return `${
|
|
210
|
+
return `${effectiveId.value}-label`;
|
|
211
211
|
}
|
|
212
212
|
return undefined;
|
|
213
213
|
});
|
|
@@ -220,10 +220,10 @@
|
|
|
220
220
|
const ariaDescribedBy = computed(() => {
|
|
221
221
|
const ids: string[] = [];
|
|
222
222
|
if (props.error && runtimeSlots.errorMessage) {
|
|
223
|
-
ids.push(`${
|
|
223
|
+
ids.push(`${effectiveId.value}-error`);
|
|
224
224
|
}
|
|
225
225
|
if (!props.error && runtimeSlots.helpText) {
|
|
226
|
-
ids.push(`${
|
|
226
|
+
ids.push(`${effectiveId.value}-help`);
|
|
227
227
|
}
|
|
228
228
|
return ids.length > 0 ? ids.join(" ") : undefined;
|
|
229
229
|
});
|
|
@@ -425,9 +425,9 @@
|
|
|
425
425
|
</script>
|
|
426
426
|
|
|
427
427
|
<template>
|
|
428
|
-
<div class="fz-input w-full flex flex-col gap-8" :class="rootClass">
|
|
428
|
+
<div class="fz-input text-core-black w-full flex flex-col gap-8" :class="rootClass">
|
|
429
429
|
<slot name="label">
|
|
430
|
-
<label v-if="label" :id="`${
|
|
430
|
+
<label v-if="label" :id="`${effectiveId}-label`" :class="computedLabelClass" :for="effectiveId">
|
|
431
431
|
{{ label }}{{ required ? " *" : "" }}
|
|
432
432
|
</label>
|
|
433
433
|
</slot>
|
|
@@ -452,12 +452,12 @@
|
|
|
452
452
|
<span v-if="!showNormalPlaceholder"
|
|
453
453
|
class="text-xs text-grey-300 grow-0 overflow-hidden text-ellipsis whitespace-nowrap">{{ placeholder }}</span>
|
|
454
454
|
<input :type="type" :required="required" :disabled="disabled" :readonly="readonly"
|
|
455
|
-
:placeholder="showNormalPlaceholder ? placeholder : ''" v-model="model"
|
|
455
|
+
:placeholder="showNormalPlaceholder ? placeholder : ''" v-model="model" ref="inputRef"
|
|
456
456
|
:class="[staticInputClass, computedInputClass]" :pattern="pattern" :name :maxlength
|
|
457
457
|
:autocomplete="autocomplete ? 'on' : 'off'" :aria-required="required ? 'true' : 'false'"
|
|
458
458
|
:aria-invalid="error ? 'true' : 'false'" :aria-disabled="isReadonlyOrDisabled ? 'true' : 'false'"
|
|
459
459
|
:aria-labelledby="ariaLabelledBy" :aria-describedby="ariaDescribedBy" :aria-description="emphasisDescription"
|
|
460
|
-
v-bind="inputAttrs" @input="handleUserInput" @blur="
|
|
460
|
+
v-bind="inputAttrs" :id="effectiveId" @input="handleUserInput" @blur="
|
|
461
461
|
(e) => {
|
|
462
462
|
isFocused = false;
|
|
463
463
|
$emit('blur', e);
|
|
@@ -513,12 +513,10 @@
|
|
|
513
513
|
</slot>
|
|
514
514
|
</div>
|
|
515
515
|
</div>
|
|
516
|
-
<FzAlert v-if="error && $slots.errorMessage" :id="`${
|
|
517
|
-
:style="{ width: containerWidth }">
|
|
516
|
+
<FzAlert v-if="error && $slots.errorMessage" :id="`${effectiveId}-error`" role="alert" tone="error" variant="text">
|
|
518
517
|
<slot name="errorMessage"></slot>
|
|
519
518
|
</FzAlert>
|
|
520
|
-
<span v-else-if="$slots.helpText" :id="`${
|
|
521
|
-
:style="{ width: containerWidth }">
|
|
519
|
+
<span v-else-if="$slots.helpText" :id="`${effectiveId}-help`" :class="[computedHelpClass]">
|
|
522
520
|
<slot name="helpText"></slot>
|
|
523
521
|
</span>
|
|
524
522
|
</div>
|
|
@@ -1088,21 +1088,6 @@ describe("FzInput", () => {
|
|
|
1088
1088
|
expect(rootDiv.getAttribute("data-cy")).toBeNull();
|
|
1089
1089
|
});
|
|
1090
1090
|
|
|
1091
|
-
it("forwards consumer id to native input element (overriding internal id)", async () => {
|
|
1092
|
-
const wrapper = mount(FzInput, {
|
|
1093
|
-
props: { label: "Label" },
|
|
1094
|
-
attrs: { id: "custom-id" },
|
|
1095
|
-
});
|
|
1096
|
-
|
|
1097
|
-
await wrapper.vm.$nextTick();
|
|
1098
|
-
|
|
1099
|
-
const input = wrapper.find("input").element as HTMLInputElement;
|
|
1100
|
-
expect(input.getAttribute("id")).toBe("custom-id");
|
|
1101
|
-
|
|
1102
|
-
const rootDiv = wrapper.element as HTMLElement;
|
|
1103
|
-
expect(rootDiv.getAttribute("id")).toBeNull();
|
|
1104
|
-
});
|
|
1105
|
-
|
|
1106
1091
|
it("forwards consumer aria-* attributes to native input element", async () => {
|
|
1107
1092
|
const wrapper = mount(FzInput, {
|
|
1108
1093
|
props: { label: "Label" },
|
|
@@ -1965,4 +1950,98 @@ describe("FzInput", () => {
|
|
|
1965
1950
|
expect(wrapper.find('[aria-label="Cancella"]').exists()).toBe(false);
|
|
1966
1951
|
});
|
|
1967
1952
|
});
|
|
1953
|
+
|
|
1954
|
+
describe("id prop and label-input binding", () => {
|
|
1955
|
+
it("generates a stable internal id when no `id` prop is provided", async () => {
|
|
1956
|
+
const wrapper = mount(FzInput, { props: { label: "Email" } });
|
|
1957
|
+
await wrapper.vm.$nextTick();
|
|
1958
|
+
|
|
1959
|
+
const labelFor = wrapper.find("label").attributes("for");
|
|
1960
|
+
const inputId = wrapper.find("input").attributes("id");
|
|
1961
|
+
|
|
1962
|
+
expect(labelFor).toBeDefined();
|
|
1963
|
+
expect(inputId).toBeDefined();
|
|
1964
|
+
expect(labelFor).toBe(inputId);
|
|
1965
|
+
expect(inputId).toMatch(/^fz-input-/);
|
|
1966
|
+
});
|
|
1967
|
+
|
|
1968
|
+
it('uses the `id` prop on both <label for=""> and <input id=""> when provided', async () => {
|
|
1969
|
+
const wrapper = mount(FzInput, {
|
|
1970
|
+
props: { id: "email", label: "Email" },
|
|
1971
|
+
});
|
|
1972
|
+
await wrapper.vm.$nextTick();
|
|
1973
|
+
|
|
1974
|
+
expect(wrapper.find("label").attributes("for")).toBe("email");
|
|
1975
|
+
expect(wrapper.find("input").attributes("id")).toBe("email");
|
|
1976
|
+
});
|
|
1977
|
+
});
|
|
1978
|
+
|
|
1979
|
+
describe("DS-GAP baselines", () => {
|
|
1980
|
+
it("applies text-core-black on the root wrapper", async () => {
|
|
1981
|
+
const wrapper = mount(FzInput, { props: { label: "L" } });
|
|
1982
|
+
await wrapper.vm.$nextTick();
|
|
1983
|
+
|
|
1984
|
+
const root = wrapper.element as HTMLElement;
|
|
1985
|
+
expect(root.classList.contains("text-core-black")).toBe(true);
|
|
1986
|
+
});
|
|
1987
|
+
|
|
1988
|
+
it("pairs border-1 with border-solid on the input container", async () => {
|
|
1989
|
+
const wrapper = mount(FzInput, { props: { label: "L" } });
|
|
1990
|
+
await wrapper.vm.$nextTick();
|
|
1991
|
+
|
|
1992
|
+
const container = wrapper.find('[ref="containerRef"], .border-1').exists()
|
|
1993
|
+
? wrapper.find(".border-1")
|
|
1994
|
+
: wrapper.find("input").element.parentElement;
|
|
1995
|
+
const containerEl =
|
|
1996
|
+
container instanceof Element ? container : (container as any).element;
|
|
1997
|
+
const classes =
|
|
1998
|
+
containerEl instanceof Element
|
|
1999
|
+
? containerEl.classList
|
|
2000
|
+
: containerEl?.classList;
|
|
2001
|
+
expect(classes?.contains("border-1")).toBe(true);
|
|
2002
|
+
expect(classes?.contains("border-solid")).toBe(true);
|
|
2003
|
+
});
|
|
2004
|
+
|
|
2005
|
+
it("applies mb-0 on the label", async () => {
|
|
2006
|
+
const wrapper = mount(FzInput, { props: { label: "L" } });
|
|
2007
|
+
await wrapper.vm.$nextTick();
|
|
2008
|
+
|
|
2009
|
+
const labelClasses = wrapper.find("label").classes();
|
|
2010
|
+
expect(labelClasses).toContain("mb-0");
|
|
2011
|
+
});
|
|
2012
|
+
|
|
2013
|
+
it("applies grey-300 to value text on disabled and readonly states via Tailwind variants", async () => {
|
|
2014
|
+
const w1 = mount(FzInput, { props: { label: "L", disabled: true } });
|
|
2015
|
+
await w1.vm.$nextTick();
|
|
2016
|
+
const c1 = w1.find("input").classes();
|
|
2017
|
+
expect(c1).toContain("disabled:text-grey-300");
|
|
2018
|
+
expect(c1).toContain("read-only:text-grey-300");
|
|
2019
|
+
|
|
2020
|
+
const w2 = mount(FzInput, { props: { label: "L", readonly: true } });
|
|
2021
|
+
await w2.vm.$nextTick();
|
|
2022
|
+
const c2 = w2.find("input").classes();
|
|
2023
|
+
expect(c2).toContain("disabled:text-grey-300");
|
|
2024
|
+
expect(c2).toContain("read-only:text-grey-300");
|
|
2025
|
+
});
|
|
2026
|
+
|
|
2027
|
+
it("does not bind an inline style width on the helper text or error alert", async () => {
|
|
2028
|
+
const wrapperHelp = mount(FzInput, {
|
|
2029
|
+
props: { label: "L" },
|
|
2030
|
+
slots: { helpText: "Some help" },
|
|
2031
|
+
});
|
|
2032
|
+
await wrapperHelp.vm.$nextTick();
|
|
2033
|
+
const helpSpan = wrapperHelp.find('[id$="-help"]');
|
|
2034
|
+
expect(helpSpan.exists()).toBe(true);
|
|
2035
|
+
expect(helpSpan.attributes("style") || "").not.toMatch(/width:/);
|
|
2036
|
+
|
|
2037
|
+
const wrapperErr = mount(FzInput, {
|
|
2038
|
+
props: { label: "L", error: true },
|
|
2039
|
+
slots: { errorMessage: "Boom" },
|
|
2040
|
+
});
|
|
2041
|
+
await wrapperErr.vm.$nextTick();
|
|
2042
|
+
const errAlert = wrapperErr.find('[id$="-error"]');
|
|
2043
|
+
expect(errAlert.exists()).toBe(true);
|
|
2044
|
+
expect(errAlert.attributes("style") || "").not.toMatch(/width:/);
|
|
2045
|
+
});
|
|
2046
|
+
});
|
|
1968
2047
|
});
|
package/src/types.ts
CHANGED
|
@@ -4,6 +4,12 @@ import { IconSize, IconVariant } from "@fiscozen/icons";
|
|
|
4
4
|
export type InputEnvironment = "backoffice" | "frontoffice";
|
|
5
5
|
|
|
6
6
|
type FzInputProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Custom DOM id for the underlying `<input>`. When provided, the same value is
|
|
9
|
+
* used for the `<label>`'s `for` attribute so the label-input binding stays
|
|
10
|
+
* intact. When omitted, the component generates a stable unique id.
|
|
11
|
+
*/
|
|
12
|
+
id?: string;
|
|
7
13
|
/**
|
|
8
14
|
* Text label displayed above the input field. Overridden by label slot if provided.
|
|
9
15
|
*/
|
package/src/useInputStyle.ts
CHANGED
|
@@ -21,17 +21,13 @@ export default function useInputStyle(
|
|
|
21
21
|
effectiveEnvironment: ComputedRef<InputEnvironment>,
|
|
22
22
|
isFocused: Ref<boolean>,
|
|
23
23
|
) {
|
|
24
|
-
const containerWidth = computed(() =>
|
|
25
|
-
container.value ? `${container.value.clientWidth}px` : "auto",
|
|
26
|
-
);
|
|
27
|
-
|
|
28
24
|
const mapContainerClass: Record<InputEnvironment, string> = {
|
|
29
25
|
backoffice: "h-32",
|
|
30
26
|
frontoffice: "h-44",
|
|
31
27
|
};
|
|
32
28
|
|
|
33
29
|
// Common styles: padding 10px, border-radius 4px, border 1px solid grey-300, background white, color black
|
|
34
|
-
const staticContainerClass = `flex justify-between w-full items-center pl-[10px] pr-[10px] rounded border-1 gap-8 text-left relative outline-none`;
|
|
30
|
+
const staticContainerClass = `flex justify-between w-full items-center pl-[10px] pr-[10px] rounded border-1 border-solid gap-8 text-left relative outline-none`;
|
|
35
31
|
|
|
36
32
|
const computedContainerClass = computed(() => {
|
|
37
33
|
const env = effectiveEnvironment.value;
|
|
@@ -44,14 +40,14 @@ export default function useInputStyle(
|
|
|
44
40
|
});
|
|
45
41
|
|
|
46
42
|
const computedLabelClass = computed(() => [
|
|
47
|
-
"font-normal text-base",
|
|
43
|
+
"font-normal text-base mb-0",
|
|
48
44
|
props.disabled?.value || props.readonly?.value
|
|
49
45
|
? "text-grey-300"
|
|
50
46
|
: "text-grey-500",
|
|
51
47
|
]);
|
|
52
48
|
|
|
53
49
|
// Input styles: transparent background (inherits from container), no border, placeholder color grey-300
|
|
54
|
-
const staticInputClass = `peer w-full bg-transparent border-0 outline-none focus:outline-none cursor-[inherit] focus:ring-0 truncate placeholder:text-grey-300 font-normal text-base`;
|
|
50
|
+
const staticInputClass = `peer w-full bg-transparent border-0 outline-none focus:outline-none cursor-[inherit] focus:ring-0 truncate placeholder:text-grey-300 disabled:text-grey-300 read-only:text-grey-300 font-normal text-base`;
|
|
55
51
|
|
|
56
52
|
// Input text size: 16px for both environments (as per design specs)
|
|
57
53
|
const textSizeMap: Record<InputEnvironment, string> = {
|
|
@@ -154,7 +150,6 @@ export default function useInputStyle(
|
|
|
154
150
|
computedInputClass,
|
|
155
151
|
computedHelpClass,
|
|
156
152
|
computedErrorClass,
|
|
157
|
-
containerWidth,
|
|
158
153
|
showNormalPlaceholder,
|
|
159
154
|
};
|
|
160
155
|
}
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.pnpm/@vue+shared@3.5.26/node_modules/@vue/shared/dist/shared.d.ts","../../node_modules/.pnpm/@babel+types@7.29.0/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/@babel+types@7.28.6/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/@babel+parser@7.28.6/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/.pnpm/@vue+compiler-core@3.5.26/node_modules/@vue/compiler-core/dist/compiler-core.d.ts","../../node_modules/.pnpm/@vue+compiler-dom@3.5.26/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts","../../node_modules/.pnpm/@vue+reactivity@3.5.26/node_modules/@vue/reactivity/dist/reactivity.d.ts","../../node_modules/.pnpm/@vue+runtime-core@3.5.26/node_modules/@vue/runtime-core/dist/runtime-core.d.ts","../../node_modules/.pnpm/csstype@3.2.3/node_modules/csstype/index.d.ts","../../node_modules/.pnpm/@vue+runtime-dom@3.5.26/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts","../../node_modules/.pnpm/vue@3.5.26_typescript@5.7.3/node_modules/vue/dist/vue.d.mts","../../node_modules/.pnpm/vue@3.5.26_typescript@5.7.3/node_modules/vue/jsx-runtime/index.d.ts","./node_modules/.vue-global-types/vue_3.5_0_0_0.d.ts","../../node_modules/.pnpm/@fortawesome+fontawesome-common-types@6.7.2/node_modules/@fortawesome/fontawesome-common-types/index.d.ts","../../node_modules/.pnpm/@fortawesome+fontawesome-svg-core@6.7.2/node_modules/@fortawesome/fontawesome-svg-core/index.d.ts","../../node_modules/.pnpm/@awesome.me+kit-8137893ad3@1.0.414/node_modules/@awesome.me/kit-8137893ad3/icons/modules/icon-types.ts","../../node_modules/.pnpm/@awesome.me+kit-8137893ad3@1.0.414/node_modules/@awesome.me/kit-8137893ad3/icons/modules/index.d.ts","../../node_modules/.pnpm/@fortawesome+vue-fontawesome@3.1.3_@fortawesome+fontawesome-svg-core@6.7.2_vue@3.5.26_typescript@5.7.3_/node_modules/@fortawesome/vue-fontawesome/index.d.ts","../icons/src/types.ts","../icons/src/fzicon.vue","../icons/src/fziconbackground.vue","../icons/src/index.ts","../button/src/types.ts","../button/src/utils.ts","../button/src/fzbutton.vue","../button/src/fziconbutton.vue","../container/src/types.ts","../container/src/fzcontainer.vue","../container/src/index.ts","../button/src/fzbuttongroup.vue","../button/src/index.ts","./dist/src/types.d.ts","./dist/src/fzinput.vue.d.ts","./dist/src/fzcurrencyinput.vue.d.ts","./dist/src/utils.d.ts","./dist/src/index.d.ts","./dist/index.d.ts","./dist/src/useinputstyle.d.ts","./src/types.ts","../../node_modules/.pnpm/vue-router@4.6.4_vue@3.5.26_typescript@5.7.3_/node_modules/vue-router/dist/router-cwonjprp.d.mts","../../node_modules/.pnpm/vue-router@4.6.4_vue@3.5.26_typescript@5.7.3_/node_modules/vue-router/dist/vue-router.d.mts","../alert/src/types.ts","../link/src/types.ts","../link/src/fzlink.vue","../link/src/index.ts","../alert/src/fzalert.vue","../alert/src/index.ts","./src/useinputstyle.ts","./src/utils.ts","./src/fzinput.vue","../composables/src/types.ts","../composables/src/utils/number/index.ts","../composables/src/utils/position/index.ts","../composables/src/utils/index.ts","../composables/src/composables/usefloating.ts","../composables/src/composables/usemediaquery.ts","../composables/src/composables/usebreakpoints.ts","../composables/src/composables/useclickoutside.ts","../composables/src/composables/usekeydown.ts","../composables/src/composables/usekeyup.ts","../composables/src/composables/usecurrency.ts","../composables/src/composables/index.ts","../style/src/custom-directives/validation.ts","../style/src/custom-directives/config.ts","../style/src/custom-directives/vbold.ts","../style/tokens.json","../style/safe-colors.json","../style/safe-semantic-colors.json","../style/src/custom-directives/vcolor.ts","../style/src/custom-directives/vsmall.ts","../style/src/custom-directives/index.ts","../style/src/constants.ts","../style/src/index.ts","../composables/src/fzfloating.vue","../composables/src/index.ts","./src/fzcurrencyinput.vue","./src/index.ts"],"fileIdsList":[[59,61],[63],[50],[61],[58,62,88],[48,49,51],[52],[48],[48,54,55,57],[54,55,56,57],[58,88],[58,87,88],[53,57],[57],[58,59,60,69,76,78,88,89,92],[59,89,93],[59,78,88],[58,59,60,69,70,71,88],[58,59,60,70,71,76,88],[58,59,60,70,71,72,88],[59,70,72,73,77],[59,69],[58,59,70,88],[59,102,103,104,105,106,107,108],[59,103],[58,59,88],[59,98,101],[58,59,88,98,101],[58,59,60,88,98,109,120],[59,98,101,109,121],[59,99,100],[59],[59,98],[58,59,60,74,88],[59,74,75],[58,59,60,64,65,66,88],[58,59,60,66,67,88],[58,59,62,64,66,67,68,88],[83],[58,69,78,79,88],[58,78,79,88],[79,80,81,82],[69,78],[58,79,88],[79],[58,59,60,69,86,88,97,122],[58,59,60,69,78,86,88,94,95,96],[59,86,96,97,123],[59,69,78],[58,59,86,88],[59,86],[58,59,60,88,90],[59,90,91],[59,88],[59,113],[59,110],[59,110,111,112,116,117],[58,59,88,110,111],[58,59,88,110,111,113,114,115],[58,59,88,118,119]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"f468b74459f1ad4473b36a36d49f2b255f3c6b5d536c81239c2b2971df089eaf","impliedFormat":1},{"version":"556ccd493ec36c7d7cb130d51be66e147b91cc1415be383d71da0f1e49f742a9","impliedFormat":1},{"version":"511a5f4f77165dc1b73ceae1e28b4a8f78f3443d8e18a1fd43bfafd2b0133bbe","impliedFormat":1},{"version":"95aba78013d782537cc5e23868e736bec5d377b918990e28ed56110e3ae8b958","impliedFormat":1},{"version":"e63d565526fcb1a4cdd35e4c3d6dedc0a967933623bf2316ddab29ad2f62203a","impliedFormat":1},{"version":"ebe84ad8344962b7117a3b95065f47383215020eaf1b626463863b45b4d16e62","impliedFormat":1},{"version":"4ff3cc3b6d36d0b2f8353b88e41c757d40a1e66200fb87415b9e284ed1b19ed9","impliedFormat":1},{"version":"27296e9e4b9a6b8747afb6505b2cc5456343b06fa18cd0453b5c15dfe78d1e6d","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac51dd7d31333793807a6abaa5ae168512b6131bd41d9c5b98477fc3b7800f9f","impliedFormat":1},{"version":"df513895e96e0c3ba6a73d96c762b9fbc4f277f06f855d756e29b4068c9b8aff","impliedFormat":1},{"version":"c0191592be8eb7906f99ac4b8798d80a585b94001ea1a5f50d6ce5b0d13a5c62","impliedFormat":99},{"version":"318d19118bf6bf8d088441c948990f53cafc79ed581b78f3d41a0f7a3f5f145c","impliedFormat":1},{"version":"25900318042675aee6d709c82309effd29c995d03f92f8b7a469d38e07c7f846","affectsGlobalScope":true,"impliedFormat":99},{"version":"b3f4d51270e5e21b4ed504eb4f091940d6529acdd10c036cb35e021d438ec168","impliedFormat":1},{"version":"7859ab6422f18d61fd9e9a40d5564ace4651f999e2627f0e06c4d83684697262","impliedFormat":1},{"version":"297a6169d9919fdf7f23aa67cd024c9f26d0b15ca47e98a33942a5849de4a3d1","impliedFormat":1},{"version":"90f1fd3a86a8989337c044eb12be60f0677ddba65fddcd7da00b1028f9e07abc","impliedFormat":1},{"version":"e6e9cce1a55de876b81d1fa1ce486dd59a2b906c16ba40c582ebc895b50c6a08","impliedFormat":1},"d6cc010ba00a6eb5eb4c06393504812f07a3c445bfc761b4526141bb13e327c2","e13f6c840ddfe391259c5c8cfcf7c3c3bef0b63e4339b414a009a83badc68290","dec0c7622b8c2393440bb7beb02b97b493dddc36a4d9ff19b7ae042052136abf","cd2349d32b2dba6286becb27fce210761c6beec409a247a4093f574df9c539c7","bae59cf0e2db40ac66fcd54fcf5d213c0723c53d4168ce653303cd7aa47eed29","aad7851174d82890d8c93a8dd43ad26827c7813104dc183218d346a7abacce92","c8fa3b8ebe8cecb71e3818843510cbb3bb0045cfd58963eaa08e8a4359db724b","2865e4d2590ec31210d183250b6c8e75e77132c4a0f14fa6c8d41c70db1ca0b3","37e63be7f873b734c101ed654b0fe6248c7a5a212d49658a39db6e80374d5073","412db89a4ff6eb6e04043ac6c9a56de836e34b8d73cfa604f40fe5c8baab5071","6c2645ba7a6277b29c6cf9dbfc73c4ffbef400c15bc54fc8e24fd404c632e1ee","cb9f05aedb1db8dd0929091fac27c06359802b0b6da75f22cd530dddf7a06c3d","1823898c53356942500ec531a8b1e1eda80c73baaa2f0ef5410c61b550038002","757fd4b90d87f1bc7c19544bacd35617d6c2928cebe7be4a8dcd9dde38276752","30a80e40c608453de683cf9222c9b3a053c05fcaafcde811f73e7b410142fe4f","68b860735ed5358db60a961fb4794c84922daae2badc620c6147ea928d89a105","8283f7d2af3246aac47f97899d1b2aa5d3379dfd23f0092888c61b2819518700","bfe80a09af089e1f0703db162ff6b9274c1a89965e140e956de2bf18d6b506df","f0daef1fbc6425eba1104910fadeb40cedfc08863791ea7ef44b88a86d6dd5c4","6bdfc3cef92f0b631719d832c7a9bc04a31fafecf10ad75d808c5271de020ddb","baa8c95225adb5658bd42f36a5c37cc7401154ffbb93cccfa1752ef9b111e789",{"version":"860814185d89237c84a6bd1e4f108c2c0b2401609a74a33bc7cab14ea4ee9f21","impliedFormat":99},{"version":"e1ddcbacb7658bf0683bca4ebd31bd05f64823712651263bfc75128a45f00ff7","impliedFormat":99},"aaacdf03c336db0228761e7279c33cdb2c6c0c815c3104badfcf223ac2a9a9db","adacea0b5bd5978ed752cc2b9161ed8c56612809dea03d311d41a314d388476a","b72edb6e061434739fcf7bea4f79a08b551372ff28afd193bc9406f1343c661b","14d1c2ec655065b54c4e3996f100ad0011523dc4a4f50096998d1c2574da36e1","34c1ab6a151986993be06be073ef2bb07d87160a6959cbfd284fd592e58cfa45","7f45bee28cd86f17a95b40305352f83de58213dd1a975ed7a4b3465dc423adcc","e2217c5ef15730a95702dfd6f8ee0f4743c7b2b97f50b043cb92ee28efa63b2f","a5a043662371328dda80aaf7d7f834a4b668b2c9164bd332d71daa890f5f46e0","e005cba45b00b74e9dce18dde154bb2be8f0b258e2be3305a716b50cc8ad19b6","bd8bc41caede4a4011e48fe368b9769db0be907b5f417d8aefaec7019a30657a","615aa839e17e1a8d98c848ec8847f6f8fa2f9dde5bbbc5719525e46f81bc5dcb","7af83fcef3a3ac7b1a5bc0c45cad652a425fd3c6a0bc13bd2c77e30d4a1fcc8d","dafacff0e7ae8f741c3568aa93223ccd1fc1a84e0b0fbfc11b5a7171753c2eee","010039c53a892580d9dd587537a142d2288be79d398ded578e545ac8f831e557","5332a699299f2fc59d4b60e29a2785341196c72fa97e2c5e5152a91a1d71ab5e","d7af695c370641ad3baa956ac7faf8053df49c4bac317e7046a3c7d584a7c0e8","bdbdba252e077223f6a90af828a6f8812a2c706fbfed0b623c079df0fa5b752d","470379eec34bc61b7cbc1854dfbe88f8c93cd7c4ac8ad25eabec84aa90982998","6245ba8225149ce12ea0a79f467dc85171d114d91de0d4d897574559f1dce5b7","9225d932eb20b54849f1a5a26d53eff1d8603d2368949821f6344074c985ac67","00ee3803f739ba7e58ba01984ff255a72f547dfbcee0731886c257704d3744a8","05deb83242e5cabfe2ec510d28a99f553bdb113a4a2b52cf3e6706b6c63874af","1c4413cdd19c5c5cc25ac63d957dd067a9a27f626780079c1972087095a34d14","50bf2595b1ed26c29a145c1aa521c314c938cd372e9e19cd737aae18aa504241","04ce642b5ec84d9d858d70ab73a7f36d9ed6a63f4a2bbe26c76f6fb9d27ea786","efc483fad6ef5723bd2af07ca6826b340eddfbc34082a6b0c10010f41fe536d4","0f6e253c8338a4fecc094b101de18d1e5e1fab2d7ebd32b2571ededbfb7910ef","4c66639d7f82c762692c07fa11e1f4230dc95c8524b76c9ea5f064fb850bd0de","e290c8f3bf4412ff789c7ccdb5b46d29a48ad11750815ec61475c683ce261da9","7490be02755801b37857c42872791fa9e430d6198bf016dc66eb978c5bbb0073","cbae4cc9ef42cd14a09d8ae9c9fcf45886b939dfdd8c7168b8650bd6d30f9d0c","fe43bb891efb86e8adfdada081f0565558a0d95cf1729b3eaab10cbb39d2ecb1","a404c0fa39542c880ef3e5551b0ec45cd1759e3b9b942b2bf5392f4c71242f8f","26ca3e3a8423528d9b0475961723768dc4dcea59f368abfdb12435a4505edfbd","41c7e533b6be299632a407088143478397845daa3f75454b18e72fd74b920591","2c9744f0f6348ed067432a9a9a6e753933c25d2762292d22364add05378dc131"],"root":[[79,86],[95,97],123,124],"options":{"composite":true,"esModuleInterop":true,"jsx":1,"jsxImportSource":"vue","module":99,"noImplicitThis":true,"skipLibCheck":true,"strict":true,"target":99,"useDefineForClassFields":true,"verbatimModuleSyntax":false},"referencedMap":[[63,1],[64,2],[51,3],[62,4],[65,5],[52,6],[53,7],[54,8],[55,9],[57,10],[87,11],[88,12],[58,13],[59,14],[93,15],[94,16],[89,17],[72,18],[77,19],[73,20],[78,21],[70,22],[71,23],[109,24],[104,25],[105,26],[108,27],[102,28],[106,26],[107,26],[103,26],[121,29],[122,30],[98,26],[101,31],[99,32],[100,33],[75,34],[76,35],[74,32],[67,36],[68,37],[69,38],[66,32],[84,39],[81,40],[80,41],[83,42],[79,43],[85,44],[82,45],[60,26],[123,46],[97,47],[124,48],[86,49],[95,50],[96,51],[91,52],[92,53],[90,54],[114,32],[115,32],[119,55],[111,56],[118,57],[110,26],[112,58],[116,59],[117,58],[120,60],[113,32]],"affectedFilesPendingEmit":[[123,17],[97,17],[124,17],[86,17],[95,17],[96,17]],"emitSignatures":[86,95,96,97,123,124],"version":"5.7.3"}
|
|
1
|
+
{"fileNames":["../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.pnpm/@vue+shared@3.5.26/node_modules/@vue/shared/dist/shared.d.ts","../../node_modules/.pnpm/@babel+types@7.29.0/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/@babel+types@7.28.6/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/@babel+parser@7.28.6/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/.pnpm/@vue+compiler-core@3.5.26/node_modules/@vue/compiler-core/dist/compiler-core.d.ts","../../node_modules/.pnpm/@vue+compiler-dom@3.5.26/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts","../../node_modules/.pnpm/@vue+reactivity@3.5.26/node_modules/@vue/reactivity/dist/reactivity.d.ts","../../node_modules/.pnpm/@vue+runtime-core@3.5.26/node_modules/@vue/runtime-core/dist/runtime-core.d.ts","../../node_modules/.pnpm/csstype@3.2.3/node_modules/csstype/index.d.ts","../../node_modules/.pnpm/@vue+runtime-dom@3.5.26/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts","../../node_modules/.pnpm/vue@3.5.26_typescript@5.7.3/node_modules/vue/dist/vue.d.mts","../../node_modules/.pnpm/vue@3.5.26_typescript@5.7.3/node_modules/vue/jsx-runtime/index.d.ts","./node_modules/.vue-global-types/vue_3.5_0_0_0.d.ts","../../node_modules/.pnpm/@fortawesome+fontawesome-common-types@6.7.2/node_modules/@fortawesome/fontawesome-common-types/index.d.ts","../../node_modules/.pnpm/@fortawesome+fontawesome-svg-core@6.7.2/node_modules/@fortawesome/fontawesome-svg-core/index.d.ts","../../node_modules/.pnpm/@awesome.me+kit-8137893ad3@1.0.417/node_modules/@awesome.me/kit-8137893ad3/icons/modules/icon-types.ts","../../node_modules/.pnpm/@awesome.me+kit-8137893ad3@1.0.417/node_modules/@awesome.me/kit-8137893ad3/icons/modules/index.d.ts","../../node_modules/.pnpm/@fortawesome+vue-fontawesome@3.1.3_@fortawesome+fontawesome-svg-core@6.7.2_vue@3.5.26_typescript@5.7.3_/node_modules/@fortawesome/vue-fontawesome/index.d.ts","../icons/src/types.ts","../icons/src/fzicon.vue","../icons/src/fziconbackground.vue","../icons/src/index.ts","../button/src/types.ts","../button/src/utils.ts","../button/src/fzbutton.vue","../button/src/fziconbutton.vue","../container/src/types.ts","../container/src/fzcontainer.vue","../container/src/index.ts","../button/src/fzbuttongroup.vue","../button/src/index.ts","./dist/src/types.d.ts","./dist/src/fzinput.vue.d.ts","./dist/src/fzcurrencyinput.vue.d.ts","./dist/src/utils.d.ts","./dist/src/index.d.ts","./dist/index.d.ts","./dist/src/useinputstyle.d.ts","./src/types.ts","../../node_modules/.pnpm/vue-router@4.6.4_vue@3.5.26_typescript@5.7.3_/node_modules/vue-router/dist/router-cwonjprp.d.mts","../../node_modules/.pnpm/vue-router@4.6.4_vue@3.5.26_typescript@5.7.3_/node_modules/vue-router/dist/vue-router.d.mts","../alert/src/types.ts","../link/src/types.ts","../link/src/fzlink.vue","../link/src/index.ts","../alert/src/fzalert.vue","../alert/src/index.ts","./src/useinputstyle.ts","./src/utils.ts","./src/fzinput.vue","../composables/src/types.ts","../composables/src/utils/number/index.ts","../composables/src/utils/position/index.ts","../composables/src/utils/index.ts","../composables/src/composables/usefloating.ts","../composables/src/composables/usemediaquery.ts","../composables/src/composables/usebreakpoints.ts","../composables/src/composables/useclickoutside.ts","../composables/src/composables/usekeydown.ts","../composables/src/composables/usekeyup.ts","../composables/src/composables/usecurrency.ts","../composables/src/composables/index.ts","../style/src/custom-directives/validation.ts","../style/src/custom-directives/config.ts","../style/src/custom-directives/vbold.ts","../style/tokens.json","../style/safe-colors.json","../style/safe-semantic-colors.json","../style/src/custom-directives/vcolor.ts","../style/src/custom-directives/vsmall.ts","../style/src/custom-directives/index.ts","../style/src/constants.ts","../style/src/index.ts","../composables/src/fzfloating.vue","../composables/src/index.ts","./src/fzcurrencyinput.vue","./src/index.ts"],"fileIdsList":[[59,61],[63],[50],[61],[58,62,88],[48,49,51],[52],[48],[48,54,55,57],[54,55,56,57],[58,88],[58,87,88],[53,57],[57],[58,59,60,69,76,78,88,89,92],[59,89,93],[59,78,88],[58,59,60,69,70,71,88],[58,59,60,70,71,76,88],[58,59,60,70,71,72,88],[59,70,72,73,77],[59,69],[58,59,70,88],[59,102,103,104,105,106,107,108],[59,103],[58,59,88],[59,98,101],[58,59,88,98,101],[58,59,60,88,98,109,120],[59,98,101,109,121],[59,99,100],[59],[59,98],[58,59,60,74,88],[59,74,75],[58,59,60,64,65,66,88],[58,59,60,66,67,88],[58,59,62,64,66,67,68,88],[83],[58,69,78,79,88],[58,78,79,88],[79,80,81,82],[69,78],[58,79,88],[79],[58,59,60,69,86,88,97,122],[58,59,60,69,78,86,88,94,95,96],[59,86,96,97,123],[59,69,78],[58,59,86,88],[59,86],[58,59,60,88,90],[59,90,91],[59,88],[59,113],[59,110],[59,110,111,112,116,117],[58,59,88,110,111],[58,59,88,110,111,113,114,115],[58,59,88,118,119]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"f468b74459f1ad4473b36a36d49f2b255f3c6b5d536c81239c2b2971df089eaf","impliedFormat":1},{"version":"556ccd493ec36c7d7cb130d51be66e147b91cc1415be383d71da0f1e49f742a9","impliedFormat":1},{"version":"511a5f4f77165dc1b73ceae1e28b4a8f78f3443d8e18a1fd43bfafd2b0133bbe","impliedFormat":1},{"version":"95aba78013d782537cc5e23868e736bec5d377b918990e28ed56110e3ae8b958","impliedFormat":1},{"version":"e63d565526fcb1a4cdd35e4c3d6dedc0a967933623bf2316ddab29ad2f62203a","impliedFormat":1},{"version":"ebe84ad8344962b7117a3b95065f47383215020eaf1b626463863b45b4d16e62","impliedFormat":1},{"version":"4ff3cc3b6d36d0b2f8353b88e41c757d40a1e66200fb87415b9e284ed1b19ed9","impliedFormat":1},{"version":"27296e9e4b9a6b8747afb6505b2cc5456343b06fa18cd0453b5c15dfe78d1e6d","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac51dd7d31333793807a6abaa5ae168512b6131bd41d9c5b98477fc3b7800f9f","impliedFormat":1},{"version":"df513895e96e0c3ba6a73d96c762b9fbc4f277f06f855d756e29b4068c9b8aff","impliedFormat":1},{"version":"c0191592be8eb7906f99ac4b8798d80a585b94001ea1a5f50d6ce5b0d13a5c62","impliedFormat":99},{"version":"318d19118bf6bf8d088441c948990f53cafc79ed581b78f3d41a0f7a3f5f145c","impliedFormat":1},{"version":"25900318042675aee6d709c82309effd29c995d03f92f8b7a469d38e07c7f846","affectsGlobalScope":true,"impliedFormat":99},{"version":"b3f4d51270e5e21b4ed504eb4f091940d6529acdd10c036cb35e021d438ec168","impliedFormat":1},{"version":"7859ab6422f18d61fd9e9a40d5564ace4651f999e2627f0e06c4d83684697262","impliedFormat":1},{"version":"26eb2ffca05320db8809e74784a1953ecb282a1d82d8e3b21314387c1bea6a39","impliedFormat":1},{"version":"90f1fd3a86a8989337c044eb12be60f0677ddba65fddcd7da00b1028f9e07abc","impliedFormat":1},{"version":"e6e9cce1a55de876b81d1fa1ce486dd59a2b906c16ba40c582ebc895b50c6a08","impliedFormat":1},"d6cc010ba00a6eb5eb4c06393504812f07a3c445bfc761b4526141bb13e327c2","e13f6c840ddfe391259c5c8cfcf7c3c3bef0b63e4339b414a009a83badc68290","dec0c7622b8c2393440bb7beb02b97b493dddc36a4d9ff19b7ae042052136abf","cd2349d32b2dba6286becb27fce210761c6beec409a247a4093f574df9c539c7","bae59cf0e2db40ac66fcd54fcf5d213c0723c53d4168ce653303cd7aa47eed29","aad7851174d82890d8c93a8dd43ad26827c7813104dc183218d346a7abacce92","c8fa3b8ebe8cecb71e3818843510cbb3bb0045cfd58963eaa08e8a4359db724b","2865e4d2590ec31210d183250b6c8e75e77132c4a0f14fa6c8d41c70db1ca0b3","37e63be7f873b734c101ed654b0fe6248c7a5a212d49658a39db6e80374d5073","412db89a4ff6eb6e04043ac6c9a56de836e34b8d73cfa604f40fe5c8baab5071","6c2645ba7a6277b29c6cf9dbfc73c4ffbef400c15bc54fc8e24fd404c632e1ee","cb9f05aedb1db8dd0929091fac27c06359802b0b6da75f22cd530dddf7a06c3d","1823898c53356942500ec531a8b1e1eda80c73baaa2f0ef5410c61b550038002","7ff6638f283d0a85dfa61d22f3407f22918e176ef1b7d1c90ff7d355a82a1f7a","30a80e40c608453de683cf9222c9b3a053c05fcaafcde811f73e7b410142fe4f","414c866f33e088cb32585721fa2547dae1955a56a8f72f5fc92f10e5b6f0bb56","8283f7d2af3246aac47f97899d1b2aa5d3379dfd23f0092888c61b2819518700","bfe80a09af089e1f0703db162ff6b9274c1a89965e140e956de2bf18d6b506df","f0daef1fbc6425eba1104910fadeb40cedfc08863791ea7ef44b88a86d6dd5c4","5dc6527cf05df534de98a07c5bb264d7bd58d4ca6de540ce0795bda6b0f0b5b5",{"version":"a3f402f65b0bcd95866e013db7afe8f42ea51fd1a0e06ad326e8db7f204c1125","signature":"bbe47272a63d062f1b33c2d853d79e244247068c47830f153dcb19698dce20a8"},{"version":"860814185d89237c84a6bd1e4f108c2c0b2401609a74a33bc7cab14ea4ee9f21","impliedFormat":99},{"version":"e1ddcbacb7658bf0683bca4ebd31bd05f64823712651263bfc75128a45f00ff7","impliedFormat":99},"aaacdf03c336db0228761e7279c33cdb2c6c0c815c3104badfcf223ac2a9a9db","adacea0b5bd5978ed752cc2b9161ed8c56612809dea03d311d41a314d388476a","b72edb6e061434739fcf7bea4f79a08b551372ff28afd193bc9406f1343c661b","14d1c2ec655065b54c4e3996f100ad0011523dc4a4f50096998d1c2574da36e1","34c1ab6a151986993be06be073ef2bb07d87160a6959cbfd284fd592e58cfa45","7f45bee28cd86f17a95b40305352f83de58213dd1a975ed7a4b3465dc423adcc",{"version":"04364182c1611c2146fca61636b171e962d48d645cd03d145d7b66efe935b312","signature":"94594a6520c8e73337ed48d9ccf02e29a57498b6ed69d9da2c9bfdb2d7c67337"},{"version":"a5a043662371328dda80aaf7d7f834a4b668b2c9164bd332d71daa890f5f46e0","signature":"656170d513c469be45913f38b833026694c9f7743c1300d6c006131b2c548f5d"},{"version":"53ec25d1e9b8faa2dc0f3abb5d6e8c926a847bf1bfff443ac60e87c9f8619911","signature":"9ad32c5aa96d00c1367c21608b944d657e7096312160c80cdf4c5802462e78c0"},"bd8bc41caede4a4011e48fe368b9769db0be907b5f417d8aefaec7019a30657a","615aa839e17e1a8d98c848ec8847f6f8fa2f9dde5bbbc5719525e46f81bc5dcb","7af83fcef3a3ac7b1a5bc0c45cad652a425fd3c6a0bc13bd2c77e30d4a1fcc8d","dafacff0e7ae8f741c3568aa93223ccd1fc1a84e0b0fbfc11b5a7171753c2eee","010039c53a892580d9dd587537a142d2288be79d398ded578e545ac8f831e557","5332a699299f2fc59d4b60e29a2785341196c72fa97e2c5e5152a91a1d71ab5e","d7af695c370641ad3baa956ac7faf8053df49c4bac317e7046a3c7d584a7c0e8","bdbdba252e077223f6a90af828a6f8812a2c706fbfed0b623c079df0fa5b752d","470379eec34bc61b7cbc1854dfbe88f8c93cd7c4ac8ad25eabec84aa90982998","6245ba8225149ce12ea0a79f467dc85171d114d91de0d4d897574559f1dce5b7","9225d932eb20b54849f1a5a26d53eff1d8603d2368949821f6344074c985ac67","00ee3803f739ba7e58ba01984ff255a72f547dfbcee0731886c257704d3744a8","05deb83242e5cabfe2ec510d28a99f553bdb113a4a2b52cf3e6706b6c63874af","1c4413cdd19c5c5cc25ac63d957dd067a9a27f626780079c1972087095a34d14","50bf2595b1ed26c29a145c1aa521c314c938cd372e9e19cd737aae18aa504241","04ce642b5ec84d9d858d70ab73a7f36d9ed6a63f4a2bbe26c76f6fb9d27ea786","efc483fad6ef5723bd2af07ca6826b340eddfbc34082a6b0c10010f41fe536d4","0f6e253c8338a4fecc094b101de18d1e5e1fab2d7ebd32b2571ededbfb7910ef","4c66639d7f82c762692c07fa11e1f4230dc95c8524b76c9ea5f064fb850bd0de","e290c8f3bf4412ff789c7ccdb5b46d29a48ad11750815ec61475c683ce261da9","7490be02755801b37857c42872791fa9e430d6198bf016dc66eb978c5bbb0073","cbae4cc9ef42cd14a09d8ae9c9fcf45886b939dfdd8c7168b8650bd6d30f9d0c","fe43bb891efb86e8adfdada081f0565558a0d95cf1729b3eaab10cbb39d2ecb1","a404c0fa39542c880ef3e5551b0ec45cd1759e3b9b942b2bf5392f4c71242f8f","26ca3e3a8423528d9b0475961723768dc4dcea59f368abfdb12435a4505edfbd",{"version":"41c7e533b6be299632a407088143478397845daa3f75454b18e72fd74b920591","signature":"c8a73c319caf1af85ec265b3854bdb5c44dd83c74ffed1b07a2d2c1bda403156"},{"version":"2c9744f0f6348ed067432a9a9a6e753933c25d2762292d22364add05378dc131","signature":"ab5a9dcce559888a8004d1accef5b028d5078949f1d8f5042725b339b55789ab"}],"root":[[79,86],[95,97],123,124],"options":{"composite":true,"esModuleInterop":true,"jsx":1,"jsxImportSource":"vue","module":99,"noImplicitThis":true,"skipLibCheck":true,"strict":true,"target":99,"useDefineForClassFields":true,"verbatimModuleSyntax":false},"referencedMap":[[63,1],[64,2],[51,3],[62,4],[65,5],[52,6],[53,7],[54,8],[55,9],[57,10],[87,11],[88,12],[58,13],[59,14],[93,15],[94,16],[89,17],[72,18],[77,19],[73,20],[78,21],[70,22],[71,23],[109,24],[104,25],[105,26],[108,27],[102,28],[106,26],[107,26],[103,26],[121,29],[122,30],[98,26],[101,31],[99,32],[100,33],[75,34],[76,35],[74,32],[67,36],[68,37],[69,38],[66,32],[84,39],[81,40],[80,41],[83,42],[79,43],[85,44],[82,45],[60,26],[123,46],[97,47],[124,48],[86,49],[95,50],[96,51],[91,52],[92,53],[90,54],[114,32],[115,32],[119,55],[111,56],[118,57],[110,26],[112,58],[116,59],[117,58],[120,60],[113,32]],"affectedFilesPendingEmit":[[123,17],[97,17],[124,17],[86,17],[95,17],[96,17]],"emitSignatures":[86,95,96,97,123,124],"version":"5.7.3"}
|