@feedmepos/ui-library 1.2.44 → 1.2.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/ui-library",
3
- "version": "1.2.44",
3
+ "version": "1.2.46",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1 +0,0 @@
1
- import{importShared as u,__tla as g}from"./__federation_fn_import-CYKgoy9p.js";import{F as k,R as B}from"./provider-keys-nUDvvk3o.js";import{__tla as S}from"./useFormChild-t1_C-yoF.js";import{u as q,__tla as w}from"./useProxiedModel-DbArcH0F.js";import{_ as C,__tla as M}from"./FmFormGroup.vue_vue_type_script_setup_true_lang-CVhM-Iky.js";import{l as R}from"./lodash-CZNYfFQm.js";let y,T=Promise.all([(()=>{try{return g}catch{}})(),(()=>{try{return S}catch{}})(),(()=>{try{return w}catch{}})(),(()=>{try{return M}catch{}})()]).then(async()=>{let i,s,a,d,n,p,t,f,m,_,c,h;({defineComponent:i}=await u("vue")),{unref:s,renderSlot:a,normalizeClass:d,createElementVNode:n,isRef:p,withCtx:t,openBlock:f,createBlock:m}=await u("vue"),{computed:_,inject:c,provide:h}=await u("vue"),y=i({__name:"FmRadioGroup",props:{modelValue:{},inline:{type:Boolean,default:!1},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[r=>!R.isNil(r)||"This field is required"]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(r){const b=r,l=q(b,"modelValue"),o=c(k,null);h(B,{groupValue:l,getDisabled:()=>x.value,updateValue(e){l.value=e}});const x=_(()=>b.disabled??(o==null?void 0:o.getDisabled())??!1);return(e,v)=>(f(),m(C,{modelValue:s(l),"onUpdate:modelValue":v[0]||(v[0]=V=>p(l)?l.value=V:null),disabled:x.value,"helper-state":e.helperState,"helper-text":e.helperText,info:e.labelInfo,label:e.label,optional:e.labelMark==="optional",required:e.labelMark==="required",rules:e.rules},{label:t(()=>[a(e.$slots,"label")]),default:t(()=>[n("div",{class:d({"flex items-center gap-16 justify-start":e.inline,"flex flex-col gap-8":!e.inline})},[a(e.$slots,"default")],2)]),"helper-text":t(()=>[a(e.$slots,"helper-text")]),_:3},8,["modelValue","disabled","helper-state","helper-text","info","label","optional","required","rules"]))}})});export{y as _,T as __tla};
@@ -1 +0,0 @@
1
- import{importShared as r,__tla as D}from"./__federation_fn_import-CYKgoy9p.js";import{u as N,__tla as j}from"./useProxiedModel-DbArcH0F.js";import H,{__tla as J}from"./__federation_expose_FmIcon-BbkanMuo.js";import{F as K}from"./provider-keys-nUDvvk3o.js";import{_ as $}from"./_plugin-vue_export-helper-DlAUqK2U.js";let V,q=Promise.all([(()=>{try{return D}catch{}})(),(()=>{try{return j}catch{}})(),(()=>{try{return J}catch{}})()]).then(async()=>{let u,m,s,a,l,t,o,n,p,_,P,E,b,f,y,v,h,k,w,C,F,B,I,S;({defineComponent:u}=await r("vue")),{renderSlot:m,toDisplayString:s,createElementVNode:a,openBlock:l,createElementBlock:t,createCommentVNode:o,unref:n,createBlock:p,normalizeClass:_,pushScopeId:P,popScopeId:E}=await r("vue"),b={class:"cursor-pointer fm-switch__container"},f={key:0},y={class:"fm-typo-en-body-lg-400"},v={key:0,class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},h={class:"fm-switch__input--container"},k=["checked","disabled","value"],w={key:1},C={class:"fm-typo-en-body-lg-400"},F={key:0,class:"fm-color-typo-secondary fm-typo-en-body-md-400"},{computed:B,inject:I}=await r("vue"),S=u({__name:"FmSwitch",props:{modelValue:{type:Boolean},label:{default:""},sublabel:{default:""},labelPlacement:{default:"left"},value:{default:null},disabled:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(x){const g=x,d=I(K,null),i=B(()=>g.disabled??(d==null?void 0:d.getDisabled())??!1),c=N(g,"modelValue"),z=()=>{i.value||(c.value=!c.value)};return(e,A)=>(l(),t("label",b,[e.labelPlacement==="left"?(l(),t("div",f,[m(e.$slots,"label",{},void 0,!0),a("div",y,s(e.label),1),e.sublabel?(l(),t("div",v,s(e.sublabel),1)):o("",!0)])):o("",!0),a("div",h,[a("input",{checked:n(c),disabled:i.value,value:e.value,class:"fm-switch__input--btn",type:"checkbox",onClick:z},null,8,k),a("div",{class:_({"fm-switch__input--knob":!0,"fm-switch__input--knob--show-icon":e.showIcon})},[e.showIcon?(l(),p(H,{key:0,color:i.value?"#C7C7CC":n(c)?"#1C1C1E":"#FFFFFF",name:n(c)?"check":"close",size:"sm"},null,8,["color","name"])):o("",!0)],2)]),e.labelPlacement==="right"?(l(),t("div",w,[a("div",C,s(e.label),1),e.sublabel?(l(),t("div",F,s(e.sublabel),1)):o("",!0)])):o("",!0)]))}}),V=$(S,[["__scopeId","data-v-4448e953"]])});export{q as __tla,V as default};
@@ -1 +0,0 @@
1
- .fm-switch__container[data-v-4448e953]{position:relative;min-width:32px;display:flex;align-items:center;gap:8px}.fm-switch__input--container[data-v-4448e953]{position:relative;display:flex;align-items:center;transition:.3s}.fm-switch__input--knob[data-v-4448e953]{position:absolute;left:8px;height:16px;width:16px;display:flex;padding:4px;background-color:var(--fm-color-neutral-gray-400);border-radius:360px;transition:.3s}.fm-switch__input--knob--show-icon[data-v-4448e953]{height:24px;width:24px;left:4px}.fm-switch__input--btn[data-v-4448e953]{position:relative;height:32px;width:52px;flex-shrink:0;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:2px;border-color:var(--fm-color-neutral-gray-400);border-radius:100px;cursor:pointer}.fm-switch__input--btn[data-v-4448e953]:checked{background-color:var(--fm-color-primary);border-color:var(--fm-color-primary)}.fm-switch__input--btn:checked:disabled~.fm-switch__input--knob[data-v-4448e953]{background-color:var(--fm-color-neutral-white)}.fm-switch__input--btn:checked~.fm-switch__input--knob[data-v-4448e953]{position:absolute;left:24px;height:24px;width:24px;background-color:var(--fm-color-neutral-white)}.fm-switch__input--btn[data-v-4448e953]:disabled{background-color:var(--fm-color-neutral-gray-200);border-width:2px;border-color:var(--fm-color-neutral-gray-300);cursor:not-allowed}.fm-switch__input--btn:disabled~.fm-switch__input--knob[data-v-4448e953]{background-color:var(--fm-color-neutral-gray-300)}