@feedmepos/ui-library 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CHANGELOG.md +10 -0
- package/dist/components/bottom-sheet/FmBottomSheet.vue.d.ts +1 -1
- package/dist/components/button/FmButton.vue.d.ts +1 -1
- package/dist/components/chip/FmChip.vue.d.ts +2 -2
- package/dist/components/dialog/FmDialog.vue.d.ts +1 -1
- package/dist/components/drop-field/FmDropField.vue.d.ts +0 -5
- package/dist/components/form/calendar/date-picker/FmDatePicker.vue.d.ts +1 -1
- package/dist/components/form/calendar/date-picker/FmDatePickerDesktop.vue.d.ts +1 -1
- package/dist/components/form/calendar/date-picker/FmDatePickerMobile.vue.d.ts +1 -1
- package/dist/components/form/calendar/date-range-picker/FmDateRangePickerDesktop.vue.d.ts +1 -1
- package/dist/components/form/calendar/date-range-picker/FmDateRangePickerField.vue.d.ts +1 -1
- package/dist/components/form/calendar/date-range-picker/FmDateRangePickerMobile.vue.d.ts +1 -1
- package/dist/components/form/field/FmField.vue.d.ts +1 -1
- package/dist/components/form/form-group/FmFormGroup.vue.d.ts +1 -1
- package/dist/components/form/label/FmLabel.vue.d.ts +1 -1
- package/dist/components/form/select/FmSelect.vue.d.ts +1 -1
- package/dist/components/form/simple-calendar/simple-date-picker/FmSimpleDatePickerDesktop.vue.d.ts +1 -1
- package/dist/components/form/simple-calendar/simple-date-picker/FmSimpleDatePickerMobile.vue.d.ts +1 -1
- package/dist/components/form/simple-calendar/simple-date-range-picker/FmSimpleDateRangePickerDesktop.vue.d.ts +1 -1
- package/dist/components/form/simple-calendar/simple-date-range-picker/FmSimpleDateRangePickerField.vue.d.ts +1 -1
- package/dist/components/form/simple-calendar/simple-date-range-picker/FmSimpleDateRangePickerMobile.vue.d.ts +1 -1
- package/dist/components/form/time-picker/FmTimePicker.vue.d.ts +1 -1
- package/dist/components/form/time-picker/FmTimeRangePicker.vue.d.ts +1 -1
- package/dist/components/menu/menu-component/FmMenu.vue.d.ts +2 -2
- package/dist/components/menu/menu-divider/FmMenuDivider.vue.d.ts +1 -1
- package/dist/components/menu/menu-item/FmMenuItem.vue.d.ts +1 -1
- package/dist/components/popover/FmPopover.vue.d.ts +1 -1
- package/dist/components/side-sheet/FmSideSheet.vue.d.ts +1 -1
- package/dist/components/snackbar/FmSnackbar.vue.d.ts +1 -1
- package/dist/components/tab/FmCollapsibleTab.vue.d.ts +8 -5
- package/dist/components/tab/FmTab.vue.d.ts +3 -3
- package/dist/components/tooltip/FmTooltip.vue.d.ts +2 -2
- package/dist/components/tooltip/FmTooltipDirective.vue.d.ts +1 -1
- package/dist/components/top-sheet/FmTopSheet.vue.d.ts +1 -1
- package/dist/components.d.ts +589 -596
- package/dist/federation/{FmBreadcrumb.vue_vue_type_style_index_0_lang-DFBBX_mv.js → FmBreadcrumb.vue_vue_type_style_index_0_lang-CHN6DYZh.js} +1 -1
- package/dist/federation/FmCollapsibleTabs.vue_vue_type_script_setup_true_lang-CL_OK2_W.js +1 -0
- package/dist/federation/{__federation_expose_FmBreadcrumb-pIu1hdNY.js → __federation_expose_FmBreadcrumb-DFiano5N.js} +1 -1
- package/dist/federation/__federation_expose_FmCollapsibleTabs-Y1menAZw.js +1 -0
- package/dist/federation/__federation_expose_FmDropField-BL8860Uv.css +1 -0
- package/dist/federation/__federation_expose_FmDropField-Cov87nFi.js +1 -0
- package/dist/federation/feedmepos-ui-components.js +1 -1
- package/dist/federation/{index-KqEvOlmI.js → index-alVCIl2t.js} +2 -2
- package/dist/feedmepos-ui-library.js +1055 -1048
- package/dist/feedmepos-ui-library.umd.cjs +19 -19
- package/dist/plugin/snackbar-plugin.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/federation/FmCollapsibleTabs.vue_vue_type_script_setup_true_lang-BoF-pwmx.js +0 -1
- package/dist/federation/__federation_expose_FmCollapsibleTabs-D5SnXEmk.js +0 -1
- package/dist/federation/__federation_expose_FmDropField-Y6selzwl.css +0 -1
- package/dist/federation/__federation_expose_FmDropField-qbgPZE-q.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{importShared as f,__tla as ae}from"./__federation_fn_import-CYKgoy9p.js";import{u as W,__tla as te}from"./useProxiedModel-DbArcH0F.js";import X,{__tla as ne}from"./__federation_expose_FmIcon-BbkanMuo.js";import oe,{__tla as re}from"./__federation_expose_FmBadge-CiAy04wG.js";let Y,ie=Promise.all([(()=>{try{return ae}catch{}})(),(()=>{try{return te}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return re}catch{}})()]).then(async()=>{let V,v,t,h,p,B,C,F,x,m,M,T,z,D,L,N,P,S,$,u,E,R,U,H,O,_,g,j,q,A,G,I,J;({defineComponent:V}=await f("vue")),{normalizeClass:v,openBlock:t,createBlock:h,createCommentVNode:p,toDisplayString:B,createElementVNode:C,createVNode:F,normalizeStyle:x,createElementBlock:m,resolveDirective:M,withDirectives:T,renderList:z,Fragment:D,unref:L,resolveComponent:N,isRef:P,mergeProps:S}=await f("vue"),$=["tabindex"],{computed:u,ref:E}=await f("vue"),R=V({__name:"FmCollapsibleTab",props:{modelValue:{default:void 0},label:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1},badge:{default:0},value:{default:void 0},children:{default:()=>[]},indentation:{default:1},active:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},focusable:{type:Boolean,default:void 0},action:{}},setup(w){const l=w,r=W(l,"modelValue"),i=u(()=>l.children.length>0),a=E(!l.expand||l.disabled),s=u(()=>{if(!i.value)return 0;function e(d){return d.children?[d,...d.children.flatMap(e)]:[d]}return 56*(l.children?l.children.flatMap(e):[]).length});function n(){if(!l.disabled){if(i.value){a.value=!a.value;return}r.value=l.value,l.action&&l.action()}}const o=u(()=>typeof l.focusable=="boolean"?l.focusable:!l.disabled&&(!a.value||!i.value));function b(e){return e.children&&e.children.length?e.children.some(b):l.modelValue===e.value}const c=u(()=>{const e=b(l);return i.value?e&&a.value:e}),Z=u(()=>l.children?l.children.map(({modelValue:e,indentation:d,active:K,focusable:Q,...y})=>{const k=b(y);return{...y,expand:k,focusable:!y.disabled&&!a.value}}):[]),ee=u(()=>{switch(l.indentation){case 1:return 8;case 2:return 16;case 3:return 24;default:return 32}});return(e,d)=>{const K=N("FmCollapsibleTab",!0),Q=M("wave");return t(),m("div",{style:x({paddingLeft:`${ee.value}px`}),class:"flex flex-col px-8"},[T((t(),m("button",{class:v(["flex fm-corner-radius-md gap-4 items-center px-16 py-8 focus-visible:outline-none",{"cursor-pointer focus-visible:bg-fm-color-opacity-md hover:bg-fm-color-opacity-sm ":!e.disabled,"cursor-not-allowed":e.disabled,"bg-fm-color-system-warning-100":c.value}]),tabindex:o.value?"0":"-1",type:"button",onClick:n},[e.icon?(t(),h(X,{key:0,class:v({"text-fm-color-typo-disabled":e.disabled,"text-fm-color-typo-primary":!e.disabled&&!c.value,"text-fm-color-primary":!e.disabled&&c.value}),name:e.icon},null,8,["class","name"])):p("",!0),C("div",{class:v(["py-4 fm-typo-en-body-lg-400 text-left line-clamp-2",{"text-fm-color-typo-secondary":!e.disabled&&!c.value,"text-fm-color-primary":!e.disabled&&c.value,"text-fm-color-typo-disabled":e.disabled}])},B(e.label),3),e.badge?(t(),h(oe,{key:1,value:e.badge,inline:"",variant:"numeric"},null,8,["value"])):p("",!0),i.value?(t(),m("div",{key:2,style:x({transformOrigin:"center",transform:`rotate(${a.value?"0":"180"}deg)`,transition:"transform ease-out 250ms"}),class:"flex h-24 items-center ml-auto w-24"},[F(X,{class:v({"text-fm-color-neutral-gray-300":!e.disabled,"text-fm-color-typo-disabled":e.disabled}),name:"expand_more",size:"md"},null,8,["class"])],4)):p("",!0)],10,$)),[[Q,!e.disabled]]),i.value?(t(),m("div",{key:0,style:x({maxHeight:a.value?0:`${s.value}px`,transition:"max-height 250ms",transitionTimingFunction:a.value?"ease-out":"ease-in"}),class:"flex flex-col overflow-hidden"},[(t(!0),m(D,null,z(Z.value,(y,k)=>(t(),h(K,S({key:k,"model-value":L(r),"onUpdate:modelValue":d[0]||(d[0]=le=>P(r)?r.value=le:null),indentation:e.indentation+1,ref_for:!0},y),null,16,["model-value","indentation"]))),128))],4)):p("",!0)],4)}}}),{defineComponent:U}=await f("vue"),{renderList:H,Fragment:O,openBlock:_,createElementBlock:g,unref:j,isRef:q,mergeProps:A,createBlock:G}=await f("vue"),I={class:"h-full flex flex-col overflow-auto"},{computed:J}=await f("vue"),Y=U({__name:"FmCollapsibleTabs",props:{modelValue:{default:void 0},items:{default:()=>[]}},setup(w){const l=w,r=W(l,"modelValue"),i=J(()=>l.items?l.items.map(({modelValue:s,...n})=>n):[]);function a(s){function n(o){return o.children?o.children.flatMap(n):[o.value]}return(s.children?s.children.flatMap(n):[s.value]).includes(l.modelValue)}return(s,n)=>(_(),g("div",I,[(_(!0),g(O,null,H(i.value,(o,b)=>(_(),G(R,A({key:b,"model-value":j(r),"onUpdate:modelValue":n[0]||(n[0]=c=>q(r)?r.value=c:null),active:a(o),expand:a(o),ref_for:!0},o),null,16,["model-value","active","expand"]))),128))]))}})});export{Y as _,ie as __tla};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as t,__tla as a}from"./FmCollapsibleTabs.vue_vue_type_script_setup_true_lang-BoF-pwmx.js";let _=Promise.all([(()=>{try{return a}catch{}})()]).then(async()=>{});export{_ as __tla,t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.fm-drop-field[data-v-1875ae8b]{display:flex;flex-direction:column;gap:4px}.fm-drop-field__container[data-v-1875ae8b]{position:relative;background-color:var(--fm-color-neutral-white);padding:12px;border-radius:8px;border-width:2px;border-style:dashed;border-color:var(--fm-color-neutral-gray-300);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}.fm-drop-field__container--disabled[data-v-1875ae8b]{cursor:not-allowed;color:var(--fm-color-neutral-gray-200);border-color:var(--fm-color-neutral-gray-200)}.fm-drop-field__container--dragging[data-v-1875ae8b]{border-color:var(--fm-color-primary)}.fm-drop-field__container--invalid[data-v-1875ae8b]{border-color:var(--fm-color-system-red-300)}.fm-drop-field__container[data-v-1875ae8b]:hover:not(.fm-drop-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-drop-field__input[data-v-1875ae8b]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-drop-field__input[data-v-1875ae8b]:disabled{display:none;cursor:not-allowed}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{importShared as _,__tla as W}from"./__federation_fn_import-CYKgoy9p.js";import q,{__tla as G}from"./__federation_expose_FmButton-CX_-gqwO.js";import{t as x,__tla as H}from"./locale-Bq3GkmqD.js";import{_ as J}from"./_plugin-vue_export-helper-DlAUqK2U.js";let P,U=Promise.all([(()=>{try{return W}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return H}catch{}})()]).then(async()=>{let g,r,d,i,s,n,f,h,m,D,w,B,F,z,v,p,S;({defineComponent:g}=await _("vue")),{renderSlot:r,toDisplayString:d,normalizeClass:i,createElementVNode:s,openBlock:n,createElementBlock:f,createCommentVNode:h,unref:m,createBlock:D,pushScopeId:w,popScopeId:B}=await _("vue"),F={class:"fm-drop-field"},z=["accept","disabled"],{computed:v,ref:p}=await _("vue"),S=g({__name:"FmDropField",props:{label:{default:""},disabled:{type:Boolean,default:!1},accept:{default:""},maxFileSize:{default:8e6},contentClass:{}},emits:["file-upload","file-rejected"],setup(I,{emit:j}){const a=I,$=j,t=p(!1),c=p(),u=p(),b=p(),E=e=>{a.disabled||(e.stopPropagation(),e.preventDefault())},N=e=>{a.disabled||(e.stopPropagation(),e.preventDefault(),t.value=!0)},O=e=>{a.disabled||(e.stopPropagation(),e.preventDefault(),t.value=!1)},V=e=>{a.disabled||(e.stopPropagation(),e.preventDefault(),t.value=!1,C(e))},C=e=>{var l;b.value=((l=e.dataTransfer)==null?void 0:l.files)??e.target.files;const o=b.value;if(c.value=A(o[0]),u.value=K(o[0]),c.value&&u.value)$("file-upload",o[0]);else{const R=T();$("file-rejected",[{file:o[0],reason:R}])}},T=()=>{const e=[];return c.value||e.push("invalid-type"),u.value||e.push("invalid-size"),e},A=e=>{if(!a.accept)return!0;const o=a.accept.split(",").map(l=>l.trim());for(const l of o)if(L(l)){if(k(l)===k(e.type))return!0}else if(M(e)===l||e.type===l)return!0;return!1},K=e=>e.size<=a.maxFileSize,L=e=>e.indexOf("*")!==-1,M=e=>"."+e.name.split(".").pop(),k=e=>e.substring(0,e.indexOf("/")),Q=v(()=>{if(t.value)return"Drop file to upload";if(c.value){if(!u.value)return`File size exceeds ${a.maxFileSize*1e-6}mb`}else return"File type is not valid";return""}),y=v(()=>b.value?!c.value||!u.value:!1);return(e,o)=>(n(),f("label",F,[r(e.$slots,"label",{},()=>[s("div",{class:i([[e.disabled?"text-fm-color-typo-disabled":"text-fm-color-typo-primary"],"fm-typo-en-body-lg-400"])},d(e.label),3)],!0),s("div",{class:i([[e.contentClass?e.contentClass:"w-full h-full",{"fm-drop-field__container--dragging":t.value,"fm-drop-field__container--invalid":y.value&&!e.disabled,"fm-drop-field__container--disabled":e.disabled}],"fm-drop-field__container"]),onDragenter:E,onDragleave:O,onDragover:N,onDrop:V},[r(e.$slots,"default",{},void 0,!0),(t.value||y.value)&&!e.disabled?(n(),f("div",{key:0,class:i({"fm-typo-en-body-lg-600":!0,"text-fm-color-primary":t.value,"text-fm-color-typo-error":y.value})},d(Q.value),3)):(n(),D(q,{key:1,disabled:e.disabled,label:m(x)("dropField.placeholder"),size:"md",variant:"secondary"},null,8,["disabled","label"])),r(e.$slots,"accept-text",{},()=>[a.accept?(n(),f("div",{key:0,class:i([[e.disabled?"text-fm-color-typo-disabled":"text-fm-color-typo-secondary"],"fm-typo-en-body-md-400"])},d(`${m(x)("dropField.accept")}${a.accept}`),3)):h("",!0)],!0),s("input",{accept:e.accept,disabled:e.disabled,class:"fm-drop-field__input",type:"file",onChange:C},null,40,z)],34),r(e.$slots,"helper-text",{},()=>[s("div",{class:i([[e.disabled?"text-fm-color-typo-disabled":"text-fm-color-typo-secondary"],"fm-typo-en-body-sm-400"])},d(`${m(x)("dropField.maxSize")}${a.maxFileSize*1e-6}mb`),3)],!0)]))}}),P=J(S,[["__scopeId","data-v-1875ae8b"]])});export{U as __tla,P as default};
|