cnhis-design-vue 3.2.9-beta.23 → 3.2.9-beta.27
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/README.md +87 -87
- package/es/components/button-print/index.d.ts +30 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +30 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +2 -2
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +87 -0
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +87 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +87 -0
- package/es/components/classification/src/index.vue.d.ts +87 -0
- package/es/components/date-picker/index.d.ts +29 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +30 -1
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
- package/es/components/field-set/index.d.ts +7 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +62 -4
- package/es/components/field-set/src/FieldColor.vue2.js +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -4
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +8 -6
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/Index.vue.d.ts +7 -1
- package/es/components/field-set/src/Index.vue2.js +1 -1
- package/es/components/field-set/src/TableStyle.vue2.js +1 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +29 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +58 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +29 -0
- package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
- package/es/components/field-set/src/utils/index.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/iho-chat/index.d.ts +29 -0
- package/es/components/iho-chat/src/Index.vue.d.ts +29 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +29 -0
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +29 -0
- package/es/components/iho-chat/src/hooks/useSession.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +29 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +29 -0
- package/es/components/index.css +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +29 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +58 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +58 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +58 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +29 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +116 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +116 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +1 -1
- package/es/shared/assets/img/ai__avatar.png.js +1 -1
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1 +1 @@
|
|
1
|
-
import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as s}from"./dialog.js";import{isIReport as r,getFileUrl as n,useBrowserPrint as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{uuidGenerator as l}from"../../../../shared/utils/index.js";import{format as c}from"date-fns";import{io as h}from"socket.io-client";const u=String(navigator.platform).toLowerCase().includes("linux"),m=t.create({timeout:6e4,withCredentials:!1}),p=`${window.location.protocol}//${window.location.host}`,d=`${p}/fdp-api/print/assembly/printIReport`,g=`${p}/bi-api/reprot/print/open/client/printIReportForBase64`,f=`${p}/bi-api/reprot/print/open/client/previewIReport`,y=`${p}/bi-api/reprot/print/open/client/getRemote`,w=`${p}/printService/file`;let P=null;class v{constructor(){var t,e,r;if(this.webview=null,this.dialog=new i,this.dialogPreview=new s,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.printDomesticOrigin="http://127.0.0.1:17521",this.isRemote=!1,this.CMonitor=null,this.queryServicesParams=null,this.isConnectHiPrint=!1,this.clientInfo=null,this.printerList=[],this.hiPrintSocket=null,this.base64Fragment="",this._successCallbackFn=null,this._errorCallbackFn=null,this._cancelCallbackFn=null,this.messageHandlerQueue=[],this.getIReportFormatId=(t,e)=>t?e.split("_")[1]:e,P)return P;P=this;const n=window;this.CMonitor=n.$CMonitor;try{this.webview=n.top?null==(t=n.top.chrome)?void 0:t.webview:null==(e=n.chrome)?void 0:e.webview}catch(t){console.log(t),this.webview=null==(r=n.chrome)?void 0:r.webview}if(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","resetprint"].includes(null==i?void 0:i.cmd)){console.log("打印命令执行了",i);const e=this.messageHandlerQueue.shift();if(!e)return console.log("当前回执",t,"没有可用的handler");const{resolve:s,reject:r}=e;try{if("resetprint"===(null==i?void 0:i.cmd))return void s({result:(null==i?void 0:i.res)?"success":"fail"});s(i.res||"")}catch(t){r(t)}}else"config"===(null==i?void 0:i.exec)&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||"")}_initDomesticSystem(t){try{if(this.hiPrintSocket)return this.isConnectHiPrint;this.hiPrintSocket=h(this.printDomesticOrigin,{reconnection:!1,transports:["websocket"],auth:{token:"no-use-vue-plugin-hiprint"}}),this.hiPrintSocket&&(this.hiPrintSocket.on("connect",(()=>{this.isConnectHiPrint=!0})),this.hiPrintSocket.on("disconnect",(()=>{this.isConnectHiPrint=!1,this.hiPrintSocket=null})),this.hiPrintSocket.on("clientInfo",(t=>{console.log("获取到客户端信息>>>>>",t),t.clientUrl&&(this.clientInfo=t)})),this.hiPrintSocket.on("printerList",(e=>{console.log("获取到打印机列表信息>>>>>",e),this.printerList=e,t&&t(!0)})),this.hiPrintSocket.on("success",(t=>{console.log("打印成功>>>>>",t),this.base64Fragment="",this._successCallbackFn&&this._successCallbackFn(t)})),this.hiPrintSocket.on("replayPrinterTemplate",(t=>{console.log("获取到数据的回复>>>>>",t),t&&this.hiPrintSocket.emit("news",t)})),this.hiPrintSocket.on("error",(t=>{console.log("打印失败>>>>>",t),this.base64Fragment="","cancel"==(null==t?void 0:t.result)?this._cancelCallbackFn&&this._cancelCallbackFn(t):this._errorCallbackFn&&this._errorCallbackFn(t)})))}catch(e){console.log("ihoPrint系统连接失败",e),t&&t(!1)}}async getPicAndUpload(t){try{const e=t=>"[object Object]"===Object.prototype.toString.call(t);if("success"===(null==t?void 0:t.result)&&"Y"==(null==t?void 0:t.uploadTemplateFlag)&&!(null==t?void 0:t.filebase64)&&this.queryServicesParams){const t=e(this.queryServicesParams.params)?this.queryServicesParams.params:JSON.parse(this.queryServicesParams.params);t.uploadTemplateFlag="Y",this.queryServicesParams.params=JSON.stringify(t),this.queryServicesParams.cmdid="7",this.queryServicesParams.print={print:1,type:6,zip:0},this.queryServicesParams.paramsArr=[{params:JSON.stringify(t)}];await this._queryBase64ServicesPrint(this.queryServicesParams)}}catch(t){console.log(t)}finally{this.queryServicesParams=null}}async postMessage(t,e=0){if(!this.webview)return Promise.reject();const i=l();return e&&e>0?this.messageCollectAndNotifyFail(i,t,e):this.messageCollect(i,t)}messageCollect(t,e){return new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)}))}messageCollectAndNotifyFail(t,e,i){return Promise.race([new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)})),new Promise(((e,s)=>{setTimeout((()=>{const e=this.messageHandlerQueue.findIndex((e=>e.id===t));e>-1&&this.messageHandlerQueue.splice(e,1),s({type:"timeout"})}),i)}))])}destroy(){}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testDomesticSystemConnection(){return new Promise((t=>{m({url:`${this.printDomesticOrigin}/test`,method:"get",withCredentials:!1,params:{}}).then((({data:e})=>{e.status?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{m({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)}))}))}async resetPrinter(t,e){const i=r(t);if(t=this.getIReportFormatId(i,t),i&&(u||2==e)){return await this._testDomesticSystemConnection()?m({url:`${this.printDomesticOrigin}/resetPrint`,method:"get",withCredentials:!1,params:{formatId:t}}).then((({data:t})=>t.status?{type:"resetSuccess",result:"success",message:null==t?void 0:t.message}:{type:"resetError",result:"error",message:null==t?void 0:t.message})).catch((t=>({type:"resetError",result:"error",message:"重置打印机错误"}))):{type:"notOpenedApp",result:"error",message:"请开启ihoPrint客户端"}}return this.webview?this.postMessage({exec:"resetprint",data:{formatID:t}}):m({url:`${this.printOrigin}/services/printset`,method:"get",withCredentials:!1,params:{inputdata:t}}).then((({data:t})=>t))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}},null==e?void 0:e.messageTimeout):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_queryBase64ServicesPrint(t){return this.webview?this.postMessage({exec:"print",data:{inputData:t}}):m({url:"/services/Printqueue",method:"get",params:{inputData:JSON.stringify(t)}}).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:s(i)}):m({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[s]}).then((({data:t})=>t));function s(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,i){if(!t){const t="打印命令返回空数据";return this._handleMonitorNotify(""),null==e||e({type:"printError",message:t,result:"error",errinfo:t}),!1}if("success"!==t.result){const s=t.message||t.Message;this._handleMonitorNotify(s);const r={type:"printError",message:s,result:t.result,errinfo:t.errinfo};return"cancel"==t.result?(i&&i({type:"printCancel",message:s,result:t.result,errinfo:t.errinfo}),!1):(null==e||e(r),!1)}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件",result:"error"}),!1)}async _handleEventQueryPrintData(t,e,i,s,r){const n={templateId:t,formatId:e,params:i,cmdid:"7",messageTimeout:s},a=await this._queryServicesPrint(n);return this._handleQueryPrintDataResult(a,e,r)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({result:"error",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,paramsArr:s,cmdid:r,print:n,signature:a,copies:o,printdlgshow:l="0",nobillnode:h="1",btnprint:u="1",messageTimeout:m=0}){const p={templateId:t,formatId:e,params:i,cmdid:r,nobillnode:h,printdlgshow:l,btnprint:u,copies:o,messageTimeout:m,...a?{signature:a}:{}};if(s&&(p.paramsArr=s),n){try{n=JSON.parse(n)}catch(t){}p.print=n}else if(this.isRemote){const t=c(new Date,"yyyyMMddHHmmss");p.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return this.queryServicesParams=p,await this._queryServicesPrint(p)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:s,messageTimeout:r=0}){const n={};let a={};try{a=Object.assign({},n,JSON.parse(i))}catch(t){a=n}const o={templateId:t,formatId:e,cmdid:"9",token:s,params:JSON.stringify(a),messageTimeout:r};return await this._queryServicesPrint(o)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await m({method:"get",url:y})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=p+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await m({method:"post",url:d,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}paramsSerializer(t){return Object.keys(t).forEach((e=>{const i=t[e];t[e]=i,"biParams"==e&&(t[e]=encodeURIComponent(i))})),t}async _queryPrintForBase64(t,e,i="",s){const r="object"==typeof i?i:JSON.parse(i),{data:n}=await m({method:"post",url:g,params:{id:t,formatId:e,params:this.paramsSerializer(r),authorizationKey:s}})||{};return n}async _queryPrintForPdf(t,e,i="",s){const r="object"==typeof i?i:JSON.parse(i),{data:n}=await m({method:"post",url:f,responseType:"blob",params:{id:t,formatId:e,params:this.paramsSerializer(r),authorizationKey:s}})||{};return n}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,s=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),r=s[s.length-2],o=s[s.length-1],l=await n(`${w}/${r}/${o}`),c=a(null,e,l);if("preview"===e)return c}}_base64ToBlob(t,e){const i=window.atob(t);let s=i.length;const r=new Uint8Array(s);for(;s--;)r[s]=i.charCodeAt(s);return new Blob([r],{type:e})}async preview({iReportExecuteMode:t,templateId:e,formatId:i,params:s="",paramsArr:n,authorizationKey:l,signature:c,btnprint:h,messageTimeout:m=0},p,d){const g=r(i);if(i=this.getIReportFormatId(g,i),g&&(u||2==t)){const t=await this._queryPrintForPdf(e,i,s,l);if(!t)return null==d?void 0:d({type:"queryPrintDataFailure",result:"error",message:"获取文件失败!"});const r=a(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,r),null==p?void 0:p({result:"success",message:"",file:t})}await this._queryProxyOrigin();const f=await this._testConnection();if(!this._handleResultTest(f,d))return!1;try{const t=await this._handleEventDirect({templateId:e,formatId:i,params:s,paramsArr:n,cmdid:this.isRemote?"7":"8",signature:c,btnprint:h,messageTimeout:m}),r=this._handleResult(t,d);if(!r)return!1;if(this.isRemote){const t=await this._browserPrint(r,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}await this.getPicAndUpload(r),null==p||p(r)}catch(t){const e="预览失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e,result:"error"}:{message:e,result:"error"};null==d||d(i),this._handleMonitorNotify(i)}}async printSync(t,e,i){const s=t.map((t=>{const e={params:"",printdlgshow:"0",nobillnode:"1",btnprint:"1",...t,cmdid:"7",...t.signature?{signature:t.signature}:{}};if(e.print)try{e.print=JSON.parse(e.print)}catch(t){}return{inputData:e}}));try{const t=l(),r=await this.messageCollect(t,{exec:"printA",data:s});if(r&&Array.isArray(r)){r.some((t=>"success"===t.res.result))?null==e||e(r):(null==i||i(r),this._handleMonitorNotify(r))}else{const t="打印命令返回无效数据";this._handleMonitorNotify(r||""),null==i||i({type:"printError",message:t,result:"error",errinfo:t})}}catch(t){const e={error:t,result:"error",message:"打印失败"};null==i||i(e),this._handleMonitorNotify(e)}}async printDirect({iReportExecuteMode:t,templateId:e,formatId:i,params:s="",paramsArr:n,authorizationKey:a,print:o,signature:l,printdlgshow:c,nobillnode:h,copies:m,isDownloadFile:p=!0,messageTimeout:d=0},g,f,y,w="printDirect"){const P=r(i);if(i=this.getIReportFormatId(P,i),P&&(u||2==t)){if(!await this._testDomesticSystemConnection())return void f({type:"notOpenedApp",result:"error",message:"请开启ihoPrint客户端"});return void(this._initDomesticSystem((async t=>{t?await this.printToHiPrint({templateId:e,formatId:i,params:s,authorizationKey:a},g,f,y):f({type:"connectAppFail",result:"error",message:"连接ihoPrint客户端失败"})}))&&await this.printToHiPrint({templateId:e,formatId:i,params:s,authorizationKey:a},g,f,y))}await this._queryProxyOrigin();const v=await this._testConnection();if(!this._handleResultTest(v,f))return!1;try{const t=await this._handleEventDirect({templateId:e,formatId:i,params:s,paramsArr:n,cmdid:"7",print:o,signature:l,printdlgshow:c,nobillnode:h,copies:m,messageTimeout:d}),r=this._handleResult(t,f,y);if(!r)return!1;p&&["downloadPDF"].includes(w)&&await this._browserPrint(r,w),null==g||g(r)}catch(t){const e="printDirect"===w?"打印失败":"下载失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e,result:"error"}:{message:e,result:"error"};null==f||f(i),this._handleMonitorNotify(i)}}async printToHiPrint({templateId:t,formatId:e,params:i,authorizationKey:s},r,n,a){const o=await this._queryPrintForBase64(t,e,i,s);if(!o.success)return n({message:o.resultMsg,result:"error"});const{base64:l,formatId:c}=o.map;this.base64Fragment=l,this._successCallbackFn=r,this._errorCallbackFn=n,a&&(this._cancelCallbackFn=a),this.hiPrintSocket.emit("news",{printerList:this.printerList,type:"askPrinterTemplate",markTemplateId:c,pdf_stream:this.base64Fragment})}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):m.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}async downloadPDF(t,i,s){if(this.webview&&this.downloadPath&&(Reflect.has(t,"print")||Reflect.set(t,"print",{print:"1",type:"1"}),!t.print.filename)){const e=c(new Date,"yyyy-MM-dd"),i=l(),s=c(new Date,"yyyyMMddHHmmss")+i;t.print.filename=`${this.downloadPath}/${e}/${s}/${s}`.replace(/\\/g,"/")}const n=r(t.formatId);if(t.formatId=this.getIReportFormatId(n,t.formatId),n&&(u||2==t.iReportExecuteMode)){const e=await this._queryPrintForPdf(t.templateId||"",t.formatId,t.params||"",t.authorizationKey);return e?(a(e,"downloadPDF"),i({file:e,result:"success",message:""})):null==s?void 0:s({type:"queryPrintDataFailure",result:"error",message:"获取文件失败!"})}this.printDirect(t,(async t=>{t||s({result:"error",message:""});const r=this,n=await async function(t){const i=[],s=JSON.parse(t);if(!e(s))return await r._downloadPDF("");if(1===s.length)return await r._downloadPDF(s[0]||"");for(let t=0,e=s.length;t<e;t++)i.push(await r._downloadPDF(s[t]||""));return i}(t.filedir);i(n,t)}),(t=>s(t)),(t=>{console.log(t)}),"downloadPDF")}async print({templateId:t,formatId:e,params:i="",messageTimeout:s=0},r,n){const a=await this._testConnection();if(!this._handleResultTest(a,n))return!1;const o=await this.queryPrintData({templateId:t,formatId:e,params:i,messageTimeout:s},void 0,n);if(!o)return!1;const l=this.printFileData({formatId:e,file:o.file,printerName:o.printerName},void 0,n);if(!l)return!1;r&&r(l)}async queryPrintData({templateId:t,formatId:e,params:i="",messageTimeout:s=0},r,n){const a=await this._testConnection();if(!this._handleResultTest(a,n))return!1;const o=await this._handleEventQueryPrintData(t,e,i,s,n);return!!o&&(r&&r(o),o)}async printFileData({formatId:t,file:e,printerName:i="Default"},s,r){const n=await this._testConnection();if(!this._handleResultTest(n,r))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,r);return!!o&&(s&&s(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:r=0},n,a){const o=await this._testConnection();if(!this._handleResultTest(o,a))return!1;const l=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:r}),c=this._handleResult(l,a);if(!c)return!1;n&&n(c)}async addPrintFormat({templateId:t,params:e,token:i},s,r){const n=await this._testConnection();if(!this._handleResultTest(n,r))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,r);if(!o)return!1;s&&s(o)}}export{v as Print};
|
1
|
+
import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as s}from"./dialog.js";import{isIReport as r,getFileUrl as n,useBrowserPrint as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{uuidGenerator as l}from"../../../../shared/utils/index.js";import{format as c}from"date-fns";import{io as h}from"socket.io-client";const u=String(navigator.platform).toLowerCase().includes("linux"),p=t.create({timeout:6e4,withCredentials:!1}),m=`${window.location.protocol}//${window.location.host}`,d=`${m}/fdp-api/print/assembly/printIReport`,g=`${m}/bi-api/reprot/print/open/client/printIReportForBase64`,f=`${m}/bi-api/reprot/print/open/client/previewIReport`,y=`${m}/bi-api/reprot/print/open/client/getRemote`,w=`${m}/printService/file`;let P=null;class v{constructor(){var t,e,r;if(this.webview=null,this.dialog=new i,this.dialogPreview=new s,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.printDomesticOrigin="http://127.0.0.1:17521",this.isRemote=!1,this.CMonitor=null,this.queryServicesParams=null,this.isConnectHiPrint=!1,this.clientInfo=null,this.printerList=[],this.hiPrintSocket=null,this.base64Fragment="",this._successCallbackFn=null,this._errorCallbackFn=null,this._cancelCallbackFn=null,this.messageHandlerQueue=[],this.getIReportFormatId=(t,e)=>t?e.split("_")[1]:e,P)return P;P=this;const n=window;this.CMonitor=n.$CMonitor;try{this.webview=n.top?null==(t=n.top.chrome)?void 0:t.webview:null==(e=n.chrome)?void 0:e.webview}catch(t){console.log(t),this.webview=null==(r=n.chrome)?void 0:r.webview}if(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","resetprint"].includes(null==i?void 0:i.cmd)){console.log("打印命令执行了",i);const e=this.messageHandlerQueue.shift();if(!e)return console.log("当前回执",t,"没有可用的handler");const{resolve:s,reject:r}=e;try{if("resetprint"===(null==i?void 0:i.cmd))return void s({result:(null==i?void 0:i.res)?"success":"fail"});s(i.res||"")}catch(t){r(t)}}else"config"===(null==i?void 0:i.exec)&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||"")}_initDomesticSystem(t){try{if(this.hiPrintSocket)return this.isConnectHiPrint;this.hiPrintSocket=h(this.printDomesticOrigin,{reconnection:!1,transports:["websocket"],auth:{token:"no-use-vue-plugin-hiprint"}}),this.hiPrintSocket&&(this.hiPrintSocket.on("connect",(()=>{this.isConnectHiPrint=!0})),this.hiPrintSocket.on("disconnect",(()=>{this.isConnectHiPrint=!1,this.hiPrintSocket=null})),this.hiPrintSocket.on("clientInfo",(t=>{console.log("获取到客户端信息>>>>>",t),t.clientUrl&&(this.clientInfo=t)})),this.hiPrintSocket.on("printerList",(e=>{console.log("获取到打印机列表信息>>>>>",e),this.printerList=e,t&&t(!0)})),this.hiPrintSocket.on("success",(t=>{console.log("打印成功>>>>>",t),this.base64Fragment="",this._successCallbackFn&&this._successCallbackFn(t)})),this.hiPrintSocket.on("replayPrinterTemplate",(t=>{console.log("获取到数据的回复>>>>>",t),t&&this.hiPrintSocket.emit("news",t)})),this.hiPrintSocket.on("error",(t=>{console.log("打印失败>>>>>",t),this.base64Fragment="","cancel"==(null==t?void 0:t.result)?this._cancelCallbackFn&&this._cancelCallbackFn(t):this._errorCallbackFn&&this._errorCallbackFn(t)})))}catch(e){console.log("ihoPrint系统连接失败",e),t&&t(!1)}}async getPicAndUpload(t){try{const e=t=>"[object Object]"===Object.prototype.toString.call(t);if("success"===(null==t?void 0:t.result)&&"Y"==(null==t?void 0:t.uploadTemplateFlag)&&!(null==t?void 0:t.filebase64)&&this.queryServicesParams){const t=e(this.queryServicesParams.params)?this.queryServicesParams.params:JSON.parse(this.queryServicesParams.params);t.uploadTemplateFlag="Y",this.queryServicesParams.params=JSON.stringify(t),this.queryServicesParams.cmdid="7",this.queryServicesParams.print={print:1,type:6,zip:0},this.queryServicesParams.paramsArr=[{params:JSON.stringify(t)}];await this._queryBase64ServicesPrint(this.queryServicesParams)}}catch(t){console.log(t)}finally{this.queryServicesParams=null}}async postMessage(t,e=0){if(!this.webview)return Promise.reject();const i=l();return e&&e>0?this.messageCollectAndNotifyFail(i,t,e):this.messageCollect(i,t)}messageCollect(t,e){return new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)}))}messageCollectAndNotifyFail(t,e,i){return Promise.race([new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)})),new Promise(((e,s)=>{setTimeout((()=>{const e=this.messageHandlerQueue.findIndex((e=>e.id===t));e>-1&&this.messageHandlerQueue.splice(e,1),s({type:"timeout"})}),i)}))])}destroy(){}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testDomesticSystemConnection(){return new Promise((t=>{p({url:`${this.printDomesticOrigin}/test`,method:"get",withCredentials:!1,params:{}}).then((({data:e})=>{e.status?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{p({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)}))}))}async resetPrinter(t,e){const i=r(t);if(t=this.getIReportFormatId(i,t),i&&(u||2==e)){return await this._testDomesticSystemConnection()?p({url:`${this.printDomesticOrigin}/resetPrint`,method:"get",withCredentials:!1,params:{formatId:t}}).then((({data:t})=>t.status?{type:"resetSuccess",result:"success",message:null==t?void 0:t.message}:{type:"resetError",result:"error",message:null==t?void 0:t.message})).catch((t=>({type:"resetError",result:"error",message:"重置打印机错误"}))):{type:"notOpenedApp",result:"error",message:"请开启ihoPrint客户端"}}return this.webview?this.postMessage({exec:"resetprint",data:{formatID:t}}):p({url:`${this.printOrigin}/services/printset`,method:"get",withCredentials:!1,params:{inputdata:t}}).then((({data:t})=>t))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}},null==e?void 0:e.messageTimeout):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_queryBase64ServicesPrint(t){return this.webview?this.postMessage({exec:"print",data:{inputData:t}}):p({url:"/services/Printqueue",method:"get",params:{inputData:JSON.stringify(t)}}).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:s(i)}):p({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[s]}).then((({data:t})=>t));function s(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,i){if(!t){const t="打印命令返回空数据";return this._handleMonitorNotify(""),null==e||e({type:"printError",message:t,result:"error",errinfo:t}),!1}if("success"!==t.result){const s=t.message||t.Message;this._handleMonitorNotify(s);const r={type:"printError",message:s,result:t.result,errinfo:t.errinfo};return"cancel"==t.result?(i&&i({type:"printCancel",message:s,result:t.result,errinfo:t.errinfo}),!1):(null==e||e(r),!1)}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件",result:"error"}),!1)}async _handleEventQueryPrintData(t,e,i,s,r){const n={templateId:t,formatId:e,params:i,cmdid:"7",messageTimeout:s},a=await this._queryServicesPrint(n);return this._handleQueryPrintDataResult(a,e,r)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({result:"error",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,svrUpdateIp:i,params:s,paramsArr:r,cmdid:n,print:a,signature:o,copies:l,printdlgshow:h="0",nobillnode:u="1",btnprint:p="1",messageTimeout:m=0}){const d={templateId:t,formatId:e,svrUpdateIp:i,params:s,cmdid:n,nobillnode:u,printdlgshow:h,btnprint:p,copies:l,messageTimeout:m,...o?{signature:o}:{}};if(r&&(d.paramsArr=r),a){try{a=JSON.parse(a)}catch(t){}d.print=a}else if(this.isRemote){const t=c(new Date,"yyyyMMddHHmmss");d.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return this.queryServicesParams=d,await this._queryServicesPrint(d)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:s,messageTimeout:r=0}){const n={};let a={};try{a=Object.assign({},n,JSON.parse(i))}catch(t){a=n}const o={templateId:t,formatId:e,cmdid:"9",token:s,params:JSON.stringify(a),messageTimeout:r};return await this._queryServicesPrint(o)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await p({method:"get",url:y})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=m+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await p({method:"post",url:d,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}paramsSerializer(t){return Object.keys(t).forEach((e=>{const i=t[e];t[e]=i,"biParams"==e&&(t[e]=encodeURIComponent(i))})),t}async _queryPrintForBase64(t,e,i="",s){const r="object"==typeof i?i:JSON.parse(i),{data:n}=await p({method:"post",url:g,params:{id:t,formatId:e,params:this.paramsSerializer(r),authorizationKey:s}})||{};return n}async _queryPrintForPdf(t,e,i="",s){const r="object"==typeof i?i:JSON.parse(i),{data:n}=await p({method:"post",url:f,responseType:"blob",params:{id:t,formatId:e,params:this.paramsSerializer(r),authorizationKey:s}})||{};return n}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,s=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),r=s[s.length-2],o=s[s.length-1],l=await n(`${w}/${r}/${o}`),c=a(null,e,l);if("preview"===e)return c}}_base64ToBlob(t,e){const i=window.atob(t);let s=i.length;const r=new Uint8Array(s);for(;s--;)r[s]=i.charCodeAt(s);return new Blob([r],{type:e})}async preview({iReportExecuteMode:t,templateId:e,formatId:i,params:s="",paramsArr:n,authorizationKey:l,signature:c,btnprint:h,messageTimeout:p=0},m,d){const g=r(i);if(i=this.getIReportFormatId(g,i),g&&(u||2==t)){const t=await this._queryPrintForPdf(e,i,s,l);if(!t)return null==d?void 0:d({type:"queryPrintDataFailure",result:"error",message:"获取文件失败!"});const r=a(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,r),null==m?void 0:m({result:"success",message:"",file:t})}await this._queryProxyOrigin();const f=await this._testConnection();if(!this._handleResultTest(f,d))return!1;try{const t=await this._handleEventDirect({templateId:e,formatId:i,params:s,paramsArr:n,cmdid:this.isRemote?"7":"8",signature:c,btnprint:h,messageTimeout:p}),r=this._handleResult(t,d);if(!r)return!1;if(this.isRemote){const t=await this._browserPrint(r,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}await this.getPicAndUpload(r),null==m||m(r)}catch(t){const e="预览失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e,result:"error"}:{message:e,result:"error"};null==d||d(i),this._handleMonitorNotify(i)}}async printSync(t,e,i){const s=t.map((t=>{const e={params:"",printdlgshow:"0",nobillnode:"1",btnprint:"1",...t,cmdid:"7",...t.signature?{signature:t.signature}:{}};if(e.print)try{e.print=JSON.parse(e.print)}catch(t){}return{inputData:e}}));try{const t=l(),r=await this.messageCollect(t,{exec:"printA",data:s});if(r&&Array.isArray(r)){r.some((t=>"success"===t.res.result))?null==e||e(r):(null==i||i(r),this._handleMonitorNotify(r))}else{const t="打印命令返回无效数据";this._handleMonitorNotify(r||""),null==i||i({type:"printError",message:t,result:"error",errinfo:t})}}catch(t){const e={error:t,result:"error",message:"打印失败"};null==i||i(e),this._handleMonitorNotify(e)}}async printDirect({iReportExecuteMode:t,templateId:e,formatId:i,params:s="",paramsArr:n,authorizationKey:a,print:o,signature:l,printdlgshow:c,nobillnode:h,copies:p,svrUpdateIp:m,isDownloadFile:d=!0,messageTimeout:g=0},f,y,w,P="printDirect"){const v=r(i);if(i=this.getIReportFormatId(v,i),v&&(u||2==t)){if(!await this._testDomesticSystemConnection())return void y({type:"notOpenedApp",result:"error",message:"请开启ihoPrint客户端"});return void(this._initDomesticSystem((async t=>{t?await this.printToHiPrint({templateId:e,formatId:i,params:s,authorizationKey:a},f,y,w):y({type:"connectAppFail",result:"error",message:"连接ihoPrint客户端失败"})}))&&await this.printToHiPrint({templateId:e,formatId:i,params:s,authorizationKey:a},f,y,w))}await this._queryProxyOrigin();const _=await this._testConnection();if(!this._handleResultTest(_,y))return!1;try{const t=await this._handleEventDirect({templateId:e,formatId:i,params:s,paramsArr:n,cmdid:"7",print:o,signature:l,printdlgshow:c,nobillnode:h,copies:p,svrUpdateIp:m,messageTimeout:g}),r=this._handleResult(t,y,w);if(!r)return!1;d&&["downloadPDF"].includes(P)&&await this._browserPrint(r,P),null==f||f(r)}catch(t){const e="printDirect"===P?"打印失败":"下载失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e,result:"error"}:{message:e,result:"error"};null==y||y(i),this._handleMonitorNotify(i)}}async printToHiPrint({templateId:t,formatId:e,params:i,authorizationKey:s},r,n,a){const o=await this._queryPrintForBase64(t,e,i,s);if(!o.success)return n({message:o.resultMsg,result:"error"});const{base64:l,formatId:c}=o.map;this.base64Fragment=l,this._successCallbackFn=r,this._errorCallbackFn=n,a&&(this._cancelCallbackFn=a),this.hiPrintSocket.emit("news",{printerList:this.printerList,type:"askPrinterTemplate",markTemplateId:c,pdf_stream:this.base64Fragment})}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):p.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}async downloadPDF(t,i,s){if(this.webview&&this.downloadPath&&(Reflect.has(t,"print")||Reflect.set(t,"print",{print:"1",type:"1"}),!t.print.filename)){const e=c(new Date,"yyyy-MM-dd"),i=l(),s=c(new Date,"yyyyMMddHHmmss")+i;t.print.filename=`${this.downloadPath}/${e}/${s}/${s}`.replace(/\\/g,"/")}const n=r(t.formatId);if(t.formatId=this.getIReportFormatId(n,t.formatId),n&&(u||2==t.iReportExecuteMode)){const e=await this._queryPrintForPdf(t.templateId||"",t.formatId,t.params||"",t.authorizationKey);return e?(a(e,"downloadPDF"),i({file:e,result:"success",message:""})):null==s?void 0:s({type:"queryPrintDataFailure",result:"error",message:"获取文件失败!"})}this.printDirect(t,(async t=>{t||s({result:"error",message:""});const r=this,n=await async function(t){const i=[],s=JSON.parse(t);if(!e(s))return await r._downloadPDF("");if(1===s.length)return await r._downloadPDF(s[0]||"");for(let t=0,e=s.length;t<e;t++)i.push(await r._downloadPDF(s[t]||""));return i}(t.filedir);i(n,t)}),(t=>s(t)),(t=>{console.log(t)}),"downloadPDF")}async print({templateId:t,formatId:e,params:i="",messageTimeout:s=0},r,n){const a=await this._testConnection();if(!this._handleResultTest(a,n))return!1;const o=await this.queryPrintData({templateId:t,formatId:e,params:i,messageTimeout:s},void 0,n);if(!o)return!1;const l=this.printFileData({formatId:e,file:o.file,printerName:o.printerName},void 0,n);if(!l)return!1;r&&r(l)}async queryPrintData({templateId:t,formatId:e,params:i="",messageTimeout:s=0},r,n){const a=await this._testConnection();if(!this._handleResultTest(a,n))return!1;const o=await this._handleEventQueryPrintData(t,e,i,s,n);return!!o&&(r&&r(o),o)}async printFileData({formatId:t,file:e,printerName:i="Default"},s,r){const n=await this._testConnection();if(!this._handleResultTest(n,r))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,r);return!!o&&(s&&s(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:r=0},n,a){const o=await this._testConnection();if(!this._handleResultTest(o,a))return!1;const l=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:r}),c=this._handleResult(l,a);if(!c)return!1;n&&n(c)}async addPrintFormat({templateId:t,params:e,token:i},s,r){const n=await this._testConnection();if(!this._handleResultTest(n,r))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,r);if(!o)return!1;s&&s(o)}}export{v as Print};
|
@@ -833,6 +833,14 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
833
833
|
type: import("vue").PropType<string | false | HTMLElement>;
|
834
834
|
default: string;
|
835
835
|
};
|
836
|
+
holidays: {
|
837
|
+
type: import("vue").PropType<Date[]>;
|
838
|
+
default: () => never[];
|
839
|
+
};
|
840
|
+
type: {
|
841
|
+
type: StringConstructor;
|
842
|
+
default: string;
|
843
|
+
};
|
836
844
|
}, {
|
837
845
|
attrs: {
|
838
846
|
[x: string]: unknown;
|
@@ -857,6 +865,14 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
857
865
|
type: import("vue").PropType<string | false | HTMLElement>;
|
858
866
|
default: string;
|
859
867
|
};
|
868
|
+
holidays: {
|
869
|
+
type: import("vue").PropType<Date[]>;
|
870
|
+
default: () => never[];
|
871
|
+
};
|
872
|
+
type: {
|
873
|
+
type: StringConstructor;
|
874
|
+
default: string;
|
875
|
+
};
|
860
876
|
}>> & {
|
861
877
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
862
878
|
}>>;
|
@@ -873,6 +889,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
873
889
|
blur: () => any;
|
874
890
|
handleConfirm: (target: HTMLInputElement) => void;
|
875
891
|
onUpdateShow: (show: boolean) => Promise<void>;
|
892
|
+
watchers: import("../../shared/types").AnyFn[];
|
893
|
+
stopWatcher: () => void;
|
894
|
+
setHoliday: (show: boolean) => Promise<void>;
|
876
895
|
onConfirm: (...args: any[]) => Promise<void>;
|
877
896
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
878
897
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -897,11 +916,21 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
897
916
|
type: import("vue").PropType<string | false | HTMLElement>;
|
898
917
|
default: string;
|
899
918
|
};
|
919
|
+
holidays: {
|
920
|
+
type: import("vue").PropType<Date[]>;
|
921
|
+
default: () => never[];
|
922
|
+
};
|
923
|
+
type: {
|
924
|
+
type: StringConstructor;
|
925
|
+
default: string;
|
926
|
+
};
|
900
927
|
}>> & {
|
901
928
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
902
929
|
}, {
|
930
|
+
type: string;
|
903
931
|
updateUnchangedValue: boolean;
|
904
932
|
to: string | false | HTMLElement;
|
933
|
+
holidays: Date[];
|
905
934
|
}>>;
|
906
935
|
NSelect: any;
|
907
936
|
WidgetValEnums: {
|
@@ -1495,6 +1524,14 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1495
1524
|
type: import("vue").PropType<string | false | HTMLElement>;
|
1496
1525
|
default: string;
|
1497
1526
|
};
|
1527
|
+
holidays: {
|
1528
|
+
type: import("vue").PropType<Date[]>;
|
1529
|
+
default: () => never[];
|
1530
|
+
};
|
1531
|
+
type: {
|
1532
|
+
type: StringConstructor;
|
1533
|
+
default: string;
|
1534
|
+
};
|
1498
1535
|
}, {
|
1499
1536
|
attrs: {
|
1500
1537
|
[x: string]: unknown;
|
@@ -1519,6 +1556,14 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1519
1556
|
type: import("vue").PropType<string | false | HTMLElement>;
|
1520
1557
|
default: string;
|
1521
1558
|
};
|
1559
|
+
holidays: {
|
1560
|
+
type: import("vue").PropType<Date[]>;
|
1561
|
+
default: () => never[];
|
1562
|
+
};
|
1563
|
+
type: {
|
1564
|
+
type: StringConstructor;
|
1565
|
+
default: string;
|
1566
|
+
};
|
1522
1567
|
}>> & {
|
1523
1568
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1524
1569
|
}>>;
|
@@ -1535,6 +1580,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1535
1580
|
blur: () => any;
|
1536
1581
|
handleConfirm: (target: HTMLInputElement) => void;
|
1537
1582
|
onUpdateShow: (show: boolean) => Promise<void>;
|
1583
|
+
watchers: import("../../shared/types").AnyFn[];
|
1584
|
+
stopWatcher: () => void;
|
1585
|
+
setHoliday: (show: boolean) => Promise<void>;
|
1538
1586
|
onConfirm: (...args: any[]) => Promise<void>;
|
1539
1587
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
1540
1588
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -1559,11 +1607,21 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1559
1607
|
type: import("vue").PropType<string | false | HTMLElement>;
|
1560
1608
|
default: string;
|
1561
1609
|
};
|
1610
|
+
holidays: {
|
1611
|
+
type: import("vue").PropType<Date[]>;
|
1612
|
+
default: () => never[];
|
1613
|
+
};
|
1614
|
+
type: {
|
1615
|
+
type: StringConstructor;
|
1616
|
+
default: string;
|
1617
|
+
};
|
1562
1618
|
}>> & {
|
1563
1619
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1564
1620
|
}, {
|
1621
|
+
type: string;
|
1565
1622
|
updateUnchangedValue: boolean;
|
1566
1623
|
to: string | false | HTMLElement;
|
1624
|
+
holidays: Date[];
|
1567
1625
|
}>>;
|
1568
1626
|
WidgetValEnums: {
|
1569
1627
|
CUSTOM: string;
|
@@ -1958,6 +2016,14 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1958
2016
|
type: import("vue").PropType<string | false | HTMLElement>;
|
1959
2017
|
default: string;
|
1960
2018
|
};
|
2019
|
+
holidays: {
|
2020
|
+
type: import("vue").PropType<Date[]>;
|
2021
|
+
default: () => never[];
|
2022
|
+
};
|
2023
|
+
type: {
|
2024
|
+
type: StringConstructor;
|
2025
|
+
default: string;
|
2026
|
+
};
|
1961
2027
|
}, {
|
1962
2028
|
attrs: {
|
1963
2029
|
[x: string]: unknown;
|
@@ -1982,6 +2048,14 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1982
2048
|
type: import("vue").PropType<string | false | HTMLElement>;
|
1983
2049
|
default: string;
|
1984
2050
|
};
|
2051
|
+
holidays: {
|
2052
|
+
type: import("vue").PropType<Date[]>;
|
2053
|
+
default: () => never[];
|
2054
|
+
};
|
2055
|
+
type: {
|
2056
|
+
type: StringConstructor;
|
2057
|
+
default: string;
|
2058
|
+
};
|
1985
2059
|
}>> & {
|
1986
2060
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1987
2061
|
}>>;
|
@@ -1998,6 +2072,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1998
2072
|
blur: () => any;
|
1999
2073
|
handleConfirm: (target: HTMLInputElement) => void;
|
2000
2074
|
onUpdateShow: (show: boolean) => Promise<void>;
|
2075
|
+
watchers: import("../../shared/types").AnyFn[];
|
2076
|
+
stopWatcher: () => void;
|
2077
|
+
setHoliday: (show: boolean) => Promise<void>;
|
2001
2078
|
onConfirm: (...args: any[]) => Promise<void>;
|
2002
2079
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
2003
2080
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -2022,11 +2099,21 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
2022
2099
|
type: import("vue").PropType<string | false | HTMLElement>;
|
2023
2100
|
default: string;
|
2024
2101
|
};
|
2102
|
+
holidays: {
|
2103
|
+
type: import("vue").PropType<Date[]>;
|
2104
|
+
default: () => never[];
|
2105
|
+
};
|
2106
|
+
type: {
|
2107
|
+
type: StringConstructor;
|
2108
|
+
default: string;
|
2109
|
+
};
|
2025
2110
|
}>> & {
|
2026
2111
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
2027
2112
|
}, {
|
2113
|
+
type: string;
|
2028
2114
|
updateUnchangedValue: boolean;
|
2029
2115
|
to: string | false | HTMLElement;
|
2116
|
+
holidays: Date[];
|
2030
2117
|
}>>;
|
2031
2118
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
2032
2119
|
componentCfg: {
|
@@ -297,6 +297,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
297
297
|
type: import("vue").PropType<string | false | HTMLElement>;
|
298
298
|
default: string;
|
299
299
|
};
|
300
|
+
holidays: {
|
301
|
+
type: import("vue").PropType<Date[]>;
|
302
|
+
default: () => never[];
|
303
|
+
};
|
304
|
+
type: {
|
305
|
+
type: StringConstructor;
|
306
|
+
default: string;
|
307
|
+
};
|
300
308
|
}, {
|
301
309
|
attrs: {
|
302
310
|
[x: string]: unknown;
|
@@ -321,6 +329,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
321
329
|
type: import("vue").PropType<string | false | HTMLElement>;
|
322
330
|
default: string;
|
323
331
|
};
|
332
|
+
holidays: {
|
333
|
+
type: import("vue").PropType<Date[]>;
|
334
|
+
default: () => never[];
|
335
|
+
};
|
336
|
+
type: {
|
337
|
+
type: StringConstructor;
|
338
|
+
default: string;
|
339
|
+
};
|
324
340
|
}>> & {
|
325
341
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
326
342
|
}>>;
|
@@ -337,6 +353,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
337
353
|
blur: () => any;
|
338
354
|
handleConfirm: (target: HTMLInputElement) => void;
|
339
355
|
onUpdateShow: (show: boolean) => Promise<void>;
|
356
|
+
watchers: import("../../../../../shared/types").AnyFn[];
|
357
|
+
stopWatcher: () => void;
|
358
|
+
setHoliday: (show: boolean) => Promise<void>;
|
340
359
|
onConfirm: (...args: any[]) => Promise<void>;
|
341
360
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
342
361
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -361,11 +380,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
361
380
|
type: import("vue").PropType<string | false | HTMLElement>;
|
362
381
|
default: string;
|
363
382
|
};
|
383
|
+
holidays: {
|
384
|
+
type: import("vue").PropType<Date[]>;
|
385
|
+
default: () => never[];
|
386
|
+
};
|
387
|
+
type: {
|
388
|
+
type: StringConstructor;
|
389
|
+
default: string;
|
390
|
+
};
|
364
391
|
}>> & {
|
365
392
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
366
393
|
}, {
|
394
|
+
type: string;
|
367
395
|
updateUnchangedValue: boolean;
|
368
396
|
to: string | false | HTMLElement;
|
397
|
+
holidays: Date[];
|
369
398
|
}>>;
|
370
399
|
NSelect: any;
|
371
400
|
WidgetValEnums: {
|
@@ -959,6 +988,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
959
988
|
type: import("vue").PropType<string | false | HTMLElement>;
|
960
989
|
default: string;
|
961
990
|
};
|
991
|
+
holidays: {
|
992
|
+
type: import("vue").PropType<Date[]>;
|
993
|
+
default: () => never[];
|
994
|
+
};
|
995
|
+
type: {
|
996
|
+
type: StringConstructor;
|
997
|
+
default: string;
|
998
|
+
};
|
962
999
|
}, {
|
963
1000
|
attrs: {
|
964
1001
|
[x: string]: unknown;
|
@@ -983,6 +1020,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
983
1020
|
type: import("vue").PropType<string | false | HTMLElement>;
|
984
1021
|
default: string;
|
985
1022
|
};
|
1023
|
+
holidays: {
|
1024
|
+
type: import("vue").PropType<Date[]>;
|
1025
|
+
default: () => never[];
|
1026
|
+
};
|
1027
|
+
type: {
|
1028
|
+
type: StringConstructor;
|
1029
|
+
default: string;
|
1030
|
+
};
|
986
1031
|
}>> & {
|
987
1032
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
988
1033
|
}>>;
|
@@ -999,6 +1044,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
999
1044
|
blur: () => any;
|
1000
1045
|
handleConfirm: (target: HTMLInputElement) => void;
|
1001
1046
|
onUpdateShow: (show: boolean) => Promise<void>;
|
1047
|
+
watchers: import("../../../../../shared/types").AnyFn[];
|
1048
|
+
stopWatcher: () => void;
|
1049
|
+
setHoliday: (show: boolean) => Promise<void>;
|
1002
1050
|
onConfirm: (...args: any[]) => Promise<void>;
|
1003
1051
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
1004
1052
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -1023,11 +1071,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
1023
1071
|
type: import("vue").PropType<string | false | HTMLElement>;
|
1024
1072
|
default: string;
|
1025
1073
|
};
|
1074
|
+
holidays: {
|
1075
|
+
type: import("vue").PropType<Date[]>;
|
1076
|
+
default: () => never[];
|
1077
|
+
};
|
1078
|
+
type: {
|
1079
|
+
type: StringConstructor;
|
1080
|
+
default: string;
|
1081
|
+
};
|
1026
1082
|
}>> & {
|
1027
1083
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1028
1084
|
}, {
|
1085
|
+
type: string;
|
1029
1086
|
updateUnchangedValue: boolean;
|
1030
1087
|
to: string | false | HTMLElement;
|
1088
|
+
holidays: Date[];
|
1031
1089
|
}>>;
|
1032
1090
|
WidgetValEnums: {
|
1033
1091
|
CUSTOM: string;
|
@@ -1422,6 +1480,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
1422
1480
|
type: import("vue").PropType<string | false | HTMLElement>;
|
1423
1481
|
default: string;
|
1424
1482
|
};
|
1483
|
+
holidays: {
|
1484
|
+
type: import("vue").PropType<Date[]>;
|
1485
|
+
default: () => never[];
|
1486
|
+
};
|
1487
|
+
type: {
|
1488
|
+
type: StringConstructor;
|
1489
|
+
default: string;
|
1490
|
+
};
|
1425
1491
|
}, {
|
1426
1492
|
attrs: {
|
1427
1493
|
[x: string]: unknown;
|
@@ -1446,6 +1512,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
1446
1512
|
type: import("vue").PropType<string | false | HTMLElement>;
|
1447
1513
|
default: string;
|
1448
1514
|
};
|
1515
|
+
holidays: {
|
1516
|
+
type: import("vue").PropType<Date[]>;
|
1517
|
+
default: () => never[];
|
1518
|
+
};
|
1519
|
+
type: {
|
1520
|
+
type: StringConstructor;
|
1521
|
+
default: string;
|
1522
|
+
};
|
1449
1523
|
}>> & {
|
1450
1524
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1451
1525
|
}>>;
|
@@ -1462,6 +1536,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1462
1536
|
blur: () => any;
|
1463
1537
|
handleConfirm: (target: HTMLInputElement) => void;
|
1464
1538
|
onUpdateShow: (show: boolean) => Promise<void>;
|
1539
|
+
watchers: import("../../../../../shared/types").AnyFn[];
|
1540
|
+
stopWatcher: () => void;
|
1541
|
+
setHoliday: (show: boolean) => Promise<void>;
|
1465
1542
|
onConfirm: (...args: any[]) => Promise<void>;
|
1466
1543
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
1467
1544
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -1486,11 +1563,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
1486
1563
|
type: import("vue").PropType<string | false | HTMLElement>;
|
1487
1564
|
default: string;
|
1488
1565
|
};
|
1566
|
+
holidays: {
|
1567
|
+
type: import("vue").PropType<Date[]>;
|
1568
|
+
default: () => never[];
|
1569
|
+
};
|
1570
|
+
type: {
|
1571
|
+
type: StringConstructor;
|
1572
|
+
default: string;
|
1573
|
+
};
|
1489
1574
|
}>> & {
|
1490
1575
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1491
1576
|
}, {
|
1577
|
+
type: string;
|
1492
1578
|
updateUnchangedValue: boolean;
|
1493
1579
|
to: string | false | HTMLElement;
|
1580
|
+
holidays: Date[];
|
1494
1581
|
}>>;
|
1495
1582
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1496
1583
|
componentCfg: {
|
@@ -591,6 +591,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
591
591
|
type: import("vue").PropType<string | false | HTMLElement>;
|
592
592
|
default: string;
|
593
593
|
};
|
594
|
+
holidays: {
|
595
|
+
type: import("vue").PropType<Date[]>;
|
596
|
+
default: () => never[];
|
597
|
+
};
|
598
|
+
type: {
|
599
|
+
type: StringConstructor;
|
600
|
+
default: string;
|
601
|
+
};
|
594
602
|
}, {
|
595
603
|
attrs: {
|
596
604
|
[x: string]: unknown;
|
@@ -615,6 +623,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
615
623
|
type: import("vue").PropType<string | false | HTMLElement>;
|
616
624
|
default: string;
|
617
625
|
};
|
626
|
+
holidays: {
|
627
|
+
type: import("vue").PropType<Date[]>;
|
628
|
+
default: () => never[];
|
629
|
+
};
|
630
|
+
type: {
|
631
|
+
type: StringConstructor;
|
632
|
+
default: string;
|
633
|
+
};
|
618
634
|
}>> & {
|
619
635
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
620
636
|
}>>;
|
@@ -631,6 +647,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
631
647
|
blur: () => any;
|
632
648
|
handleConfirm: (target: HTMLInputElement) => void;
|
633
649
|
onUpdateShow: (show: boolean) => Promise<void>;
|
650
|
+
watchers: import("../../../../../shared/types").AnyFn[];
|
651
|
+
stopWatcher: () => void;
|
652
|
+
setHoliday: (show: boolean) => Promise<void>;
|
634
653
|
onConfirm: (...args: any[]) => Promise<void>;
|
635
654
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
636
655
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -655,11 +674,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
655
674
|
type: import("vue").PropType<string | false | HTMLElement>;
|
656
675
|
default: string;
|
657
676
|
};
|
677
|
+
holidays: {
|
678
|
+
type: import("vue").PropType<Date[]>;
|
679
|
+
default: () => never[];
|
680
|
+
};
|
681
|
+
type: {
|
682
|
+
type: StringConstructor;
|
683
|
+
default: string;
|
684
|
+
};
|
658
685
|
}>> & {
|
659
686
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
660
687
|
}, {
|
688
|
+
type: string;
|
661
689
|
updateUnchangedValue: boolean;
|
662
690
|
to: string | false | HTMLElement;
|
691
|
+
holidays: Date[];
|
663
692
|
}>>;
|
664
693
|
NSelect: any;
|
665
694
|
WidgetValEnums: {
|
@@ -1253,6 +1282,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
1253
1282
|
type: import("vue").PropType<string | false | HTMLElement>;
|
1254
1283
|
default: string;
|
1255
1284
|
};
|
1285
|
+
holidays: {
|
1286
|
+
type: import("vue").PropType<Date[]>;
|
1287
|
+
default: () => never[];
|
1288
|
+
};
|
1289
|
+
type: {
|
1290
|
+
type: StringConstructor;
|
1291
|
+
default: string;
|
1292
|
+
};
|
1256
1293
|
}, {
|
1257
1294
|
attrs: {
|
1258
1295
|
[x: string]: unknown;
|
@@ -1277,6 +1314,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
1277
1314
|
type: import("vue").PropType<string | false | HTMLElement>;
|
1278
1315
|
default: string;
|
1279
1316
|
};
|
1317
|
+
holidays: {
|
1318
|
+
type: import("vue").PropType<Date[]>;
|
1319
|
+
default: () => never[];
|
1320
|
+
};
|
1321
|
+
type: {
|
1322
|
+
type: StringConstructor;
|
1323
|
+
default: string;
|
1324
|
+
};
|
1280
1325
|
}>> & {
|
1281
1326
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1282
1327
|
}>>;
|
@@ -1293,6 +1338,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1293
1338
|
blur: () => any;
|
1294
1339
|
handleConfirm: (target: HTMLInputElement) => void;
|
1295
1340
|
onUpdateShow: (show: boolean) => Promise<void>;
|
1341
|
+
watchers: import("../../../../../shared/types").AnyFn[];
|
1342
|
+
stopWatcher: () => void;
|
1343
|
+
setHoliday: (show: boolean) => Promise<void>;
|
1296
1344
|
onConfirm: (...args: any[]) => Promise<void>;
|
1297
1345
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
1298
1346
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -1317,11 +1365,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
1317
1365
|
type: import("vue").PropType<string | false | HTMLElement>;
|
1318
1366
|
default: string;
|
1319
1367
|
};
|
1368
|
+
holidays: {
|
1369
|
+
type: import("vue").PropType<Date[]>;
|
1370
|
+
default: () => never[];
|
1371
|
+
};
|
1372
|
+
type: {
|
1373
|
+
type: StringConstructor;
|
1374
|
+
default: string;
|
1375
|
+
};
|
1320
1376
|
}>> & {
|
1321
1377
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1322
1378
|
}, {
|
1379
|
+
type: string;
|
1323
1380
|
updateUnchangedValue: boolean;
|
1324
1381
|
to: string | false | HTMLElement;
|
1382
|
+
holidays: Date[];
|
1325
1383
|
}>>;
|
1326
1384
|
WidgetValEnums: {
|
1327
1385
|
CUSTOM: string;
|
@@ -1716,6 +1774,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
1716
1774
|
type: import("vue").PropType<string | false | HTMLElement>;
|
1717
1775
|
default: string;
|
1718
1776
|
};
|
1777
|
+
holidays: {
|
1778
|
+
type: import("vue").PropType<Date[]>;
|
1779
|
+
default: () => never[];
|
1780
|
+
};
|
1781
|
+
type: {
|
1782
|
+
type: StringConstructor;
|
1783
|
+
default: string;
|
1784
|
+
};
|
1719
1785
|
}, {
|
1720
1786
|
attrs: {
|
1721
1787
|
[x: string]: unknown;
|
@@ -1740,6 +1806,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
1740
1806
|
type: import("vue").PropType<string | false | HTMLElement>;
|
1741
1807
|
default: string;
|
1742
1808
|
};
|
1809
|
+
holidays: {
|
1810
|
+
type: import("vue").PropType<Date[]>;
|
1811
|
+
default: () => never[];
|
1812
|
+
};
|
1813
|
+
type: {
|
1814
|
+
type: StringConstructor;
|
1815
|
+
default: string;
|
1816
|
+
};
|
1743
1817
|
}>> & {
|
1744
1818
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1745
1819
|
}>>;
|
@@ -1756,6 +1830,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1756
1830
|
blur: () => any;
|
1757
1831
|
handleConfirm: (target: HTMLInputElement) => void;
|
1758
1832
|
onUpdateShow: (show: boolean) => Promise<void>;
|
1833
|
+
watchers: import("../../../../../shared/types").AnyFn[];
|
1834
|
+
stopWatcher: () => void;
|
1835
|
+
setHoliday: (show: boolean) => Promise<void>;
|
1759
1836
|
onConfirm: (...args: any[]) => Promise<void>;
|
1760
1837
|
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
1761
1838
|
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
@@ -1780,11 +1857,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
1780
1857
|
type: import("vue").PropType<string | false | HTMLElement>;
|
1781
1858
|
default: string;
|
1782
1859
|
};
|
1860
|
+
holidays: {
|
1861
|
+
type: import("vue").PropType<Date[]>;
|
1862
|
+
default: () => never[];
|
1863
|
+
};
|
1864
|
+
type: {
|
1865
|
+
type: StringConstructor;
|
1866
|
+
default: string;
|
1867
|
+
};
|
1783
1868
|
}>> & {
|
1784
1869
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1785
1870
|
}, {
|
1871
|
+
type: string;
|
1786
1872
|
updateUnchangedValue: boolean;
|
1787
1873
|
to: string | false | HTMLElement;
|
1874
|
+
holidays: Date[];
|
1788
1875
|
}>>;
|
1789
1876
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1790
1877
|
componentCfg: {
|