cnhis-design-vue 3.1.46-release.4 → 3.1.47-beta.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/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/form-config/index.d.ts +67 -16
- package/es/components/form-config/src/FormConfig.vue.d.ts +67 -16
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -4
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +29 -7
- package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +1 -1
- package/es/components/form-render/index.d.ts +5 -4
- package/es/components/form-render/src/FormRender.vue.d.ts +4 -3
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +5 -4
- package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +16 -2
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +32 -4
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +3 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +16 -2
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useOperationalForm.d.ts +1 -1
- package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
- package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +5 -0
- package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +8 -1
- package/es/components/form-render/src/types/index.d.ts +1 -7
- package/es/components/iho-table/index.d.ts +12 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +12 -0
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +5 -3
- package/es/components/iho-table/src/utils/index.d.ts +1 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +14 -12
- package/es/components/info-header/src/InfoHeader.vue.d.ts +14 -12
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +5 -4
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -4
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
- package/es/components/select-person/index.d.ts +153 -14
- package/es/components/select-person/src/SearchMultiple.vue2.js +1 -1
- package/es/components/select-person/src/SearchOrgAndStaff.vue.d.ts +106 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue.js +1 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +150 -12
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/types/enums.d.ts +4 -0
- package/es/components/select-person/src/types/enums.js +1 -0
- package/es/components/select-person/src/utils/index.d.ts +1 -1
- package/es/components/select-person/src/utils/index.js +1 -1
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +13 -5
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +13 -5
- package/es/components/steps-wheel/index.d.ts +16 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +16 -0
- package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +6 -0
- package/es/shared/utils/business.d.ts +6 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/tapableLess.d.ts +28 -0
- package/es/shared/utils/tapableLess.js +1 -0
- package/package.json +2 -2
- package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
- package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
- package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
- package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
- package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
- package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as n}from"./dialog.js";import{getFileUrl as s,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{format as l}from"date-fns";const d=t.create({timeout:1e3,withCredentials:!1}),h=`${window.location.protocol}//${window.location.host}`,c=`${h}/fdp-api/print/assembly/printIReport`,u=`${h}/bi-api/reprot/print/open/client/getRemote`,m=`${h}/printService/file`;let p=null;class w{constructor(){var t;if(this.webview=null,this.dialog=new i,this.dialogPreview=new n,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.CMonitor=null,this.messageHandlerQueue=[],p)return p;p=this;const e=window;if(this.CMonitor=e.$CMonitor,this.webview=null==(t=e.chrome)?void 0:t.webview,this.webview){this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler);try{this.webview.postMessage({exec:"config",data:""})}catch(t){const e="当前浏览器版本不支持获取配置接口";this._handleMonitorNotify(e),console.log("非封装浏览器或者"+e)}}}messageHandler(t){var e;if(console.log("打印事件message",t),!t)return this._handleMonitorNotify("接收到空的浏览器事件,"+t),console.log("当前回执",t,"接收到空的浏览器事件");let i;try{i=JSON.parse(t.data||"{}")}catch(e){console.log("解析e.data失败,"+e),this._handleMonitorNotify("解析e.data失败,"+t)}if(["print","pdf"].includes(null==i?void 0:i.cmd)){console.log("打印命令执行了",i);const e=this.messageHandlerQueue.shift();if(!e)return console.log("当前回执",t,"没有可用的handler");const{resolve:n,reject:s}=e;try{n(i.res||"")}catch(t){s(t)}}else"config"===(null==i?void 0:i.exec)&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||"")}async postMessage(t){if(!this.webview)return Promise.reject();const e=Date.now().toString();return Promise.race([new Promise(((i,n)=>{this.messageHandlerQueue.push({resolve:i,reject:n,id:e}),this.webview.postMessage(t)})),new Promise(((t,i)=>{setTimeout((()=>{const t=this.messageHandlerQueue.findIndex((t=>t.id===e));t>-1&&this.messageHandlerQueue.splice(t,1),i({type:"timeout"})}),5e3)}))])}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{d({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}}):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:n(i)}):d({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[n]}).then((({data:t})=>t));function n(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleMonitorNotify(t){var e,i;null==(i=null==(e=this.CMonitor)?void 0:e.notify)||i.call(e,{name:"custom_info",message:t,businessName:"打印sdk"})}_handleResult(t,e){if(!t){const t="打印命令返回空数据";return this._handleMonitorNotify(""),null==e||e({type:"printError",message:t,result:!1,errinfo:t}),!1}if("success"!==t.result){const i=t.message||t.Message;this._handleMonitorNotify(i);const n={type:"printError",message:i,result:t.result,errinfo:t.errinfo};return null==e||e(n),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,n){const s={templateId:t,formatId:e,params:i,cmdid:"7"},r=await this._queryServicesPrint(s);return this._handleQueryPrintDataResult(r,e,n)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:n,print:s,printdlgshow:r="
|
|
1
|
+
import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as n}from"./dialog.js";import{getFileUrl as s,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{format as l}from"date-fns";const d=t.create({timeout:1e3,withCredentials:!1}),h=`${window.location.protocol}//${window.location.host}`,c=`${h}/fdp-api/print/assembly/printIReport`,u=`${h}/bi-api/reprot/print/open/client/getRemote`,m=`${h}/printService/file`;let p=null;class w{constructor(){var t;if(this.webview=null,this.dialog=new i,this.dialogPreview=new n,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.CMonitor=null,this.messageHandlerQueue=[],p)return p;p=this;const e=window;if(this.CMonitor=e.$CMonitor,this.webview=null==(t=e.chrome)?void 0:t.webview,this.webview){this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler);try{this.webview.postMessage({exec:"config",data:""})}catch(t){const e="当前浏览器版本不支持获取配置接口";this._handleMonitorNotify(e),console.log("非封装浏览器或者"+e)}}}messageHandler(t){var e;if(console.log("打印事件message",t),!t)return this._handleMonitorNotify("接收到空的浏览器事件,"+t),console.log("当前回执",t,"接收到空的浏览器事件");let i;try{i=JSON.parse(t.data||"{}")}catch(e){console.log("解析e.data失败,"+e),this._handleMonitorNotify("解析e.data失败,"+t)}if(["print","pdf"].includes(null==i?void 0:i.cmd)){console.log("打印命令执行了",i);const e=this.messageHandlerQueue.shift();if(!e)return console.log("当前回执",t,"没有可用的handler");const{resolve:n,reject:s}=e;try{n(i.res||"")}catch(t){s(t)}}else"config"===(null==i?void 0:i.exec)&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||"")}async postMessage(t){if(!this.webview)return Promise.reject();const e=Date.now().toString();return Promise.race([new Promise(((i,n)=>{this.messageHandlerQueue.push({resolve:i,reject:n,id:e}),this.webview.postMessage(t)})),new Promise(((t,i)=>{setTimeout((()=>{const t=this.messageHandlerQueue.findIndex((t=>t.id===e));t>-1&&this.messageHandlerQueue.splice(t,1),i({type:"timeout"})}),5e3)}))])}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{d({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}}):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:n(i)}):d({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[n]}).then((({data:t})=>t));function n(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleMonitorNotify(t){var e,i;null==(i=null==(e=this.CMonitor)?void 0:e.notify)||i.call(e,{name:"custom_info",message:t,businessName:"打印sdk"})}_handleResult(t,e){if(!t){const t="打印命令返回空数据";return this._handleMonitorNotify(""),null==e||e({type:"printError",message:t,result:!1,errinfo:t}),!1}if("success"!==t.result){const i=t.message||t.Message;this._handleMonitorNotify(i);const n={type:"printError",message:i,result:t.result,errinfo:t.errinfo};return null==e||e(n),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,n){const s={templateId:t,formatId:e,params:i,cmdid:"7"},r=await this._queryServicesPrint(s);return this._handleQueryPrintDataResult(r,e,n)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:n,print:s,printdlgshow:r="0",nobillnode:a="1",btnprint:o="1"}){const d={templateId:t,formatId:e,params:i,cmdid:n,nobillnode:a,printdlgshow:r,btnprint:o};if(s){try{s=JSON.parse(s)}catch(t){}d.print=s}else if(this.isRemote){const t=l(new Date,"yyyyMMddHHmmss");d.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return await this._queryServicesPrint(d)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:n}){const s={};let r={};try{r=Object.assign({},s,JSON.parse(i))}catch(t){r=s}const a={templateId:t,formatId:e,cmdid:"9",token:n,params:JSON.stringify(r)};return await this._queryServicesPrint(a)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await d({method:"get",url:u})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=h+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await d({method:"post",url:c,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,n=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),a=n[n.length-2],o=n[n.length-1],l=await s(`${m}/${a}/${o}`),d=r(null,e,l);if("preview"===e)return d}}async preview({templateId:t,formatId:e,params:i="",btnprint:n},s,l){if(a(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==l?void 0:l("获取文件失败!");const n=r(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,n),void(null==s||s({file:t}))}await this._queryProxyOrigin();const d=await this._testConnection();if(!this._handleResultTest(d,l))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",btnprint:n}),a=this._handleResult(r,l);if(!a)return!1;if(this.isRemote){const t=await this._browserPrint(a,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}null==s||s(a)}catch(t){const e="预览失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e}:{message:e};null==l||l(i),this._handleMonitorNotify(i)}}async printDirect({templateId:t,formatId:e,params:i="",print:n,printdlgshow:s,nobillnode:o,isDownloadFile:l=!0},d,h,c="printDirect"){if(a(e)){const t=await this._queryPrintFile(e,i);return t?(r(t,c),void(null==d||d({file:t}))):null==h?void 0:h("获取文件失败!")}await this._queryProxyOrigin();const u=await this._testConnection();if(!this._handleResultTest(u,h))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:"7",print:n,printdlgshow:s,nobillnode:o}),a=this._handleResult(r,h);if(!a)return!1;l&&["downloadPDF"].includes(c)&&await this._browserPrint(a,c),null==d||d(a)}catch(t){const e="printDirect"===c?"打印失败":"下载失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e}:{message:e};null==h||h(i),this._handleMonitorNotify(i)}}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):d.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}downloadPDF(t,i,n){if(this.webview&&this.downloadPath&&(Reflect.has(t,"print")||Reflect.set(t,"print",{print:"1",type:"1"}),!t.print.filename)){let e=l(new Date,"yyyyMMddHHmmss");t.customFileName&&(e=`${e}${t.customFileName}`),t.print.filename=`${this.downloadPath}/${e}`.replace(/\\/g,"/")}this.printDirect(t,(async s=>{if(s||n(null),a(t.formatId))return i(s);const r=this,o=await async function(t){const i=[],n=JSON.parse(t);if(!e(n))return await r._downloadPDF("");if(1===n.length)return await r._downloadPDF(n[0]||"");for(let t=0,e=n.length;t<e;t++)i.push(await r._downloadPDF(n[t]||""));return i}(s.filedir);i(o,s)}),(t=>n(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this.queryPrintData({templateId:t,formatId:e,params:i},void 0,s);if(!a)return!1;const o=this.printFileData({formatId:e,file:a.file,printerName:a.printerName},void 0,s);if(!o)return!1;n&&n(o)}async queryPrintData({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventQueryPrintData(t,e,i,s);return!!a&&(n&&n(a),a)}async printFileData({formatId:t,file:e,printerName:i="Default"},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,s);return!!o&&(n&&n(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:n},s,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:n}),l=this._handleResult(o,r);if(!l)return!1;s&&s(l)}async addPrintFormat({templateId:t,params:e,token:i},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,s);if(!o)return!1;n&&n(o)}}export{w as Print};
|
|
@@ -134,15 +134,22 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
134
134
|
name?: string | undefined;
|
|
135
135
|
render_key?: string[] | undefined;
|
|
136
136
|
search_key?: string[] | undefined;
|
|
137
|
+
value_key?: string | undefined;
|
|
138
|
+
queryParams?: string[] | undefined;
|
|
137
139
|
primary_key?: string | undefined;
|
|
138
140
|
type?: string | undefined;
|
|
139
|
-
value_key?: string | undefined;
|
|
140
141
|
level_key?: string | undefined;
|
|
141
142
|
link_key?: string | undefined;
|
|
142
143
|
link_key_split?: string | undefined;
|
|
143
144
|
show_key?: string[] | undefined;
|
|
144
145
|
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
145
146
|
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
147
|
+
setting?: {
|
|
148
|
+
cascading?: {
|
|
149
|
+
'form.name': string;
|
|
150
|
+
value: string;
|
|
151
|
+
}[] | undefined;
|
|
152
|
+
} | undefined;
|
|
146
153
|
} | undefined;
|
|
147
154
|
open?: {
|
|
148
155
|
value?: any;
|
|
@@ -1847,15 +1854,22 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1847
1854
|
name?: string | undefined;
|
|
1848
1855
|
render_key?: string[] | undefined;
|
|
1849
1856
|
search_key?: string[] | undefined;
|
|
1857
|
+
value_key?: string | undefined;
|
|
1858
|
+
queryParams?: string[] | undefined;
|
|
1850
1859
|
primary_key?: string | undefined;
|
|
1851
1860
|
type?: string | undefined;
|
|
1852
|
-
value_key?: string | undefined;
|
|
1853
1861
|
level_key?: string | undefined;
|
|
1854
1862
|
link_key?: string | undefined;
|
|
1855
1863
|
link_key_split?: string | undefined;
|
|
1856
1864
|
show_key?: string[] | undefined;
|
|
1857
1865
|
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
1858
1866
|
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
1867
|
+
setting?: {
|
|
1868
|
+
cascading?: {
|
|
1869
|
+
'form.name': string;
|
|
1870
|
+
value: string;
|
|
1871
|
+
}[] | undefined;
|
|
1872
|
+
} | undefined;
|
|
1859
1873
|
} | undefined;
|
|
1860
1874
|
open?: {
|
|
1861
1875
|
value?: any;
|
|
@@ -3484,7 +3498,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3484
3498
|
validate: import("../../../es/shared/types").Func<any[], any>;
|
|
3485
3499
|
} | undefined>;
|
|
3486
3500
|
transform: (fieldList: import("./src/types").FormConfigItem[]) => import("./src/types").FormConfigItem[];
|
|
3487
|
-
inverseTransform: (fieldList: import("./src/types").FormConfigItem[]) => import("./src/types").FormConfigItem[];
|
|
3501
|
+
inverseTransform: (fieldList: import("./src/types").FormConfigItem[], withOriginalSetting: boolean) => import("./src/types").FormConfigItem[];
|
|
3488
3502
|
extraValueRef: import("vue").WritableComputedRef<any>;
|
|
3489
3503
|
_extraOptions: import("vue").Ref<{
|
|
3490
3504
|
key: string;
|
|
@@ -3569,15 +3583,22 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3569
3583
|
name?: string | undefined;
|
|
3570
3584
|
render_key?: string[] | undefined;
|
|
3571
3585
|
search_key?: string[] | undefined;
|
|
3586
|
+
value_key?: string | undefined;
|
|
3587
|
+
queryParams?: string[] | undefined;
|
|
3572
3588
|
primary_key?: string | undefined;
|
|
3573
3589
|
type?: string | undefined;
|
|
3574
|
-
value_key?: string | undefined;
|
|
3575
3590
|
level_key?: string | undefined;
|
|
3576
3591
|
link_key?: string | undefined;
|
|
3577
3592
|
link_key_split?: string | undefined;
|
|
3578
3593
|
show_key?: string[] | undefined;
|
|
3579
3594
|
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
3580
3595
|
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
3596
|
+
setting?: {
|
|
3597
|
+
cascading?: {
|
|
3598
|
+
'form.name': string;
|
|
3599
|
+
value: string;
|
|
3600
|
+
}[] | undefined;
|
|
3601
|
+
} | undefined;
|
|
3581
3602
|
} | undefined;
|
|
3582
3603
|
open?: {
|
|
3583
3604
|
value?: any;
|
|
@@ -5282,15 +5303,22 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
5282
5303
|
name?: string | undefined;
|
|
5283
5304
|
render_key?: string[] | undefined;
|
|
5284
5305
|
search_key?: string[] | undefined;
|
|
5306
|
+
value_key?: string | undefined;
|
|
5307
|
+
queryParams?: string[] | undefined;
|
|
5285
5308
|
primary_key?: string | undefined;
|
|
5286
5309
|
type?: string | undefined;
|
|
5287
|
-
value_key?: string | undefined;
|
|
5288
5310
|
level_key?: string | undefined;
|
|
5289
5311
|
link_key?: string | undefined;
|
|
5290
5312
|
link_key_split?: string | undefined;
|
|
5291
5313
|
show_key?: string[] | undefined;
|
|
5292
5314
|
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
5293
5315
|
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
5316
|
+
setting?: {
|
|
5317
|
+
cascading?: {
|
|
5318
|
+
'form.name': string;
|
|
5319
|
+
value: string;
|
|
5320
|
+
}[] | undefined;
|
|
5321
|
+
} | undefined;
|
|
5294
5322
|
} | undefined;
|
|
5295
5323
|
open?: {
|
|
5296
5324
|
value?: any;
|
|
@@ -7132,7 +7160,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7132
7160
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
7133
7161
|
};
|
|
7134
7162
|
operationalForm: {
|
|
7135
|
-
type: import("vue").PropType<import("
|
|
7163
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
7136
7164
|
};
|
|
7137
7165
|
linebarAutoHidden: {
|
|
7138
7166
|
type: BooleanConstructor;
|
|
@@ -7272,7 +7300,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7272
7300
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
7273
7301
|
};
|
|
7274
7302
|
operationalForm: {
|
|
7275
|
-
type: import("vue").PropType<import("
|
|
7303
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
7276
7304
|
};
|
|
7277
7305
|
linebarAutoHidden: {
|
|
7278
7306
|
type: BooleanConstructor;
|
|
@@ -7333,6 +7361,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7333
7361
|
triggerAllReactionsHandler: () => void;
|
|
7334
7362
|
operationalFormHandler: (field: string) => void;
|
|
7335
7363
|
triggerAllOperationalFormHandler: () => void;
|
|
7364
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
7336
7365
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
7337
7366
|
[key: symbol]: any;
|
|
7338
7367
|
[key: `x-${string}`]: any;
|
|
@@ -7448,7 +7477,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7448
7477
|
"x-read-pretty"?: boolean | undefined;
|
|
7449
7478
|
"x-compile-omitted"?: string[] | undefined;
|
|
7450
7479
|
}>>;
|
|
7451
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
7480
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
7452
7481
|
clearSpan: (uuid: string) => void;
|
|
7453
7482
|
exposeEvent: {
|
|
7454
7483
|
validate(path?: string): Promise<void>;
|
|
@@ -7740,7 +7769,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7740
7769
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
7741
7770
|
};
|
|
7742
7771
|
operationalForm: {
|
|
7743
|
-
type: import("vue").PropType<import("
|
|
7772
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
7744
7773
|
};
|
|
7745
7774
|
linebarAutoHidden: {
|
|
7746
7775
|
type: BooleanConstructor;
|
|
@@ -7970,15 +7999,22 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7970
7999
|
name?: string | undefined;
|
|
7971
8000
|
render_key?: string[] | undefined;
|
|
7972
8001
|
search_key?: string[] | undefined;
|
|
8002
|
+
value_key?: string | undefined;
|
|
8003
|
+
queryParams?: string[] | undefined;
|
|
7973
8004
|
primary_key?: string | undefined;
|
|
7974
8005
|
type?: string | undefined;
|
|
7975
|
-
value_key?: string | undefined;
|
|
7976
8006
|
level_key?: string | undefined;
|
|
7977
8007
|
link_key?: string | undefined;
|
|
7978
8008
|
link_key_split?: string | undefined;
|
|
7979
8009
|
show_key?: string[] | undefined;
|
|
7980
8010
|
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
7981
8011
|
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
8012
|
+
setting?: {
|
|
8013
|
+
cascading?: {
|
|
8014
|
+
'form.name': string;
|
|
8015
|
+
value: string;
|
|
8016
|
+
}[] | undefined;
|
|
8017
|
+
} | undefined;
|
|
7982
8018
|
} | undefined;
|
|
7983
8019
|
open?: {
|
|
7984
8020
|
value?: any;
|
|
@@ -9694,15 +9730,22 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
9694
9730
|
name?: string | undefined;
|
|
9695
9731
|
render_key?: string[] | undefined;
|
|
9696
9732
|
search_key?: string[] | undefined;
|
|
9733
|
+
value_key?: string | undefined;
|
|
9734
|
+
queryParams?: string[] | undefined;
|
|
9697
9735
|
primary_key?: string | undefined;
|
|
9698
9736
|
type?: string | undefined;
|
|
9699
|
-
value_key?: string | undefined;
|
|
9700
9737
|
level_key?: string | undefined;
|
|
9701
9738
|
link_key?: string | undefined;
|
|
9702
9739
|
link_key_split?: string | undefined;
|
|
9703
9740
|
show_key?: string[] | undefined;
|
|
9704
9741
|
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
9705
9742
|
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
9743
|
+
setting?: {
|
|
9744
|
+
cascading?: {
|
|
9745
|
+
'form.name': string;
|
|
9746
|
+
value: string;
|
|
9747
|
+
}[] | undefined;
|
|
9748
|
+
} | undefined;
|
|
9706
9749
|
} | undefined;
|
|
9707
9750
|
open?: {
|
|
9708
9751
|
value?: any;
|
|
@@ -11391,15 +11434,22 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
11391
11434
|
name?: string | undefined;
|
|
11392
11435
|
render_key?: string[] | undefined;
|
|
11393
11436
|
search_key?: string[] | undefined;
|
|
11437
|
+
value_key?: string | undefined;
|
|
11438
|
+
queryParams?: string[] | undefined;
|
|
11394
11439
|
primary_key?: string | undefined;
|
|
11395
11440
|
type?: string | undefined;
|
|
11396
|
-
value_key?: string | undefined;
|
|
11397
11441
|
level_key?: string | undefined;
|
|
11398
11442
|
link_key?: string | undefined;
|
|
11399
11443
|
link_key_split?: string | undefined;
|
|
11400
11444
|
show_key?: string[] | undefined;
|
|
11401
11445
|
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
11402
11446
|
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
11447
|
+
setting?: {
|
|
11448
|
+
cascading?: {
|
|
11449
|
+
'form.name': string;
|
|
11450
|
+
value: string;
|
|
11451
|
+
}[] | undefined;
|
|
11452
|
+
} | undefined;
|
|
11403
11453
|
} | undefined;
|
|
11404
11454
|
open?: {
|
|
11405
11455
|
value?: any;
|
|
@@ -13159,7 +13209,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
13159
13209
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
13160
13210
|
};
|
|
13161
13211
|
operationalForm: {
|
|
13162
|
-
type: import("vue").PropType<import("
|
|
13212
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
13163
13213
|
};
|
|
13164
13214
|
linebarAutoHidden: {
|
|
13165
13215
|
type: BooleanConstructor;
|
|
@@ -13299,7 +13349,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
13299
13349
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
13300
13350
|
};
|
|
13301
13351
|
operationalForm: {
|
|
13302
|
-
type: import("vue").PropType<import("
|
|
13352
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
13303
13353
|
};
|
|
13304
13354
|
linebarAutoHidden: {
|
|
13305
13355
|
type: BooleanConstructor;
|
|
@@ -13360,6 +13410,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
13360
13410
|
triggerAllReactionsHandler: () => void;
|
|
13361
13411
|
operationalFormHandler: (field: string) => void;
|
|
13362
13412
|
triggerAllOperationalFormHandler: () => void;
|
|
13413
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
13363
13414
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
13364
13415
|
[key: symbol]: any;
|
|
13365
13416
|
[key: `x-${string}`]: any;
|
|
@@ -13475,7 +13526,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
13475
13526
|
"x-read-pretty"?: boolean | undefined;
|
|
13476
13527
|
"x-compile-omitted"?: string[] | undefined;
|
|
13477
13528
|
}>>;
|
|
13478
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
13529
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
13479
13530
|
clearSpan: (uuid: string) => void;
|
|
13480
13531
|
exposeEvent: {
|
|
13481
13532
|
validate(path?: string): Promise<void>;
|
|
@@ -13767,7 +13818,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
13767
13818
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
13768
13819
|
};
|
|
13769
13820
|
operationalForm: {
|
|
13770
|
-
type: import("vue").PropType<import("
|
|
13821
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
13771
13822
|
};
|
|
13772
13823
|
linebarAutoHidden: {
|
|
13773
13824
|
type: BooleanConstructor;
|
|
@@ -136,15 +136,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
136
136
|
name?: string | undefined;
|
|
137
137
|
render_key?: string[] | undefined;
|
|
138
138
|
search_key?: string[] | undefined;
|
|
139
|
+
value_key?: string | undefined;
|
|
140
|
+
queryParams?: string[] | undefined;
|
|
139
141
|
primary_key?: string | undefined;
|
|
140
142
|
type?: string | undefined;
|
|
141
|
-
value_key?: string | undefined;
|
|
142
143
|
level_key?: string | undefined;
|
|
143
144
|
link_key?: string | undefined;
|
|
144
145
|
link_key_split?: string | undefined;
|
|
145
146
|
show_key?: string[] | undefined;
|
|
146
147
|
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
147
148
|
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
149
|
+
setting?: {
|
|
150
|
+
cascading?: {
|
|
151
|
+
'form.name': string;
|
|
152
|
+
value: string;
|
|
153
|
+
}[] | undefined;
|
|
154
|
+
} | undefined;
|
|
148
155
|
} | undefined;
|
|
149
156
|
open?: {
|
|
150
157
|
value?: any;
|
|
@@ -1849,15 +1856,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1849
1856
|
name?: string | undefined;
|
|
1850
1857
|
render_key?: string[] | undefined;
|
|
1851
1858
|
search_key?: string[] | undefined;
|
|
1859
|
+
value_key?: string | undefined;
|
|
1860
|
+
queryParams?: string[] | undefined;
|
|
1852
1861
|
primary_key?: string | undefined;
|
|
1853
1862
|
type?: string | undefined;
|
|
1854
|
-
value_key?: string | undefined;
|
|
1855
1863
|
level_key?: string | undefined;
|
|
1856
1864
|
link_key?: string | undefined;
|
|
1857
1865
|
link_key_split?: string | undefined;
|
|
1858
1866
|
show_key?: string[] | undefined;
|
|
1859
1867
|
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
1860
1868
|
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
1869
|
+
setting?: {
|
|
1870
|
+
cascading?: {
|
|
1871
|
+
'form.name': string;
|
|
1872
|
+
value: string;
|
|
1873
|
+
}[] | undefined;
|
|
1874
|
+
} | undefined;
|
|
1861
1875
|
} | undefined;
|
|
1862
1876
|
open?: {
|
|
1863
1877
|
value?: any;
|
|
@@ -3486,7 +3500,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3486
3500
|
validate: Func;
|
|
3487
3501
|
} | undefined>;
|
|
3488
3502
|
transform: (fieldList: FormConfigItem[]) => FormConfigItem[];
|
|
3489
|
-
inverseTransform: (fieldList: FormConfigItem[]) => FormConfigItem[];
|
|
3503
|
+
inverseTransform: (fieldList: FormConfigItem[], withOriginalSetting: boolean) => FormConfigItem[];
|
|
3490
3504
|
extraValueRef: import("vue").WritableComputedRef<any>;
|
|
3491
3505
|
_extraOptions: import("vue").Ref<{
|
|
3492
3506
|
key: string;
|
|
@@ -3571,15 +3585,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3571
3585
|
name?: string | undefined;
|
|
3572
3586
|
render_key?: string[] | undefined;
|
|
3573
3587
|
search_key?: string[] | undefined;
|
|
3588
|
+
value_key?: string | undefined;
|
|
3589
|
+
queryParams?: string[] | undefined;
|
|
3574
3590
|
primary_key?: string | undefined;
|
|
3575
3591
|
type?: string | undefined;
|
|
3576
|
-
value_key?: string | undefined;
|
|
3577
3592
|
level_key?: string | undefined;
|
|
3578
3593
|
link_key?: string | undefined;
|
|
3579
3594
|
link_key_split?: string | undefined;
|
|
3580
3595
|
show_key?: string[] | undefined;
|
|
3581
3596
|
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
3582
3597
|
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
3598
|
+
setting?: {
|
|
3599
|
+
cascading?: {
|
|
3600
|
+
'form.name': string;
|
|
3601
|
+
value: string;
|
|
3602
|
+
}[] | undefined;
|
|
3603
|
+
} | undefined;
|
|
3583
3604
|
} | undefined;
|
|
3584
3605
|
open?: {
|
|
3585
3606
|
value?: any;
|
|
@@ -5284,15 +5305,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5284
5305
|
name?: string | undefined;
|
|
5285
5306
|
render_key?: string[] | undefined;
|
|
5286
5307
|
search_key?: string[] | undefined;
|
|
5308
|
+
value_key?: string | undefined;
|
|
5309
|
+
queryParams?: string[] | undefined;
|
|
5287
5310
|
primary_key?: string | undefined;
|
|
5288
5311
|
type?: string | undefined;
|
|
5289
|
-
value_key?: string | undefined;
|
|
5290
5312
|
level_key?: string | undefined;
|
|
5291
5313
|
link_key?: string | undefined;
|
|
5292
5314
|
link_key_split?: string | undefined;
|
|
5293
5315
|
show_key?: string[] | undefined;
|
|
5294
5316
|
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
5295
5317
|
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
5318
|
+
setting?: {
|
|
5319
|
+
cascading?: {
|
|
5320
|
+
'form.name': string;
|
|
5321
|
+
value: string;
|
|
5322
|
+
}[] | undefined;
|
|
5323
|
+
} | undefined;
|
|
5296
5324
|
} | undefined;
|
|
5297
5325
|
open?: {
|
|
5298
5326
|
value?: any;
|
|
@@ -7134,7 +7162,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7134
7162
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
7135
7163
|
};
|
|
7136
7164
|
operationalForm: {
|
|
7137
|
-
type: PropType<import("../../../../es/
|
|
7165
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
7138
7166
|
};
|
|
7139
7167
|
linebarAutoHidden: {
|
|
7140
7168
|
type: BooleanConstructor;
|
|
@@ -7274,7 +7302,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7274
7302
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
7275
7303
|
};
|
|
7276
7304
|
operationalForm: {
|
|
7277
|
-
type: PropType<import("../../../../es/
|
|
7305
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
7278
7306
|
};
|
|
7279
7307
|
linebarAutoHidden: {
|
|
7280
7308
|
type: BooleanConstructor;
|
|
@@ -7335,6 +7363,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7335
7363
|
triggerAllReactionsHandler: () => void;
|
|
7336
7364
|
operationalFormHandler: (field: string) => void;
|
|
7337
7365
|
triggerAllOperationalFormHandler: () => void;
|
|
7366
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
7338
7367
|
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
7339
7368
|
[key: symbol]: any;
|
|
7340
7369
|
[key: `x-${string}`]: any;
|
|
@@ -7450,7 +7479,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7450
7479
|
"x-read-pretty"?: boolean | undefined;
|
|
7451
7480
|
"x-compile-omitted"?: string[] | undefined;
|
|
7452
7481
|
}>>;
|
|
7453
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
7482
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
7454
7483
|
clearSpan: (uuid: string) => void;
|
|
7455
7484
|
exposeEvent: {
|
|
7456
7485
|
validate(path?: string): Promise<void>;
|
|
@@ -7742,7 +7771,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7742
7771
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
7743
7772
|
};
|
|
7744
7773
|
operationalForm: {
|
|
7745
|
-
type: PropType<import("../../../../es/
|
|
7774
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
7746
7775
|
};
|
|
7747
7776
|
linebarAutoHidden: {
|
|
7748
7777
|
type: BooleanConstructor;
|
|
@@ -7972,15 +8001,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7972
8001
|
name?: string | undefined;
|
|
7973
8002
|
render_key?: string[] | undefined;
|
|
7974
8003
|
search_key?: string[] | undefined;
|
|
8004
|
+
value_key?: string | undefined;
|
|
8005
|
+
queryParams?: string[] | undefined;
|
|
7975
8006
|
primary_key?: string | undefined;
|
|
7976
8007
|
type?: string | undefined;
|
|
7977
|
-
value_key?: string | undefined;
|
|
7978
8008
|
level_key?: string | undefined;
|
|
7979
8009
|
link_key?: string | undefined;
|
|
7980
8010
|
link_key_split?: string | undefined;
|
|
7981
8011
|
show_key?: string[] | undefined;
|
|
7982
8012
|
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
7983
8013
|
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
8014
|
+
setting?: {
|
|
8015
|
+
cascading?: {
|
|
8016
|
+
'form.name': string;
|
|
8017
|
+
value: string;
|
|
8018
|
+
}[] | undefined;
|
|
8019
|
+
} | undefined;
|
|
7984
8020
|
} | undefined;
|
|
7985
8021
|
open?: {
|
|
7986
8022
|
value?: any;
|
|
@@ -9696,15 +9732,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9696
9732
|
name?: string | undefined;
|
|
9697
9733
|
render_key?: string[] | undefined;
|
|
9698
9734
|
search_key?: string[] | undefined;
|
|
9735
|
+
value_key?: string | undefined;
|
|
9736
|
+
queryParams?: string[] | undefined;
|
|
9699
9737
|
primary_key?: string | undefined;
|
|
9700
9738
|
type?: string | undefined;
|
|
9701
|
-
value_key?: string | undefined;
|
|
9702
9739
|
level_key?: string | undefined;
|
|
9703
9740
|
link_key?: string | undefined;
|
|
9704
9741
|
link_key_split?: string | undefined;
|
|
9705
9742
|
show_key?: string[] | undefined;
|
|
9706
9743
|
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
9707
9744
|
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
9745
|
+
setting?: {
|
|
9746
|
+
cascading?: {
|
|
9747
|
+
'form.name': string;
|
|
9748
|
+
value: string;
|
|
9749
|
+
}[] | undefined;
|
|
9750
|
+
} | undefined;
|
|
9708
9751
|
} | undefined;
|
|
9709
9752
|
open?: {
|
|
9710
9753
|
value?: any;
|
|
@@ -11393,15 +11436,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11393
11436
|
name?: string | undefined;
|
|
11394
11437
|
render_key?: string[] | undefined;
|
|
11395
11438
|
search_key?: string[] | undefined;
|
|
11439
|
+
value_key?: string | undefined;
|
|
11440
|
+
queryParams?: string[] | undefined;
|
|
11396
11441
|
primary_key?: string | undefined;
|
|
11397
11442
|
type?: string | undefined;
|
|
11398
|
-
value_key?: string | undefined;
|
|
11399
11443
|
level_key?: string | undefined;
|
|
11400
11444
|
link_key?: string | undefined;
|
|
11401
11445
|
link_key_split?: string | undefined;
|
|
11402
11446
|
show_key?: string[] | undefined;
|
|
11403
11447
|
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
11404
11448
|
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
11449
|
+
setting?: {
|
|
11450
|
+
cascading?: {
|
|
11451
|
+
'form.name': string;
|
|
11452
|
+
value: string;
|
|
11453
|
+
}[] | undefined;
|
|
11454
|
+
} | undefined;
|
|
11405
11455
|
} | undefined;
|
|
11406
11456
|
open?: {
|
|
11407
11457
|
value?: any;
|
|
@@ -13161,7 +13211,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13161
13211
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
13162
13212
|
};
|
|
13163
13213
|
operationalForm: {
|
|
13164
|
-
type: PropType<import("../../../../es/
|
|
13214
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
13165
13215
|
};
|
|
13166
13216
|
linebarAutoHidden: {
|
|
13167
13217
|
type: BooleanConstructor;
|
|
@@ -13301,7 +13351,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13301
13351
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
13302
13352
|
};
|
|
13303
13353
|
operationalForm: {
|
|
13304
|
-
type: PropType<import("../../../../es/
|
|
13354
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
13305
13355
|
};
|
|
13306
13356
|
linebarAutoHidden: {
|
|
13307
13357
|
type: BooleanConstructor;
|
|
@@ -13362,6 +13412,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13362
13412
|
triggerAllReactionsHandler: () => void;
|
|
13363
13413
|
operationalFormHandler: (field: string) => void;
|
|
13364
13414
|
triggerAllOperationalFormHandler: () => void;
|
|
13415
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
13365
13416
|
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
13366
13417
|
[key: symbol]: any;
|
|
13367
13418
|
[key: `x-${string}`]: any;
|
|
@@ -13477,7 +13528,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13477
13528
|
"x-read-pretty"?: boolean | undefined;
|
|
13478
13529
|
"x-compile-omitted"?: string[] | undefined;
|
|
13479
13530
|
}>>;
|
|
13480
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
13531
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
13481
13532
|
clearSpan: (uuid: string) => void;
|
|
13482
13533
|
exposeEvent: {
|
|
13483
13534
|
validate(path?: string): Promise<void>;
|
|
@@ -13769,7 +13820,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13769
13820
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
13770
13821
|
};
|
|
13771
13822
|
operationalForm: {
|
|
13772
|
-
type: PropType<import("../../../../es/
|
|
13823
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
13773
13824
|
};
|
|
13774
13825
|
linebarAutoHidden: {
|
|
13775
13826
|
type: BooleanConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,provide as o,ref as t,computed as
|
|
1
|
+
import{defineComponent as e,provide as o,ref as t,computed as r,toRaw as a,openBlock as i,createElementBlock as l,normalizeStyle as n,unref as s,createElementVNode as m,createVNode as f,mergeProps as u,withCtx as c,createBlock as d,isRef as p,createCommentVNode as v,createTextVNode as g}from"vue";import{useTheme as h}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isArray as _,cloneDeep as x,isFunction as y}from"lodash-es";import{uuidGenerator as C,traverse as j}from"../../../shared/utils/index.js";import L from"../../../shared/components/VueDraggable/src/vuedraggable.js";import k from"./components/FormConfigCreator.vue.js";import F from"./components/FormConfigDragDisplay.vue.js";import b from"./components/FormConfigEdit.vue.js";import M from"./components/FormConfigMaterialItem.js";import{useDataNormalize as V}from"./hooks/useDataNormalize.js";import{InjectionFormConfigEmit as E,InjectionFieldList as I,InjectionMaterialList as D,InjectionActiveFieldItem as R,FORM_CONFIG_GROUP as H}from"./constants/index.js";import"@vicons/ionicons5";import{NSelect as N}from"naive-ui";import"./utils/index.js";import{useSortableConfig as O}from"./hooks/useSortalbeConfig.js";import"./hooks/useConfigurationField.js";const A=["id"],S={class:"form-config__material"},T=m("header",{class:"form-config__materialHeader"},"物料区",-1),U={class:"form-config__displayWrapper"},w={class:"form-config__displayHeader"},B={class:"form-config__config"},z=m("header",{class:"form-config__configHeader"},"配置区",-1),W={class:"form-config__configContent"};var q=e({__name:"FormConfig",props:{maxHeight:{type:String},fieldVisitor:{type:Object},textFormatter:{type:Function},formRenderRef:{type:Object},extraMaterialList:{type:[Array,Function]}},emits:["addItem","removeItem"],setup(e,{expose:q,emit:G}){const J=e;o(E,G);const K=C(),P=h(),{getCommonConfig:Q}=O(),X=t([]);o(I,X);const Y=t([]);function Z(e){X.value.some((o=>o.key===e.key))||X.value.push(e)}o(D,Y);const $=(e,o)=>y(J.textFormatter)?J.textFormatter(e,o):o,ee=t();o(R,ee);const oe=t(),{transform:te,inverseTransform:re}=V(J),ae=r({get:()=>null,set(e){if(!e)return;const o=le.value.find((o=>o.key===e));o&&(o.__extra=!0,Y.value.push(o),G("addItem",o))}}),ie=t([]),le=r((()=>{if(!_(ie.value))return[];const e=[];return j([...Y.value,...X.value],(o=>e.push(o.key))),ie.value.filter((o=>!e.find((e=>e===o.key))))}));async function ne(){J.extraMaterialList&&!ie.value.length&&(ie.value=y(J.extraMaterialList)?await J.extraMaterialList():J.extraMaterialList)}return q({loadData({fieldList:e}){let o=[],t=[];e.forEach((e=>function(e){"LINE_BAR"===e.type&&(e.children=[]);!1===e.show?t.push(e):o.push(e),"COMBINATION"===e.type&&_(e.children)&&e.children.length&&e.children.forEach((e=>{e.__isCombinationChild=!0}))}(x(a(e))))),X.value=te(o),Y.value=t,ee.value=void 0},validate(){var e;return null==(e=oe.value)?void 0:e.validate()},getData:(e=!1)=>({fieldList:re(x(a(X.value)),e),materialList:re(x(a(Y.value)),e)}),clearExtraList(){ie.value=[]}}),(o,t)=>(i(),l("section",{class:"form-config",style:n({"--max-height":e.maxHeight,...s(P)}),id:s(K)},[m("section",S,[T,f(s(L),u(s(Q)(),{class:"form-config__materialContent",modelValue:Y.value,"onUpdate:modelValue":t[0]||(t[0]=e=>Y.value=e)}),{item:c((({element:e})=>[f(s(M),{"form-config-item":e,"text-formatter":$,"material-List":Y.value},null,8,["form-config-item","material-List"])])),_:1},16,["modelValue"]),e.extraMaterialList?(i(),d(s(N),{key:0,class:"form-config__materialExtraList",filterable:"",value:s(ae),"onUpdate:value":t[1]||(t[1]=e=>p(ae)?ae.value=e:null),placeholder:"请选择额外物料",options:s(le),"label-field":"name","value-field":"key",onFocus:ne},null,8,["value","options"])):v("v-if",!0)]),m("section",U,[m("header",w,[g(" 布局区 "),f(k,{onSubmit:Z})]),f(F,{class:"form-config__displayContent",group:s(H),"text-formatter":$,modelValue:X.value,"onUpdate:modelValue":t[2]||(t[2]=e=>X.value=e)},null,8,["group","modelValue"])]),m("section",B,[z,m("section",W,[f(b,{ref_key:"formConfigEditRef",ref:oe,uuid:s(K),"form-render-ref":e.formRenderRef},null,8,["uuid","form-render-ref"])])])],12,A))}});export{q as default};
|