@farris/ui-vue
Version:
Farris Vue, a Farris Design based Vue3 component library.
2 lines (1 loc) • 21.1 kB
JavaScript
(function(p,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("../button-edit/index.umd.js"),require("../tree-grid/index.umd.js"),require("../radio-group/index.umd.js"),require("../common/index.umd.js"),require("../dynamic-resolver/index.umd.js"),require("vue-i18n"),require("../locale/index.umd.js"),require("../property-panel/index.umd.js"),require("lodash-es"),require("../notify/index.umd.js")):typeof define=="function"&&define.amd?define(["exports","vue","../button-edit/index.umd.js","../tree-grid/index.umd.js","../radio-group/index.umd.js","../common/index.umd.js","../dynamic-resolver/index.umd.js","vue-i18n","../locale/index.umd.js","../property-panel/index.umd.js","lodash-es","../notify/index.umd.js"],t):(p=typeof globalThis<"u"?globalThis:p||self,t(p["binding-selector"]={},p.Vue,p.FButtonEdit,p.FTreeGrid,p.FRadioGroup,p.common,p.dynamicResolver,p.vueI18n,p.locale,p.propertyPanel,p.LodashES,p.notify))})(this,function(p,t,L,le,se,H,de,re,ce,q,Z,ue){"use strict";var ge=Object.defineProperty;var he=(p,t,L)=>t in p?ge(p,t,{enumerable:!0,configurable:!0,writable:!0,value:L}):p[t]=L;var X=(p,t,L)=>he(p,typeof t!="symbol"?t+"":t,L);const me={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/binding-selector.schema.json",title:"binding-selector",description:"字段绑定选择器",type:"object",properties:{disabled:{description:"",type:"boolean",default:!1},readonly:{description:"",type:"boolean",default:!1},bindingType:{description:"",type:"object",default:{}},idField:{description:"",type:"string",default:"id"},title:{description:"",type:"string",default:"字段选择器"},modalWidth:{description:"",type:"number",default:800},modalHeight:{description:"",type:"number",default:600},separator:{description:"",type:"string",default:","},bindingData:{description:"",type:"array",default:[]},textField:{description:"",type:"string",default:"code"},editorParams:{description:"",type:"object",default:{}}}},Y=[{field:"name",title:"名称"},{field:"bindingField",title:"绑定字段"},{field:"fieldType",title:"字段类型"}],z=[{field:"name",title:"名称"},{field:"code",title:"编号"},{field:"displayTypeName",title:"变量类型"}],D=[{value:"Form",text:"绑定字段"},{value:"LocaleVariable",text:"绑定组件变量"},{value:"RemoteVariable",text:"绑定表单变量"}],_={disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},modelValue:{type:Object,default:null},bindingType:{type:Object,default:{enable:!0,value:"Form",textField:"text",valueField:"value"}},data:{type:Array,default:[]},idField:{type:String,default:"id"},title:{type:String,default:"字段选择器"},modalWidth:{type:Number,default:800},modalHeight:{type:Number,default:600},multiSelect:{type:Boolean,default:!1},separator:{type:String,default:","},bindingData:{type:Array,default:[]},textField:{type:String,default:"code"},beforeOpenDialog:{type:Function,default:null},editorParams:{type:Object,default:null},onFieldSelected:{type:Function,default:null},showCustomFooter:{type:Boolean,default:!1}},ee=de.createPropsResolver(_,me),fe={showCloseButton:{type:Boolean,default:!0},position:{type:String,default:"top-center"},timeout:{type:Number,default:3e3},theme:{type:String,default:"bootstrap"},left:{type:Number},right:{type:Number},top:{type:Number},bottom:{type:Number},id:{type:String},animate:{type:String,default:"fadeIn"},options:{type:Object},safeHtml:{type:Boolean,default:!0}},pe={showCloseButton:{type:Boolean,default:!0},animate:{type:String,default:"fadeIn"},options:{type:Object}},J=t.defineComponent({name:"Toast",props:pe,emits:["close","click"],setup:(e,o)=>{const{locale:l,t:d}=re.useI18n(),c=t.ref(e.animate),y="fadeOut",a=t.computed(()=>e.options),m=t.ref(!1),F=t.computed(()=>a.value.title&&a.value.message),T=t.computed(()=>!a.value.title&&a.value.message),V=t.computed(()=>{const f={animated:m.value,toast:!0,"toast--only-content":T.value};return f[e.animate]=!1,f[y]=m.value,f["toasty-type-"+a.value.type]=!0,a.value.theme&&(f[a.value.theme]=!0),f}),w=t.computed(()=>{const R=`f-icon-${a.value&&a.value.type?a.value.type.replace("toasty-type-",""):"default"}`,$={"f-icon":!0};return $[R]=!0,$}),S=t.computed(()=>a.value.title||a.value.message),v=t.computed(()=>e.showCloseButton),N=t.computed(()=>!!a.value.buttons||!!o.slots.default),I=t.computed(()=>l.value==="en"?{wordBreak:"keep-all",overflowWrap:"break-word"}:{});function E(f){f.stopPropagation(),f.preventDefault(),m.value=!1,setTimeout(()=>{o.emit("close",a.value)},200)}function k(f,x){}function M(f){return`f-preten-link ${f.customClass?f.customClass:""}`}t.watch(c,()=>{c.value});const O=()=>{var f;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:"after-toast-msg text-right"},[!o.slots.default&&((f=a.value.buttons)==null?void 0:f.map(x=>t.createVNode("span",{class:M(x),onClick:R=>void 0},[x.text]))),o.slots.default&&o.slots.default()])])};return()=>t.createVNode("div",{class:V.value,style:"min-height:44px"},[v.value&&t.createVNode("button",{title:d("messageBox.close"),class:"toast-close f-btn-icon f-bare",onClick:E},[t.createVNode("span",{class:"f-icon modal_close"},null)]),S.value&&t.createVNode("section",{class:"modal-tips"},[t.createVNode("div",{class:"float-left modal-tips-iconwrap"},[t.createVNode("span",{class:w.value},null)]),t.createVNode("div",{class:"modal-tips-content"},[F.value&&t.createVNode(t.Fragment,null,[t.createVNode("h5",{class:"toast-title modal-tips-title",innerHTML:a.value.title},null),t.createVNode("p",{class:"toast-msg",innerHTML:a.value.message,style:I.value},null),N.value&&O()]),T.value&&(a.value.buttons?t.createVNode("div",{class:"toast-title-btns-wrapper d-flex"},[t.createVNode("h5",{class:"toast-title modal-tips-title only-toast-msg",style:I.value,innerHTML:a.value.message},null),t.createVNode("div",{class:"after-toast-title text-right ml-auto"},[O()])]):t.createVNode("h5",{class:"toast-title modal-tips-title only-toast-msg",style:I.value,innerHTML:a.value.message},null))])])])}}),A=t.defineComponent({name:"Notify",props:fe,emits:["close","empty"],setup(e,o){const l=t.computed(()=>({"farris-notify":!0})),d={left:12,right:12,top:20,bottom:12},c=t.ref(),y=t.ref(e.options),a=t.ref(e.showCloseButton),m=t.computed(()=>e.position||"bottom-right"),F=t.computed(()=>e.timeout!=null?e.timeout:3e3),T=t.computed(()=>{const S=e.bottom?e.bottom:d.bottom,v=e.top?e.top:d.top,N={transition:"all 0.2s ease",left:m.value.indexOf("left")>-1?`${e.left?e.left:d.left}px`:"",right:m.value.indexOf("right")>-1?`${e.right?e.right:d.right}px`:"",top:m.value.indexOf("top")>-1?`${v}px`:"",bottom:m.value.indexOf("bottom")>-1?`${S}px`:""};return m.value.indexOf("center")>-1&&(N.left="50%",N.marginLeft="calc(-24rem / 2)",m.value==="center-center"&&(N.top="50%",N.transform="translate(-50%, -50%)")),N});function V(S){o.emit("close")}F.value&&setTimeout(()=>{V()},F.value),o.expose({closeToast:V,container:c,notifyPosition:m});function w(S,v){V()}return()=>t.createVNode("div",{class:l.value,style:T.value,ref:c},[t.createVNode(J,{options:y.value,showCloseButton:a.value,animate:e.animate,onClose:S=>w(S,y.value)},null)])}});class te{constructor(){X(this,"notifyRefs",[]);X(this,"globalConfig",t.reactive({}))}escapeAllHtml(o){if(typeof o!="string"||!o)return"";const l=document.createElement("div");return l.textContent=o||"",l.innerHTML.replace(/\\n/g,"<br>").replace(/\\t/g," ").replace(/\\r/g,"")}createNotifyInstance(o){const l=this,c=Object.assign({timeout:3e3,position:"bottom-right",showCloseButton:!0,safeHtml:!0},this.globalConfig,{...o}),y=document.createElement("div");y.style.display="contents";const a=t.createApp({setup(){var T;const m=t.ref();function F(){m.value.container.style.transform="scale(0)",setTimeout(()=>{l.updateNotifyPositionForClose(c,m),a.unmount()},220)}if(c.position.indexOf("top")>-1){const V=l.getNotifyInstances(c.position),w=V[V.length-1];if(w){const S=w.value.container.getBoundingClientRect();c.top=S.bottom}}return c.safeHtml&&((T=c.options)!=null&&T.message)&&(c.options.message=l.escapeAllHtml(c.options.message)),t.onUnmounted(()=>{document.body.removeChild(y)}),t.onMounted(()=>{l.updateNotifyPositionForCreate(c,m)}),()=>t.createVNode(t.Transition,{mode:"out-in",name:"fade",appear:!0},{default:()=>[t.createVNode(A,t.mergeProps({ref:m},c,{onClose:F}),null)]})}});return a.provide("NotifyService",this),document.body.appendChild(y),a.use(ce.LocaleService.i18n),a.mount(y),a}getNotifyInstances(o){return this.notifyRefs.filter(l=>l.value.notifyPosition===o)}updateNotifyPositionForCreate(o,l){if(this.notifyRefs&&this.notifyRefs.length){const d=window.innerHeight;o.position.indexOf("bottom")>-1&&this.getNotifyInstances(o.position).forEach(c=>{const y=c.value.container.getBoundingClientRect();c.value.container.style.bottom=y.height+d-y.bottom+"px"})}this.notifyRefs=[...this.notifyRefs,l]}updateNotifyPositionForClose(o,l){const d=this.notifyRefs.indexOf(l);if(o.position.indexOf("top")>-1){const c=this.getNotifyInstances(o.position),y=c.indexOf(l);c.slice(y+1).forEach(a=>{a.value.container.style.top=a.value.container.offsetTop-a.value.container.offsetHeight+"px"})}d>-1&&this.notifyRefs.splice(d,1)}show(o){return this.createNotifyInstance(o)}buildNotifyProps(o,l){let d="",c="",y,a,m;typeof l=="string"?d=l:l&&(d=l.message||"",c=l.title||"",a=l.position||null,m=l.showCloseButton!=null?l.showCloseButton:null,y=l.timeout!=null?l.timeout:null);const T={options:{type:o,message:d,title:c}};return a!=null&&(T.position=a),m!=null&&(T.showCloseButton=m),y!=null&&(T.timeout=y),T}info(o){const l=this.buildNotifyProps("info",o);return this.show(l)}success(o){const l=this.buildNotifyProps("success",o);return this.show(l)}warning(o){const l=this.buildNotifyProps("warning",o);return this.show(l)}error(o){const l=this.buildNotifyProps("error",o);return this.show(l)}close(o){o&&o.unmount()}closeAll(){this.notifyRefs.forEach(o=>{o==null||o.value.closeToast()}),this.notifyRefs.length=0}}const ye=Symbol("NOTIFY_SERVICE_TOKEN");A.install=e=>{e.component(A.name,A),e.component(J.name,J);const o=new te;e.provide(ye,o),e.provide("FNotifyService",o)};function ne(e){const{designViewModelUtils:o,schemaService:l,formSchemaUtils:d}=e.editorParams.designerHostService,{viewModelId:c}=e.editorParams;let y=[],a=[],m=[];const F=new te;F.globalConfig={position:"top-center"};function T(i){switch(i){case"LocaleVariable":return a;case"RemoteVariable":return m;default:return y}}function V(){y=o.getAllFields2TreeByVMId(c)}function w(){const i=d.getViewModelById(c);if(i.parent){const r=d.getLocaleVariablesByViewModelId(i.parent);r&&r.length&&(r[0].data.name="根组件",a=a.concat(r))}const s=d.getLocaleVariablesByViewModelId(c);a=a.concat(s)}function S(){m=d.getRemoteVariables()}function v(i){var u,h,b,B;const s=Z.merge({},i.rawData,{groupId:null,groupName:null}),r=(u=e.editorParams.componentSchema)==null?void 0:u.binding,g=(h=e.editorParams.componentSchema)==null?void 0:h.label,n=o.getDgViewModel(c);if(r!=null&&r.field){const C=n.fields.find(P=>P.id===r.field);if(n.removeField([r.field]),C){const{groupId:P,groupName:W,editor:G}=C;Z.merge(s,{editor:G,groupId:P,groupName:W})}}n.addField(s),(B=(b=e.editorParams.componentSchema)==null?void 0:b.editor)!=null&&B.type&&n.changeField(s.id,{editor:s.editor}),g&&n.changeField(s.id,{name:g})}function N(i){var n;const s=(n=e.editorParams.componentSchema)==null?void 0:n.binding,r=o.getDgViewModel(c),g={type:"Variable",id:i.id,fieldName:i.code,groupId:"",groupName:""};if(s!=null&&s.field){const u=d.getViewModelById(c),h=u==null?void 0:u.fields.find(b=>b.id===(s==null?void 0:s.field));h&&(g.groupName=h.groupName,g.groupId=h.groupId),r.removeField([s==null?void 0:s.field])}d.addViewModelField(c,g)}function I(i,s){if(!e.editorParams.needSyncToViewModel||!e.editorParams.viewModelId||!e.editorParams.designerHostService)return;const r=e.editorParams.componentSchema.binding;r&&r.field===i.id||(s==="Form"?v(i):N(i))}function E(i){if(!e.editorParams.needSyncToViewModel||!e.editorParams.viewModelId||!e.editorParams.designerHostService)return;const s=e.editorParams.componentSchema.binding;if(!(!s||s.field===i.id)&&d.getExpressions().length){const{componentSchema:r}=e.editorParams,g=d.getExpressions().findIndex(n=>n.target===s.field);g>-1&&(d.getExpressions().splice(g,1),F.warning("切换绑定后,请重新配置表达式"),Object.keys(r).forEach(n=>{r[n]&&r[n].type==="Expression"&&(r[n].expressionId=""),r.editor&&Object.keys(r.editor).forEach(u=>{r.editor[u]&&r.editor[u].type==="Expression"&&(r.editor[u].expressionId="")})}))}}function k(i){var r;[H.FormSchemaEntityFieldTypeName.Number,H.FormSchemaEntityFieldTypeName.String,H.FormSchemaEntityFieldTypeName.Text].includes(i.type.name)&&((r=i.type)==null?void 0:r.length)&&e.editorParams.componentSchema.editor&&!Object.prototype.hasOwnProperty.call(e.editorParams.componentSchema.editor,"maxLength")&&(e.editorParams.componentSchema.editor.maxLength=i.type.length)}function M(i,s){if(e.editorParams.componentSchema){switch(e.editorParams.componentSchema.binding||(e.editorParams.componentSchema.binding={}),s){case"Form":{e.editorParams.componentSchema.binding.path=i.bindingField,e.editorParams.componentSchema.binding.field=i.id,e.editorParams.componentSchema.binding.fullPath=i.path;break}case"LocaleVariable":{e.editorParams.componentSchema.binding.path=i.viewModelId===c?i.code:"root-component."+i.code,e.editorParams.componentSchema.binding.field=i.id,e.editorParams.componentSchema.binding.fullPath=i.code;break}case"RemoteVariable":{e.editorParams.componentSchema.binding.path="root-component."+i.code,e.editorParams.componentSchema.binding.field=i.id,e.editorParams.componentSchema.binding.fullPath=i.code;break}}return e.editorParams.componentSchema.binding.type=s,e.editorParams.componentSchema.path=i.bindingPath,k(i),e.editorParams.componentSchema.binding}}function O(i){const s=i==null?void 0:i.field,r=new Set,g=d.getFormSchema().module,n=d.getViewModelById(c);let h=g.components.find(b=>b.viewModel===c).componentType;return(h==="frame"||h==="table")&&(h="form"),g.viewmodels.forEach(b=>{if(!b.fields||b.fields.length===0)return;const B=g.components.find(P=>P.viewModel===b.id);let{componentType:C}=B;(C==="frame"||C==="table")&&(C="form"),!(C!==h||b.bindTo!==n.bindTo)&&b.fields.forEach(P=>{P.id!==s&&r.add(P.id)})}),r}function f(i){if(!i)return[];const s={},{fieldControlTypeMapping:r}=q.SchemaDOMMapping;for(const g in r){const n=r[g];!n||!n.length||n.forEach(u=>{s[u.key]=s[u.key]||[],s[u.key].push(g)})}return s["language-textbox"]=["multiLanguage"],s[i]}function x(){V(),w(),S()}function R(i,s){if(i.multiLanguage)return{fieldType:"multiLanguage",fieldTypeName:"多语言"};const r=s===q.FormBindingType.Form?i.type.name:i.type,g=s===q.FormBindingType.Form?i.type.displayName:i.displayTypeName;return{fieldType:r,fieldTypeName:g}}function $(){var n;const i=(n=e.editorParams)==null?void 0:n.componentSchema,s=i==null?void 0:i.binding;if(!s)return{originalFieldType:"",isOriginalBindComplexField:!1};let r,g=!1;if(s.type===q.FormBindingType.Form){const u=l.getFieldByID(s.field);u&&(r=R(u,q.FormBindingType.Form).fieldType,u.$type===H.FormSchemaEntityField$Type.ComplexField&&(g=!0))}else{const u=d.getVariableById(s.field);u&&(r=u.type)}return{originalFieldType:r,isOriginalBindComplexField:g}}function Q(i,s){var G,oe,ie,ae;if(!(i!=null&&i.length))return F.warning({message:"请先选择数据"}),!1;const r=(G=e.editorParams)==null?void 0:G.componentSchema;if(!(r==null?void 0:r.binding))return!0;let n=!0;const{originalFieldType:u,isOriginalBindComplexField:h}=$(),b=i[0],{fieldType:B,fieldTypeName:C}=R(b,s),P="不可以切换成",W="类型字段,请重新选择!";if(h||!u){const K=f((ae=(ie=(oe=e.editorParams)==null?void 0:oe.componentSchema)==null?void 0:ie.editor)==null?void 0:ae.type);return K!=null&&K.length&&!K.includes(B)&&(F.warning(`${P}${C}${W}`),n=!1),n}return u&&u!==B?e.editorParams.canChangeFieldType?!0:(F.warning(`${P}${C}${W}`),!1):n}return{initTreeData:x,getTreeDataSource:T,updateViewModel:I,updateComponentSchema:M,resolveOccupiedFields:O,resolveFieldTypesByEditorType:f,checkFieldValiation:Q,clearExpresssionConfig:E,getOriginalFieldType:$}}const U=t.defineComponent({name:"FBindingSelectorContainer",props:_,emits:["selected","bindingTypeChange","cancel","submit","skip"],setup(e,o){var s,r,g;const l=t.ref(e.data),d=t.ref(((s=e.modelValue)==null?void 0:s.type)||"Form"),c=t.ref(e.bindingData),y=t.ref(),a=t.ref(),m=t.ref(),{getTreeDataSource:F,initTreeData:T,resolveOccupiedFields:V,resolveFieldTypesByEditorType:w,getOriginalFieldType:S}=ne(e),v=t.ref([]),{originalFieldType:N,isOriginalBindComplexField:I}=S();t.onBeforeMount(()=>{var n,u,h,b,B,C;T(),l.value=F(d.value),(n=e.editorParams)!=null&&n.disableOccupiedFields&&(a.value=V((h=(u=e.editorParams)==null?void 0:u.componentSchema)==null?void 0:h.binding)),m.value=w((C=(B=(b=e.editorParams)==null?void 0:b.componentSchema)==null?void 0:B.editor)==null?void 0:C.type),v.value=d.value==="Form"?Y:z}),t.onMounted(()=>{var u,h,b;const n=(b=(h=(u=e.editorParams)==null?void 0:u.componentSchema)==null?void 0:h.binding)==null?void 0:b.field;n&&y.value.selectItemById(n)});const E={"f-utils-fill":!0,"m-2":(r=e.bindingType)==null?void 0:r.enable,"mx-2":!((g=e.bindingType)!=null&&g.enable),border:!0};function k(n){v.value=n==="Form"?Y:z,y.value.updateColumns(v.value),l.value=F(n),y.value.updateDataSource(l.value),y.value.clearSelection(),c.value=[],o.emit("selected",[]),o.emit("bindingTypeChange",n)}function M(n){c.value=n,o.emit("selected",n)}function O(){return t.createVNode("div",{class:"px-3"},[t.createVNode(se,{name:"bindingType",textField:e.bindingType.textField||"text",valueField:e.bindingType.valueField||"value",data:D,modelValue:d.value,"onUpdate:modelValue":n=>d.value=n,onChangeValue:k},null)])}function f(n){var u;return n.raw.multiLanguage?"multiLanguage":d.value==="Form"?(u=n.raw.type)==null?void 0:u.name:n.raw.type}const x={customRowStatus:n=>{var h;if(n.raw.$type&&n.raw.$type!==H.FormSchemaEntityField$Type.SimpleField||a.value&&a.value.has(n.raw.id))return n.disabled=!0,n;const u=f(n);if(I||!N){if(u&&((h=m.value)!=null&&h.length)&&!m.value.includes(u))return n.disabled=!0,n}else if(N&&N!==u)return n.disabled=!0,n;return n.disabled=!1,n}};function R(){return t.createVNode(le,{ref:y,fit:!0,data:l.value,idField:e.idField,columns:v.value,rowNumber:{enable:!1},columnOption:{fitColumns:!0},onSelectionChange:M,"row-option":x},null)}function $(){o.emit("cancel")}function Q(){if(!c.value||!c.value.length){const n=new ue.FNotifyService;return n.globalConfig={position:"top-center"},n.warning({message:"请先选择数据"}),!1}return!0}function i(){Q()&&o.emit("submit",{selectedData:c.value[0],bindingType:d.value})}return()=>t.createVNode("div",{class:"h-100 d-flex flex-column"},[e.bindingType.enable&&O(),t.createVNode("div",{class:E,style:"position:relative;border-radius:10px;"},[t.createTextVNode(" "),R()]),e.showCustomFooter?t.createVNode("div",{class:"modal-footer"},[t.createVNode("button",{type:"button",class:"btn btn-secondary",onClick:$},[t.createTextVNode("取消")]),t.createVNode("button",{type:"button",class:"btn btn-primary",onClick:i},[t.createTextVNode("确定")])]):""])}}),j=t.defineComponent({name:"FBindingSelector",props:_,emits:["selected","bindingTypeChanged"],setup(e,o){var M,O;const l='<i class="f-icon f-icon-lookup"></i>',d=t.ref(e.bindingData),c=t.ref(e.data),y=t.ref(),a=t.ref(((M=e.modelValue)==null?void 0:M.type)||"Form"),m=t.ref((O=e.modelValue)==null?void 0:O.path),{updateViewModel:F,updateComponentSchema:T,checkFieldValiation:V,clearExpresssionConfig:w}=ne(e);function S(f){d.value=f}function v(f){a.value=f}function N(f){m.value=f.path}function I(){return t.createVNode(U,{ref:y,data:c.value,onSelected:S,modelValue:e.modelValue,idField:e.idField,bindingData:d.value,onBindingTypeChange:v,editorParams:e.editorParams,bindingType:e.bindingType,showCustomFooter:!1},null)}function E(){return!!V(d.value,a.value)}const k={title:e.title,fitContent:!1,height:e.modalHeight,width:e.modalWidth,buttons:[{name:"cancel",text:"取消",class:"btn btn-secondary",handle:f=>(d.value=[],!0)},{name:"accept",text:"确定",class:"btn btn-primary",handle:f=>{if(!E())return!1;F(d.value[0],a.value),w(d.value[0]);const x=T(d.value[0],a.value);return N(x),e.onFieldSelected&&typeof e.onFieldSelected=="function"&&e.onFieldSelected(x,void 0,d.value[0]),!0}}],resizeable:!1,draggable:!0};return()=>t.createVNode(L,{modelValue:m.value,"onUpdate:modelValue":f=>m.value=f,editable:!1,disabled:e.disabled,readonly:e.readonly,inputType:"text",enableClear:!1,buttonContent:l,buttonBehavior:"Modal",modalOptions:k},{default:()=>[t.createVNode("div",{class:"h-100 d-flex flex-column"},[I()])]})}});j.install=e=>{e.component(j.name,j),e.component(U.name,U)},j.register=(e,o,l,d)=>{e["binding-selector"]=j,o["binding-selector"]=ee},p.BindingSelector=j,p.FBindingSelectorContainer=U,p.bindingSelectorProps=_,p.bindingTypes=D,p.default=j,p.fieldColumns=Y,p.propsResolver=ee,p.variableColumns=z,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});