(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b466951","chunk-2d0cbcb0"],{"4ad1":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return c}));var a=n("c621"),l=n("3af9"),o=n("d5fa"),i=n("7a23");const r=Object.assign(Object.assign({},l["Rb"]),{borderWidth:"8px",borderLeftWidth:"8px",borderRightWidth:"8px",borderRadius:"4px",top:"-8px",left:"-8px",width:"calc(100% + 16px)",height:"calc(100% + 16px)"});var c=Object(i["defineComponent"])({name:"DesignerTableField",mixins:[l["u"]],props:Object.assign(Object.assign({},l["v"]),{label:{type:String}}),components:{OioIcon:o["OioIcon"]},setup(e){const t=()=>{const t=e.currentInstance;if(!t)return;const o=l["R"].fetchOptions(t);o.title=a["CastHelper"].cast(Object(i["computed"])(()=>{var t,l,o,i;return n.value||(null===(l=null===(t=e.currentInstance)||void 0===t?void 0:t.element)||void 0===l?void 0:l.title)||(null===(i=null===(o=e.currentInstance)||void 0===o?void 0:o.currentWidget)||void 0===i?void 0:i.widgetDisplayName)||Object(a["translateValueByKey"])("模型字段")})),o.normalMaskStyle=r,o.toolbarStyle=a["CastHelper"].cast(Object(i["computed"])(()=>0===e.currentIndex?{top:"-16px",left:"-8px"}:{top:"-16px",right:"-8px"})),o.removeCondition=()=>{var t,n,a;const o=null===(a=null===(n=null===(t=e.currentInstance)||void 0===t?void 0:t.children)||void 0===n?void 0:n[0])||void 0===a?void 0:a.element;return!(!o||o.bizType!==l["B"].VIEW)},o.removeMessage=Object(a["translateValueByKey"])("当前字段为展开行关联字段，删除后展开行失效，请确认")};Object(l["md"])(t);const n=Object(i["computed"])(()=>{const t=a["Optional"].ofNullable(e.currentInstance).map(e=>e.element);return e.label||t.map(e=>e.properties).map(e=>e.label).orElseGet(()=>t.map(e=>e.widgetData).map(e=>e.displayName||e.name).orElse(""))}),o=Object(i["computed"])(()=>{const t=a["Optional"].ofNullable(e.currentInstance).map(e=>e.element);return n.value&&t.map(e=>e.properties).map(e=>a["BooleanHelper"].toBoolean(e.independentlyEditable)).orElse(!1)}),c=Object(i["computed"])(()=>a["Optional"].ofNullable(e.currentInstance).map(e=>l["R"].fetchProperties(e)).map(e=>a["BooleanHelper"].toBoolean(e.invisible)).orElse(void 0));return{label:n,independentlyEditable:o,invisible:c}}});const d=["id"],s=["title"],p={class:"designer-table-field-label"};function b(e,t,n,a,l,o){const r=Object(i["resolveComponent"])("oio-icon");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{id:e.fetchInstanceDomId(e.currentInstance.id),class:Object(i["normalizeClass"])(["designer-table-field",e.invisible?"designer-table-field-invisible":""])},[Object(i["createElementVNode"])("span",{class:Object(i["normalizeClass"])([!e.currentInstance.element.widgetData&&"designer-table-field-error"]),title:e.label},[Object(i["createElementVNode"])("span",p,[e.independentlyEditable?(Object(i["openBlock"])(),Object(i["createBlock"])(r,{key:0,color:"var(--oio-font-color)",icon:"oinone-biaodanye"})):Object(i["createCommentVNode"])("v-if",!0),Object(i["createElementVNode"])("span",null,Object(i["toDisplayString"])(e.currentInstance.element.widgetData?e.label:e.$translate("未设置字段")),1)])],10,s)],10,d)}c.render=b,c.__file="src/view/component/designer-draggable/component/element/DesignerTableField.vue"},ba58:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r}));var a=n("c621"),l=n("3af9"),o=n("7a23"),i=n("4ad1"),r=(n("d5fa"),Object(o["defineComponent"])({name:"DesignerTableRangeField",mixins:[l["u"]],components:{DesignerTableField:i["default"]},props:Object.assign({},l["v"]),setup(e){const t=Object(o["computed"])(()=>a["Optional"].ofNullable(e.currentInstance).map(e=>l["R"].fetchProperties(e)).map(e=>e.label).orElseGet(()=>a["Optional"].ofNullable(e.currentInstance).map(e=>e.element).map(e=>e.widgetData).map(e=>{const t=e.startMetadata,n=Object(a["translateValueByKey"])((null===t||void 0===t?void 0:t.displayName)||(null===t||void 0===t?void 0:t.name)),l=e.endMetadata,o=Object(a["translateValueByKey"])((null===l||void 0===l?void 0:l.displayName)||(null===l||void 0===l?void 0:l.name));if(n&&o)return`${n}-${o}`}).orElse("")));return Object(o["watch"])(()=>{var t;const{startMetadata:n,endMetadata:a}=(null===(t=e.currentInstance)||void 0===t?void 0:t.element.widgetData)||{};return[!!n,!!a]},()=>{const t=e.currentInstance;if(t&&!t.children.length){const e=t.element.widgetData;if(e){const{startMetadata:n,endMetadata:a}=e;n&&a&&(l["R"].add(t,l["wb"].onlyCreateWidgetInstanceByField(t,n)),l["R"].add(t,l["wb"].onlyCreateWidgetInstanceByField(t,a)))}}},{deep:!0}),{label:t}},render(){return Object(o["createVNode"])(i["default"],Object.assign(Object.assign({},a["PropRecordHelper"].convert(l["v"],a["CastHelper"].cast(this))),{label:this.label}))}}));r.__file="src/view/component/designer-draggable/component/element/DesignerTableRangeField.vue"}}]);