cnhis-design-vue 3.1.43-beta.3 → 3.1.43-beta.31

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.
Files changed (145) hide show
  1. package/es/components/base-search/index.d.ts +51 -114
  2. package/es/components/base-search/src/index.vue.d.ts +51 -114
  3. package/es/components/base-search/src/index.vue.js +1 -1
  4. package/es/components/base-search/style/index.css +1 -1
  5. package/es/components/classification/index.d.ts +9 -6
  6. package/es/components/classification/src/components/search-filter/index.vue.d.ts +3 -0
  7. package/es/components/classification/src/components/set-classification/index.vue.d.ts +8 -5
  8. package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
  9. package/es/components/classification/src/components/table-modal/index.vue.d.ts +2 -2
  10. package/es/components/classification/src/index.vue.d.ts +9 -6
  11. package/es/components/fabric-chart/index.d.ts +1 -1
  12. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  13. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -1
  14. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.d.ts +2 -1
  15. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +4 -4
  16. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  17. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
  18. package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
  19. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
  20. package/es/components/fabric-chart/src/hooks/useOther.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/useTemperatureChart.d.ts +3 -2
  22. package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -1
  23. package/es/components/form-config/index.d.ts +8 -8
  24. package/es/components/form-config/src/FormConfig.vue.d.ts +8 -8
  25. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -4
  26. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -4
  27. package/es/components/form-render/index.d.ts +4 -4
  28. package/es/components/form-render/src/FormRender.vue.d.ts +4 -4
  29. package/es/components/form-render/src/FormRender.vue.js +1 -1
  30. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -4
  31. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +77 -0
  32. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +93 -0
  33. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +6 -0
  34. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  35. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  36. package/es/components/form-render/src/components/renderer/select.js +1 -1
  37. package/es/components/form-render/src/hooks/useAnchor.js +1 -1
  38. package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -1
  39. package/es/components/form-render/style/index.css +1 -1
  40. package/es/components/guide/index.d.ts +2 -0
  41. package/es/components/guide/index.js +1 -0
  42. package/es/components/guide/src/renderer.d.ts +37 -0
  43. package/es/components/guide/src/renderer.js +1 -0
  44. package/es/components/guide/src/types/index.d.ts +40 -0
  45. package/es/components/guide/src/useGuide.d.ts +6 -0
  46. package/es/components/guide/src/useGuide.js +1 -0
  47. package/es/components/guide/src/utils/index.d.ts +14 -0
  48. package/es/components/guide/src/utils/index.js +1 -0
  49. package/es/components/iho-select-label/index.d.ts +352 -0
  50. package/es/components/iho-select-label/index.js +1 -0
  51. package/es/components/iho-select-label/src/LabelFormContent.vue.d.ts +141 -0
  52. package/es/components/iho-select-label/src/LabelFormContent.vue.js +1 -0
  53. package/es/components/iho-select-label/src/SelectLabel.vue.d.ts +213 -0
  54. package/es/components/iho-select-label/src/SelectLabel.vue.js +1 -0
  55. package/es/components/iho-select-label/src/components/label-classify.vue.d.ts +63 -0
  56. package/es/components/iho-select-label/src/components/label-classify.vue.js +1 -0
  57. package/es/components/iho-select-label/src/types/index.d.ts +11 -0
  58. package/es/components/iho-select-label/src/types/index.js +1 -0
  59. package/es/components/iho-select-label/style/iho-select-label-iconfont.ttf +0 -0
  60. package/es/components/iho-select-label/style/index.css +1 -0
  61. package/es/components/iho-table/index.d.ts +9 -2
  62. package/es/components/iho-table/src/IhoTable.vue.d.ts +9 -2
  63. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  64. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
  65. package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -1
  66. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +4 -1
  67. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -1
  68. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +3 -0
  69. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -1
  70. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +3 -0
  71. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +3 -11
  72. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  73. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  74. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  75. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  76. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +3 -0
  77. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -3
  78. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  79. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
  80. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +2 -0
  81. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.js +1 -0
  82. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  83. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -0
  84. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  85. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +3 -0
  86. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +3 -0
  87. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  88. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  89. package/es/components/iho-table/src/types/index.d.ts +4 -1
  90. package/es/components/iho-table/src/utils/dist/index.d.ts +44 -0
  91. package/es/components/iho-table/style/iconfont.ttf +0 -0
  92. package/es/components/iho-table/style/index.css +1 -1
  93. package/es/components/index.css +1 -1
  94. package/es/components/index.d.ts +4 -1
  95. package/es/components/index.js +1 -1
  96. package/es/components/info-header/index.d.ts +8 -8
  97. package/es/components/info-header/src/InfoHeader.vue.d.ts +8 -8
  98. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +4 -4
  99. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -4
  100. package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
  101. package/es/components/quick-search/index.d.ts +55 -224
  102. package/es/components/quick-search/src/index.vue.d.ts +55 -224
  103. package/es/components/quick-search/src/index.vue.js +1 -1
  104. package/es/components/quick-search/style/index.css +1 -1
  105. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +36 -0
  106. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +36 -0
  107. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +82 -0
  108. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  109. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +57 -0
  110. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +57 -0
  111. package/es/components/shortcut-setter/index.d.ts +4 -4
  112. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -4
  113. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +3 -0
  114. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +3 -0
  115. package/es/components/table-filter/src/components/render-widget/basicData.d.ts +4 -0
  116. package/es/components/table-filter/src/components/render-widget/basicData.js +1 -0
  117. package/es/components/table-filter/src/components/render-widget/components/Date.vue.d.ts +84 -0
  118. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
  119. package/es/components/table-filter/src/components/render-widget/components/DateRange.vue.d.ts +118 -0
  120. package/es/components/table-filter/src/components/render-widget/components/DateRange.vue.js +1 -0
  121. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.d.ts +67 -0
  122. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -0
  123. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +27 -8
  124. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
  125. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +4 -2
  126. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  127. package/es/components/table-filter/src/components/render-widget/enums.d.ts +17 -0
  128. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  129. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +5 -0
  130. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
  131. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +13 -3
  132. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  133. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +241 -16
  134. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  135. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +6 -2
  136. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  137. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +1 -0
  138. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  139. package/es/components/table-filter/src/types/enums.d.ts +3 -0
  140. package/es/components/table-filter/src/types/enums.js +1 -1
  141. package/es/components/table-filter/src/types/index.d.ts +27 -87
  142. package/es/shared/package.json.js +1 -1
  143. package/package.json +2 -2
  144. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.d.ts +0 -0
  145. /package/es/components/{iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.js → guide/src/types/index.js} +0 -0
@@ -57,12 +57,12 @@ declare const _default: import("vue").DefineComponent<{
57
57
  oneSave: (value: any) => Promise<void>;
58
58
  oneCancel: () => void;
59
59
  hanleAdd: () => void;
60
- edit: (item: IClassifyListType, name: string) => void;
61
- copy: (item: IClassifyListType, name: string) => void;
60
+ edit: (item: IClassifyListType) => void;
61
+ copy: (item: IClassifyListType) => void;
62
62
  saveAdd: (params: any) => Promise<void>;
63
63
  cancelSaveAdd: () => void;
64
64
  changeData: (data: any, checkedItemVal: any) => void;
65
- delItem: (checkedItemVal: any, name: string) => Promise<void>;
65
+ delItem: (checkedItemVal: any) => Promise<void>;
66
66
  setOneVisible: (flag: boolean) => void;
67
67
  resetPopconfirm: () => Promise<void>;
68
68
  oneVisible: import("vue").ComputedRef<boolean>;
@@ -167,8 +167,8 @@ declare const _default: import("vue").DefineComponent<{
167
167
  resetChangeWindow: () => void;
168
168
  dragEnd: () => void;
169
169
  clickli: (item: IClassifyListType) => void;
170
- clickChecked: (item: IClassifyListType, name: string) => void;
171
- changeSwitch: (item: IClassifyListType, name: string) => void;
170
+ clickChecked: (item: IClassifyListType) => void;
171
+ changeSwitch: (item: IClassifyListType) => void;
172
172
  changecommonSwitch: (item: IClassifyListType) => void;
173
173
  formatParams: (type: string) => {
174
174
  id: string;
@@ -553,6 +553,9 @@ declare const _default: import("vue").DefineComponent<{
553
553
  DATE: string;
554
554
  DATE_TIME: string;
555
555
  CHECKBOX_GROUP: string;
556
+ INPUTNUMBER_RANGE: string;
557
+ DATE_RANGE: string;
558
+ DATETIME_RANGE: string;
556
559
  };
557
560
  WidgetValEnums: {
558
561
  CUSTOM: string;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as a,openBlock as o,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f}from"vue";import{useMessage as u,NButton as p}from"naive-ui";import v from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import C from"../../../../table-filter/src/hooks/useMixins.js";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=y(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:y}){const b=e,h=u(),{handleGetConfigApi:A}=C();let L=i(b.conditionList),I=i(),T=i(!1),S=i({}),_=i([]),j=i(!1);const O=i(null),x=t();async function F(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await A(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}function k(){H(!1),L.value.forEach((e=>{e.checked=!1}))}function w(){T.value=!0}function G(e,i){T.value=!0,S.value=Object.assign(e,{from:"edit"})}function M(e,i){T.value=!0,S.value=Object.assign(e,{from:"copy"})}async function q(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(L.value)}),j.value=!0,!await A(e,"requestSaveTableCondiTion",{},b.filterApiConfig))return;O.value&&O.value.cancelSaveAdd(),y("saveGetTableCondiTionList"),T.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){T.value=!1,S.value={}}function D(e,i){L.value=e,I.value=i}async function E(e,i){if(e)try{let i={id:e.sid};if(!await A(i,"requestDeleteTableCondiTion",{},b.filterApiConfig))return;h.success("删除成功"),y("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else h.info("请选择行")}function H(e){y("setClassifyModal",e)}async function K(){try{let e={id:b.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await A(e,"requestResetDefaultSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}let N=n((()=>b.classifyModal));return a((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),a((()=>b.searchFieldList),(e=>{e&&e.length>0&&(_.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),a((()=>b.conditionList),(e=>{L.value=e}),{immediate:!0,deep:!0}),a((()=>T),(e=>{e||(S.value={})})),(i,t)=>(o(),l("div",m,[s(v,r({dataSource:c(L),visibleIn:c(N)},i.$attrs,{onHandleOk:F,onClose:k,onChangeData:D,onResetPopconfirm:K,edit:G,copy:M,delItem:E,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(p),{type:"info",onClick:w},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(T),loading:c(j),conditionList:c(L),actionList_prop:c(S),searchFieldList:c(_),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:q,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))}}),[["__file","index.vue"]]);export{b as default};
1
+ import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as a,openBlock as o,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f}from"vue";import{useMessage as u,NButton as p}from"naive-ui";import v from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import C from"../../../../table-filter/src/hooks/useMixins.js";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=y(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:y}){const b=e,h=u(),{handleGetConfigApi:A}=C();let L=i(b.conditionList),I=i(),T=i(!1),S=i({}),_=i([]),j=i(!1);const O=i(null),x=t();async function F(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await A(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}function k(){H(!1),L.value.forEach((e=>{e.checked=!1}))}function w(){T.value=!0}function G(e){T.value=!0,S.value=Object.assign(e,{from:"edit"})}function M(e){T.value=!0,S.value=Object.assign(e,{from:"copy"})}async function q(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(L.value)}),j.value=!0,!await A(e,"requestSaveTableCondiTion",{},b.filterApiConfig))return;O.value&&O.value.cancelSaveAdd(),y("saveGetTableCondiTionList"),T.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){T.value=!1,S.value={}}function D(e,i){L.value=e,I.value=i}async function E(e){if(e)try{let i={id:e.sid};if(!await A(i,"requestDeleteTableCondiTion",{},b.filterApiConfig))return;h.success("删除成功"),y("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else h.info("请选择行")}function H(e){y("setClassifyModal",e)}async function K(){try{let e={id:b.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await A(e,"requestResetDefaultSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}let N=n((()=>b.classifyModal));return a((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),a((()=>b.searchFieldList),(e=>{e&&e.length>0&&(_.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),a((()=>b.conditionList),(e=>{L.value=e}),{immediate:!0,deep:!0}),a((()=>T),(e=>{e||(S.value={})})),(i,t)=>(o(),l("div",m,[s(v,r({dataSource:c(L),visibleIn:c(N)},i.$attrs,{onHandleOk:F,onClose:k,onChangeData:D,onResetPopconfirm:K,edit:G,copy:M,delItem:E,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(p),{type:"info",onClick:w},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(T),loading:c(j),conditionList:c(L),actionList_prop:c(S),searchFieldList:c(_),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:q,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))}}),[["__file","index.vue"]]);export{b as default};
@@ -99,8 +99,8 @@ declare const _default: import("vue").DefineComponent<{
99
99
  resetChangeWindow: () => void;
100
100
  dragEnd: () => void;
101
101
  clickli: (item: IClassifyListType) => void;
102
- clickChecked: (item: IClassifyListType, name: string) => void;
103
- changeSwitch: (item: IClassifyListType, name: string) => void;
102
+ clickChecked: (item: IClassifyListType) => void;
103
+ changeSwitch: (item: IClassifyListType) => void;
104
104
  changecommonSwitch: (item: IClassifyListType) => void;
105
105
  formatParams: (type: string) => {
106
106
  id: string;
@@ -271,12 +271,12 @@ declare const _default: import("vue").DefineComponent<{
271
271
  oneSave: (value: any) => Promise<void>;
272
272
  oneCancel: () => void;
273
273
  hanleAdd: () => void;
274
- edit: (item: IClassifyListType, name: string) => void;
275
- copy: (item: IClassifyListType, name: string) => void;
274
+ edit: (item: IClassifyListType) => void;
275
+ copy: (item: IClassifyListType) => void;
276
276
  saveAdd: (params: any) => Promise<void>;
277
277
  cancelSaveAdd: () => void;
278
278
  changeData: (data: any, checkedItemVal: any) => void;
279
- delItem: (checkedItemVal: any, name: string) => Promise<void>;
279
+ delItem: (checkedItemVal: any) => Promise<void>;
280
280
  setOneVisible: (flag: boolean) => void;
281
281
  resetPopconfirm: () => Promise<void>;
282
282
  oneVisible: import("vue").ComputedRef<boolean>;
@@ -381,8 +381,8 @@ declare const _default: import("vue").DefineComponent<{
381
381
  resetChangeWindow: () => void;
382
382
  dragEnd: () => void;
383
383
  clickli: (item: IClassifyListType) => void;
384
- clickChecked: (item: IClassifyListType, name: string) => void;
385
- changeSwitch: (item: IClassifyListType, name: string) => void;
384
+ clickChecked: (item: IClassifyListType) => void;
385
+ changeSwitch: (item: IClassifyListType) => void;
386
386
  changecommonSwitch: (item: IClassifyListType) => void;
387
387
  formatParams: (type: string) => {
388
388
  id: string;
@@ -767,6 +767,9 @@ declare const _default: import("vue").DefineComponent<{
767
767
  DATE: string;
768
768
  DATE_TIME: string;
769
769
  CHECKBOX_GROUP: string;
770
+ INPUTNUMBER_RANGE: string;
771
+ DATE_RANGE: string;
772
+ DATETIME_RANGE: string;
770
773
  };
771
774
  WidgetValEnums: {
772
775
  CUSTOM: string;
@@ -983,8 +986,8 @@ declare const _default: import("vue").DefineComponent<{
983
986
  onGetQuickSearchListObj?: ((...args: any[]) => any) | undefined;
984
987
  }, {
985
988
  searchFieldList: any[];
986
- tableId: string;
987
989
  filterApiConfig: Record<string, any>;
990
+ tableId: string;
988
991
  conditionMap: IConditionMapType;
989
992
  conditionSid: string[];
990
993
  curClassificationIndex: number;
@@ -32,7 +32,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
32
32
  }>>;
33
33
  emits: (event: "select" | "add" | "change" | "remove", ...args: any[]) => void;
34
34
  isTemperature: import("vue").ComputedRef<boolean>;
35
- canvasRef: any;
35
+ canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
36
36
  canvas: import("vue").Ref<any>;
37
37
  propItems: any;
38
38
  redrawPoints: import("vue").Ref<any>;
@@ -1,4 +1,4 @@
1
- import { PropType } from 'vue';
1
+ import { type PropType } from 'vue';
2
2
  import { IType } from './interface';
3
3
  import { AnyObject } from '../../../../es/shared/types';
4
4
  declare const _default: import("vue").DefineComponent<{
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
34
34
  }>>;
35
35
  emits: (event: "select" | "add" | "change" | "remove", ...args: any[]) => void;
36
36
  isTemperature: import("vue").ComputedRef<boolean>;
37
- canvasRef: any;
37
+ canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
38
38
  canvas: import("vue").Ref<any>;
39
39
  propItems: any;
40
40
  redrawPoints: import("vue").Ref<any>;
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
2
  import { fabric } from '../utils';
3
3
  import { AnyObject } from '../../../../../es/shared/types';
4
- export declare function useBirthProcess(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: any, pointTipProps: any, pointMenuProps: any, commonFunc: AnyObject): {
4
+ export declare function useBirthProcess(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: AnyObject, pointMenuProps: AnyObject, commonFunc: AnyObject): {
5
5
  clickMenu: ({ item, target }: {
6
6
  item: any;
7
7
  target: any;
@@ -1,6 +1,7 @@
1
1
  import { Ref } from 'vue';
2
2
  import { fabric } from '../utils';
3
- export default function useBirthProcessChart(canvas: Ref<fabric.Canvas>, props: any, emits: any, canvasRef: Ref<any>): {
3
+ import { AnyObject } from '../../../../../es/shared/types';
4
+ export default function useBirthProcessChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>): {
4
5
  propItems: any;
5
6
  redrawPoints: Ref<any>;
6
7
  select: Ref<any>;
@@ -1,10 +1,10 @@
1
- import { Ref } from 'vue';
1
+ import { type Ref } from 'vue';
2
2
  import { fabric } from '../utils';
3
3
  import { IPropItems } from '../interface';
4
4
  import { AnyObject } from '../../../../../es/shared/types';
5
- export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, addRenderItem: Function | undefined, pointTipProps: any, pointMenuProps: any, commonFunc: AnyObject): {
6
- pointTipProps: any;
7
- pointMenuProps: any;
5
+ export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, addRenderItem: Function | undefined, pointTipProps: AnyObject, pointMenuProps: AnyObject, commonFunc: AnyObject): {
6
+ pointTipProps: AnyObject;
7
+ pointMenuProps: AnyObject;
8
8
  clickMenu: ({ item, target }: {
9
9
  item: any;
10
10
  target: any;
@@ -1 +1 @@
1
- import{format as n}from"date-fns";function e(e){const{xScaleList:t,originX:i,endY:r,xCellWidth:l,left:u,vitalSignsOriginY:o,painOriginY:a,canvasWidth:c}=e;return{cumputedX:function(n,e=!1){const i=new Date(n).getTime(),[r]=t,l=t.at(-1);if(i<r.start)return 0;if(i>l.end)return c;const u=t.findIndex((n=>n.end>=i));if(u>-1){return t[u].center}},cumputedY:function(n,t,i){const r=e[`${n}YCell`],l=+i-Math.min(...t);return("pain"===n?a.endY:o.endY)-r*l},getXValue:function(e){const i=t.findIndex((n=>n.left+l>=e));if(i>-1){const r=t[i],l=e-r.left,u=r.scaleCell*l,o=r.start+u;return n(new Date(o),"yyyy-MM-dd HH:mm")}},getYValue:function(n,t){var i;const r=e[`${n}YCell`],l=(null==(i=u.yScaleValue.find((e=>e.type===n)))?void 0:i.list)||[],c=l.length?Math.min(...l):0,d=(("pain"===n?a.endY:o.endY)-t)/r+c;return Math.floor(100*d)/100}}}function t(e){const{xAxis:t,originX:i,originY:r,xCellWidth:l,endY:u,timeXCell:o,startTime:a,scaleValues:c}=e;return{cumputedX:function(n){return(new Date(n).getTime()-a)/o+i},cumputedY:function(n,t,i){const[r]=t;return u-(+i-r)/e[`${n}YCell`]},getXValue:function(e){return n(new Date((e-i)*o+a),"yyyy-MM-dd HH:mm")},getYValue:function(n,t){const i=c.find((e=>n===e.key)),[r]=(null==i?void 0:i.range)||[0],l=(u-t)*e[`${n}YCell`]+r;return Math.floor(100*l)/100}}}export{t as useBirthProcessCumputedPoint,e as useCumputedPoint};
1
+ import{format as n}from"date-fns";function t(t){const{xScaleList:e,originX:i,endY:l,xCellWidth:r,left:u,vitalSignsOriginY:o,painOriginY:a,canvasWidth:c}=t;return{cumputedX:function(n,t=!1){const i=new Date(n).getTime(),[l]=e,r=e.at(-1);if(i<l.start)return 0;if(i>r.end)return c;const u=e.findIndex((n=>n.end>=i));if(u>-1){return e[u].center}},cumputedY:function(n,e,i){const l=t[`${n}YCell`],r=+i-Math.min(...e);return("pain"===n?a.endY:o.endY)-l*r},getXValue:function(t){const i=e.findIndex((n=>n.left+r>=t));if(i>-1){const l=e[i],r=t-l.left,u=l.scaleCell*r,o=l.start+u;return n(new Date(o),"yyyy-MM-dd HH:mm")}},getYValue:function(n,e){var i;const l=t[`${n}YCell`],r=(null==(i=u.yScaleValue.find((t=>t.type===n)))?void 0:i.list)||[],c=r.length?Math.min(...r):0,d=(("pain"===n?a.endY:o.endY)-e)/l+c,f=Math.floor(100*d)/100,s=f.toString().split(".");return!(null==s?void 0:s[1])||+s[1]<99?f:+s[0]+1}}}function e(t){const{xAxis:e,originX:i,originY:l,xCellWidth:r,endY:u,timeXCell:o,startTime:a,scaleValues:c}=t;return{cumputedX:function(n){return(new Date(n).getTime()-a)/o+i},cumputedY:function(n,e,i){const[l]=e;return u-(+i-l)/t[`${n}YCell`]},getXValue:function(t){return n(new Date((t-i)*o+a),"yyyy-MM-dd HH:mm")},getYValue:function(n,e){const i=c.find((t=>n===t.key)),[l]=(null==i?void 0:i.range)||[0],r=(u-e)*t[`${n}YCell`]+l;return Math.floor(100*r)/100}}}export{e as useBirthProcessCumputedPoint,t as useCumputedPoint};
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
2
  import { fabric } from '../utils';
3
3
  import { IPropItems } from '../interface';
4
- export declare function useEvent(element: HTMLCanvasElement | any): void;
4
+ export declare function useEvent(element: HTMLCanvasElement | null): void;
5
5
  export declare function useCanvasEvent(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any): {
6
6
  select: (key: string) => void;
7
7
  };
@@ -1 +1 @@
1
- import{useEventListener as e}from"@vueuse/core";import{fabric as t}from"../utils/index.js";function n(t){e(t.nextSibling,"contextmenu",(e=>(e.preventDefault(),!1)))}function o(e,n,o){const{originY:l,originX:i,endX:s,endY:r,iconsWidth:u,selectionStyle:d,topList:h}=n;function c(n,o){const{left:l,top:i,width:s,height:r}=n,u=new t.Rect({key:o,left:null!=l?l:0,top:null!=i?i:0,width:s,height:r,stroke:"transparent",fill:"transparent",lockMovementX:!0,lockMovementY:!0,transparentCorners:!1,hasControls:!1,...d,strokeWidth:0});return e.value.add(u),u}let f=[];function k(e){p();a(null==f?void 0:f.find((t=>t.key===e)))}function p(){f.forEach((e=>{e.set("strokeWidth",0),e.key.endsWith("All")&&e.sendToBack()}))}function a(t){var n;e.value.discardActiveObject(),!(null==t?void 0:t.key.includes("grid"))&&(null==t||t.bringToFront()),null==t||t.set("strokeWidth",null!=(n=d.strokeWidth)?n:2)}return("boolean"!=typeof(null==d?void 0:d.evented)||(null==d?void 0:d.evented))&&(f=function(){const e=[];e.push(c({left:u,top:l+1,width:i-u,height:r-l-3},"left"));let t=0;return h.forEach(((o,l)=>{l>0&&(t+=n[`${h[l-1].key}Height`]);const r={top:t+1,height:n[`${o.key}Height`]-1};e.push(c({left:u,width:s-u,...r},o.key+"All")),e.push(c({left:u,width:i-u,...r},o.key+"Title")),e.push(c({left:i,width:s-i,...r},o.key))})),e.push(c({left:i,top:l+1,width:s-i,height:r-l-3},"grid")),e.forEach((e=>{e.key.endsWith("All")?(e.sendToBack(),e.on("mouseup",(t=>{const{button:n,pointer:l}=t;if(1==n){const t=e.key.replace("All",""),n=(null==l?void 0:l.x)&&(null==l?void 0:l.x)<=i?t+"Title":t;e.sendToBack(),k(n),o("select",n)}}))):e.on("mousedown",(()=>{p(),a(e),o("select",e.key)}))})),e}()),{select:k}}export{o as useCanvasEvent,n as useEvent};
1
+ import{useEventListener as e}from"@vueuse/core";import{fabric as t}from"../utils/index.js";function n(t){t&&e(t.nextSibling,"contextmenu",(e=>(e.preventDefault(),!1)))}function o(e,n,o){const{originY:l,originX:i,endX:s,endY:r,iconsWidth:u,selectionStyle:d,topList:h}=n;function c(n,o){const{left:l,top:i,width:s,height:r}=n,u=new t.Rect({key:o,left:null!=l?l:0,top:null!=i?i:0,width:s,height:r,stroke:"transparent",fill:"transparent",lockMovementX:!0,lockMovementY:!0,transparentCorners:!1,hasControls:!1,...d,strokeWidth:0});return e.value.add(u),u}let f=[];function k(e){p();a(null==f?void 0:f.find((t=>t.key===e)))}function p(){f.forEach((e=>{e.set("strokeWidth",0),e.key.endsWith("All")&&e.sendToBack()}))}function a(t){var n;e.value.discardActiveObject(),!(null==t?void 0:t.key.includes("grid"))&&(null==t||t.bringToFront()),null==t||t.set("strokeWidth",null!=(n=d.strokeWidth)?n:2)}return("boolean"!=typeof(null==d?void 0:d.evented)||(null==d?void 0:d.evented))&&(f=function(){const e=[];e.push(c({left:u,top:l+1,width:i-u,height:r-l-3},"left"));let t=0;return h.forEach(((o,l)=>{l>0&&(t+=n[`${h[l-1].key}Height`]);const r={top:t+1,height:n[`${o.key}Height`]-1};e.push(c({left:u,width:s-u,...r},o.key+"All")),e.push(c({left:u,width:i-u,...r},o.key+"Title")),e.push(c({left:i,width:s-i,...r},o.key))})),e.push(c({left:i,top:l+1,width:s-i,height:r-l-3},"grid")),e.forEach((e=>{e.key.endsWith("All")?(e.sendToBack(),e.on("mouseup",(t=>{const{button:n,pointer:l}=t;if(1==n){const t=e.key.replace("All",""),n=(null==l?void 0:l.x)&&(null==l?void 0:l.x)<=i?t+"Title":t;e.sendToBack(),k(n),o("select",n)}}))):e.on("mousedown",(()=>{p(),a(e),o("select",e.key)}))})),e}()),{select:k}}export{o as useCanvasEvent,n as useEvent};
@@ -2,6 +2,6 @@ import { Ref } from 'vue';
2
2
  import { fabric } from '../utils';
3
3
  import { IPropItems } from '../interface';
4
4
  import { AnyObject } from '../../../../../es/shared/types';
5
- export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any, setPopup: Function, pointTipProps: any, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, isAddPoint: Function, updateData: Function, useCommon: AnyObject): {
5
+ export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, setPopup: Function, pointTipProps: AnyObject, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, isAddPoint: Function, updateData: Function, useCommon: AnyObject): {
6
6
  drawScaleValue: (yScaleValueList: any[]) => void;
7
7
  };
@@ -1 +1 @@
1
- import{fabric as t}from"../utils/index.js";import{defaultStyle as e}from"./useDraw.js";function n(n,i,l){const{other:o,vitalSignsOriginY:r,xCellWidth:a,yCellHeight:c}=i;let s=0;function h(n,i,l){const o=[];String(n.value).split("").forEach(((i,l)=>{const r=new t.Text(i,{left:0,top:c*l,originX:"center",...e,objectCaching:!1,...n.style||{}});s=(c-(r.height||0))/2,o.push(r)}));const r={originX:"center",left:i,top:l+s,baseTop:(n.baseTop||0)*c,trueLeft:i,trueHeight:o.length*c,objectCaching:!1};return new t.Group(o,r)}!function(){if(!(null==o?void 0:o.list))return!1;const i=[],s=[];o.list.forEach(((t,e)=>{const n=0===e?"vertical":t.align||"vertical",i=l(t.time,!0),o=s.find((t=>t.left==i));if(o)o[n].push(t);else{const e={left:i,vertical:[],horizontal:[]};e[n].push(t),s.push(e)}})),s.forEach((t=>{let e=r.originY,n=t.left;t.vertical.forEach(((l,o)=>{var s,u;const f=(l.baseTop||0)*c,g=(null==(s=i.at(-1))?void 0:s.left)||0;0===o&&t.left<=g&&(n=g+a);if(i.filter((t=>t.trueLeft===n)).length){const t=String(l.value).length*c,o=(null==(u=i.at(-1))?void 0:u.trueHeight)||0;e+=o,e+t+f>r.endY&&(e=r.originY,n+=a)}e+=f,String(l.value).length&&i.push(h(l,n,e))})),t.horizontal.forEach(((e,l)=>{var o;const s=r.originY+(e.baseTop||0)*c,u=(null==(o=i.at(-1))?void 0:o.left)||0;t.left<=u&&(n=u+a),String(e.value).length&&i.push(h(e,n,s))}))}));const u=i.length>0?new t.Group([...i],{...e,objectCaching:!1}):null;u&&n.value.add(u)}()}export{n as useOther};
1
+ import{fabric as t}from"../utils/index.js";import{defaultStyle as e}from"./useDraw.js";function n(n,i,l){const{other:o,vitalSignsOriginY:r,xCellWidth:a,yCellHeight:c,endX:s}=i;let u=0;function h(n,i,l){const o=[];String(n.value).split("").forEach(((i,l)=>{const r=new t.Text(i,{left:0,top:c*l,originX:"center",...e,objectCaching:!1,...n.style||{}});u=(c-(r.height||0))/2,o.push(r)}));const r={originX:"center",left:i,top:l+u,baseTop:(n.baseTop||0)*c,trueLeft:i,trueHeight:o.length*c,objectCaching:!1};return new t.Group(o,r)}!function(){if(!(null==o?void 0:o.list))return!1;const i=[],u=[];o.list.forEach(((t,e)=>{const n=0===e?"vertical":t.align||"vertical",i=l(t.time,!0);if(i>s)return;const o=u.find((t=>t.left==i));if(o)o[n].push(t);else{const e={left:i,vertical:[],horizontal:[]};e[n].push(t),u.push(e)}})),u.forEach((t=>{let e=r.originY,n=t.left;t.vertical.forEach(((l,o)=>{var s,u;const f=(l.baseTop||0)*c,g=(null==(s=i.at(-1))?void 0:s.left)||0;0===o&&t.left<=g&&(n=g+a);if(i.filter((t=>t.trueLeft===n)).length){const t=String(l.value).length*c,o=(null==(u=i.at(-1))?void 0:u.trueHeight)||0;e+=o,e+t+f>r.endY&&(e=r.originY,n+=a)}e+=f,String(l.value).length&&i.push(h(l,n,e))})),t.horizontal.forEach(((e,l)=>{var o;const s=r.originY+(e.baseTop||0)*c,u=(null==(o=i.at(-1))?void 0:o.left)||0;t.left<=u&&(n=u+a),String(e.value).length&&i.push(h(e,n,s))}))}));const f=i.length>0?new t.Group([...i],{...e,objectCaching:!1}):null;f&&n.value.add(f)}()}export{n as useOther};
@@ -1,6 +1,7 @@
1
- import { Ref } from 'vue';
1
+ import { type Ref } from 'vue';
2
2
  import { fabric } from '../utils';
3
- export default function useTemperatureChart(canvas: Ref<fabric.Canvas>, props: any, emits: any, canvasRef: Ref<any>): {
3
+ import { AnyObject } from '../../../../../es/shared/types';
4
+ export default function useTemperatureChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>): {
4
5
  propItems: any;
5
6
  redrawPoints: Ref<any>;
6
7
  select: Ref<any>;
@@ -1 +1 @@
1
- import{ref as e,reactive as t,computed as a,onMounted as l,nextTick as u}from"vue";import{defaultBorderStyle as i}from"./useDraw.js";import{useCumputedPoint as n}from"./useCumputedPoint.js";import{useTop as r}from"./useTop.js";import{useLeft as o}from"./useLeft.js";import{useRight as s}from"./useRight.js";import{useCenter as d}from"./useCenter.js";import{useBottom as v}from"./useBottom.js";import{useOther as c}from"./useOther.js";import{useEvent as p,useCanvasEvent as h}from"./useEvent.js";import"../utils/index.js";import{setOtherType as g}from"../utils/utils.js";import"lodash-es";import"date-fns";import{useCommon as m}from"./useCommon.js";function f(f,y,Y,S){const w=15,b=e(),C=e(),x=e(),j=t({show:!1,point:{x:0,y:0},list:[]}),D=t({show:!1,point:{x:0,y:0},list:[],target:null}),V=a((()=>{const{top:e}=y.data;return e.date.show&&(e.date.height||w)||0})),H=a((()=>{var e;const{top:t}=y.data;return(null==(e=t.hospitalDays)?void 0:e.show)&&(t.hospitalDays.height||w)||0})),X=a((()=>{var e;const{top:t}=y.data;return(null==(e=t.operationDays)?void 0:e.show)&&(t.operationDays.height||w)||0})),L=a((()=>{var e,t,a;const{top:l}=y.data;return((null==(e=l.xScalevalue)?void 0:e.show)&&(l.xScalevalue.height||w)||0)+((null==(t=l.xScalevalue)?void 0:t.show)&&null!=(a=l.dayHeight)?a:0)})),P=a((()=>{var e;const{bottom:t}=y.data;return(null==(e=null==t?void 0:t.breathing)?void 0:e.show)&&(t.breathing.height||30)||0})),$=a((()=>{const{grid:e}=y.data;return e.mainXCell*e.subXCell+e.surplusXCell})),I=a((()=>{const{grid:e}=y.data;return e.mainYCell*e.subYCell+e.surplusYCell})),N=a((()=>{var e;const{width:t,right:a=null,top:l}=y.data;if(!a)return t;return t-(null!=(e=a.width)?e:0)})),T=a((()=>{const{grid:e}=y.data;return N.value-e.surplusXCell*G.value})),M=a((()=>{const{top:e,left:t}=y.data;return e.titleWidth+q.value})),O=a((()=>{const{bottom:e=null,height:t}=y.data;if(!e)return t;return t-(e.height||30)})),W=a((()=>{var e;const{top:t}=y.data,a=t.xScalevalue.show&&(null!=(e=t.dayHeight)?e:0)||0,l=t.xScalevalue.show&&(t.xScalevalue.height||w)||0;return V.value+a+l+H.value+X.value})),k=a((()=>{const{grid:e}=y.data;return W.value+e.surplusYCell*R.value})),G=a((()=>(N.value-M.value)/$.value)),R=a((()=>(O.value-W.value)/I.value)),q=a((()=>{var e,t;const{left:a}=y.data;return(null==(e=a.icons)?void 0:e.show)&&((null==(t=a.icons)?void 0:t.width)||100)||0})),z=a((()=>{const{top:e}=y.data,t=e.date.list,a=e.xScalevalue.times;let l=M.value-G.value;function u(e){const[t="2022",a="01",l="01"]=String(e).match(/\d+/g)||[];return`20${t}`.slice(-4)+"-"+`00${a}`.slice(-2)+"-"+`00${l}`.slice(-2)}return t.map((e=>a.map((t=>{l+=G.value;const a=new Date(`${u(e)} ${t.start}`).getTime(),i=new Date(`${u(e)} ${t.end}`).getTime();return{start:a,end:i,left:l,center:l+G.value/2,scaleCell:(i-a)/G.value}})))).flat()})),A=a((()=>le("breathe"))),B=a((()=>le("pulse"))),E=a((()=>le("temperature"))),F=a((()=>le("pain"))),J=a((()=>{var e;return(null==(e=y.data.grid)?void 0:e.event)||{selectable:!0,evented:!0,hovered:!0}})),K=a((()=>{const{left:e}=y.data;return e.yScaleValue.map((e=>e.dataList.filter((e=>e.show)).map(((t,a)=>({...t,bigType:g(t.title,e.type),unit:e.unit,dataIndex:a}))))).flat()})),Q=a((()=>{const{left:e}=y.data;return e.yScaleValue.findIndex((e=>"pain"===e.type))})),U=a((()=>{const{grid:e}=y.data;return-1===Q.value?0:R.value*e.subYCell})),Z=a((()=>{const{left:e}=y.data,t={originY:O.value,endY:O.value};return 0===Q.value&&e.yScaleValue.length>1?(t.originY=k.value,t.endY=k.value+U.value):Q.value===e.yScaleValue.length-1&&(t.originY=O.value-U.value,t.endY=O.value),t})),_=a((()=>{const{left:e}=y.data,t={originY:W.value,endY:O.value};return 0===Q.value&&e.yScaleValue.length>1?(t.originY=k.value+U.value,t.endY=O.value):Q.value===e.yScaleValue.length-1&&(t.originY=k.value,t.endY=O.value-U.value),t})),ee=a((()=>{const{top:e}=y.data,t=[];for(const a in e)e[a].show&&t.push({...e[a],key:a});return t.sort(((e,t)=>e.seq-t.seq))})),te=a((()=>{var e;const{left:t,right:a}=y.data,l=t.yScaleValue.find((e=>"temperature"===e.type)),u=(null==a?void 0:a.yScaleValue)||{};return(null==(e=null==l?void 0:l.list)?void 0:e.length)&&Object.assign(u,{list:l.list.map((e=>Math.floor(100*(1.8*e+32))/100)),spaceGridNumber:l.spaceGridNumber}),u})),ae=t({canvasWidth:y.data.width,canvasHeight:y.data.height,borderStyle:y.data.borderStyle||i,selectionStyle:y.data.selectionStyle||{},dateHeight:V.value,hospitalDaysHeight:H.value,operationDaysHeight:X.value,xScalevalueHeight:L.value,topList:ee.value,breathingHeight:P.value,hospitalizationDate:y.data.hospitalizationDate,grid:y.data.grid,top:y.data.top,left:y.data.left,right:y.data.right,bottom:y.data.bottom,other:y.data.other,painIndex:Q.value,painHeight:U.value,painOriginY:Z.value,vitalSignsOriginY:_.value,gridXNumber:$.value,gridYNumber:I.value,iconsWidth:q.value,originX:M.value,originY:W.value,originYLimit:k.value,endX:N.value,endXLimit:T.value,endY:O.value,xCellWidth:G.value,yCellHeight:R.value,xScaleList:z.value,breatheYCell:A.value,pulseYCell:B.value,temperatureYCell:E.value,painYCell:F.value,event:J.value,itemList:K.value,getRightInfo:te.value,config:y.data.config||{}});function le(e){const{yScaleValue:t}=y.data.left,a=t.find((t=>t.type===e)),l=(null==a?void 0:a.list)||[];return l.length?R.value/((l[1]-l[0])/a.spaceGridNumber):0}const{cumputedX:ue,cumputedY:ie,getXValue:ne,getYValue:re}=n(ae),oe=m(f);return l((()=>{u((()=>{r(f,ae);const{setPopup:e,isAddPoint:t,updateData:a,redrawPoints:l,clickMenu:u}=d(f,ae,Y,ue,ie,ne,re,y.addRenderItem,j,D,oe);C.value=l,x.value=u;const{drawScaleValue:i}=o(f,ae,Y,e,j,ue,ie,ne,re,t,a,oe);s(f,ae,i),v(f,ae),c(f,ae,ue),p(S.value);const{select:n}=h(f,ae,Y);b.value=n}))})),{propItems:ae,redrawPoints:C,select:b,pointTipProps:j,pointMenuProps:D,clickMenu:x}}export{f as default};
1
+ import{ref as e,reactive as t,computed as a,onMounted as l,nextTick as u}from"vue";import{defaultBorderStyle as i}from"./useDraw.js";import{useCumputedPoint as n}from"./useCumputedPoint.js";import{useTop as r}from"./useTop.js";import{useLeft as o}from"./useLeft.js";import{useRight as s}from"./useRight.js";import{useCenter as d}from"./useCenter.js";import{useBottom as v}from"./useBottom.js";import{useOther as c}from"./useOther.js";import{useEvent as p,useCanvasEvent as h}from"./useEvent.js";import"../utils/index.js";import{setOtherType as g}from"../utils/utils.js";import"lodash-es";import"date-fns";import{useCommon as m}from"./useCommon.js";function f(f,y,Y,S){const w=15,b=e(),C=e(),x=e(),j=t({show:!1,point:{x:0,y:0},list:[]}),D=t({show:!1,point:{x:0,y:0},list:[],target:null}),V=a((()=>{const{top:e}=y.data;return e.date.show&&(e.date.height||w)||0})),X=a((()=>{var e;const{top:t}=y.data;return(null==(e=t.hospitalDays)?void 0:e.show)&&(t.hospitalDays.height||w)||0})),H=a((()=>{var e;const{top:t}=y.data;return(null==(e=t.operationDays)?void 0:e.show)&&(t.operationDays.height||w)||0})),L=a((()=>{var e,t,a;const{top:l}=y.data;return((null==(e=l.xScalevalue)?void 0:e.show)&&(l.xScalevalue.height||w)||0)+((null==(t=l.xScalevalue)?void 0:t.show)&&null!=(a=l.dayHeight)?a:0)})),P=a((()=>{var e;const{bottom:t}=y.data;return(null==(e=null==t?void 0:t.breathing)?void 0:e.show)&&(t.breathing.height||30)||0})),$=a((()=>{const{grid:e}=y.data;return e.mainXCell*e.subXCell+e.surplusXCell})),I=a((()=>{const{grid:e}=y.data;return e.mainYCell*e.subYCell+e.surplusYCell})),N=a((()=>{var e;const{width:t,right:a=null,top:l}=y.data;if(!a)return t;return t-(null!=(e=a.width)?e:0)})),T=a((()=>{const{grid:e}=y.data;return N.value-e.surplusXCell*G.value})),M=a((()=>{const{top:e,left:t}=y.data;return e.titleWidth+q.value})),O=a((()=>{const{bottom:e=null,height:t}=y.data;if(!e)return t;return t-(e.height||30)})),W=a((()=>{var e;const{top:t}=y.data,a=t.xScalevalue.show&&(null!=(e=t.dayHeight)?e:0)||0,l=t.xScalevalue.show&&(t.xScalevalue.height||w)||0;return V.value+a+l+X.value+H.value})),k=a((()=>{const{grid:e}=y.data;return W.value+e.surplusYCell*R.value})),G=a((()=>(N.value-M.value)/$.value)),R=a((()=>(O.value-W.value)/I.value)),q=a((()=>{var e,t;const{left:a}=y.data;return(null==(e=a.icons)?void 0:e.show)&&((null==(t=a.icons)?void 0:t.width)||100)||0})),z=a((()=>{var e,t;const{top:a,grid:l}=y.data,u=(null==(t=null==(e=a.date.list)?void 0:e.slice)?void 0:t.call(e,0,l.mainXCell))||[],i=a.xScalevalue.times;let n=M.value-G.value;function r(e){const[t="2022",a="01",l="01"]=String(e).match(/\d+/g)||[];return`20${t}`.slice(-4)+"-"+`00${a}`.slice(-2)+"-"+`00${l}`.slice(-2)}return u.map((e=>i.map((t=>{n+=G.value;const a=new Date(`${r(e)} ${t.start}`).getTime(),l=new Date(`${r(e)} ${t.end}`).getTime();return{start:a,end:l,left:n,center:n+G.value/2,scaleCell:(l-a)/G.value}})))).flat()})),A=a((()=>le("breathe"))),B=a((()=>le("pulse"))),E=a((()=>le("temperature"))),F=a((()=>le("pain"))),J=a((()=>{var e;return(null==(e=y.data.grid)?void 0:e.event)||{selectable:!0,evented:!0,hovered:!0}})),K=a((()=>{const{left:e}=y.data;return e.yScaleValue.map((e=>e.dataList.filter((e=>e.show)).map(((t,a)=>({...t,bigType:g(t.title,e.type),unit:e.unit,dataIndex:a}))))).flat()})),Q=a((()=>{const{left:e}=y.data;return e.yScaleValue.findIndex((e=>"pain"===e.type))})),U=a((()=>{const{grid:e}=y.data;return-1===Q.value?0:R.value*e.subYCell})),Z=a((()=>{const{left:e}=y.data,t={originY:O.value,endY:O.value};return 0===Q.value&&e.yScaleValue.length>1?(t.originY=k.value,t.endY=k.value+U.value):Q.value===e.yScaleValue.length-1&&(t.originY=O.value-U.value,t.endY=O.value),t})),_=a((()=>{const{left:e}=y.data,t={originY:W.value,endY:O.value};return 0===Q.value&&e.yScaleValue.length>1?(t.originY=k.value+U.value,t.endY=O.value):Q.value===e.yScaleValue.length-1&&(t.originY=k.value,t.endY=O.value-U.value),t})),ee=a((()=>{var e,t;const{top:a,grid:l}=y.data,u=[];for(const i in a)a[i].show&&u.push({...a[i],list:(null==(t=null==(e=a[i].list)?void 0:e.slice)?void 0:t.call(e,0,l.mainXCell))||[],key:i});return u.sort(((e,t)=>e.seq-t.seq))})),te=a((()=>{var e;const{left:t,right:a}=y.data,l=t.yScaleValue.find((e=>"temperature"===e.type)),u=(null==a?void 0:a.yScaleValue)||{};return(null==(e=null==l?void 0:l.list)?void 0:e.length)&&Object.assign(u,{list:l.list.map((e=>Math.floor(100*(1.8*e+32))/100)),spaceGridNumber:l.spaceGridNumber}),u})),ae=t({canvasWidth:y.data.width,canvasHeight:y.data.height,borderStyle:y.data.borderStyle||i,selectionStyle:y.data.selectionStyle||{},dateHeight:V.value,hospitalDaysHeight:X.value,operationDaysHeight:H.value,xScalevalueHeight:L.value,topList:ee.value,breathingHeight:P.value,hospitalizationDate:y.data.hospitalizationDate,grid:y.data.grid,top:y.data.top,left:y.data.left,right:y.data.right,bottom:y.data.bottom,other:y.data.other,painIndex:Q.value,painHeight:U.value,painOriginY:Z.value,vitalSignsOriginY:_.value,gridXNumber:$.value,gridYNumber:I.value,iconsWidth:q.value,originX:M.value,originY:W.value,originYLimit:k.value,endX:N.value,endXLimit:T.value,endY:O.value,xCellWidth:G.value,yCellHeight:R.value,xScaleList:z.value,breatheYCell:A.value,pulseYCell:B.value,temperatureYCell:E.value,painYCell:F.value,event:J.value,itemList:K.value,getRightInfo:te.value,config:y.data.config||{}});function le(e){const{yScaleValue:t}=y.data.left,a=t.find((t=>t.type===e)),l=(null==a?void 0:a.list)||[];return l.length?R.value/((l[1]-l[0])/a.spaceGridNumber):0}const{cumputedX:ue,cumputedY:ie,getXValue:ne,getYValue:re}=n(ae),oe=m(f);return l((()=>{u((()=>{r(f,ae);const{setPopup:e,isAddPoint:t,updateData:a,redrawPoints:l,clickMenu:u}=d(f,ae,Y,ue,ie,ne,re,y.addRenderItem,j,D,oe);C.value=l,x.value=u;const{drawScaleValue:i}=o(f,ae,Y,e,j,ue,ie,ne,re,t,a,oe);s(f,ae,i),v(f,ae),c(f,ae,ue),p(S.value);const{select:n}=h(f,ae,Y);b.value=n}))})),{propItems:ae,redrawPoints:C,select:b,pointTipProps:j,pointMenuProps:D,clickMenu:x}}export{f as default};
@@ -3692,7 +3692,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
3692
3692
  type: BooleanConstructor;
3693
3693
  };
3694
3694
  bordered: {
3695
- type: BooleanConstructor;
3695
+ type: (BooleanConstructor | StringConstructor)[];
3696
3696
  default: boolean;
3697
3697
  };
3698
3698
  }, {
@@ -3824,7 +3824,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
3824
3824
  type: BooleanConstructor;
3825
3825
  };
3826
3826
  bordered: {
3827
- type: BooleanConstructor;
3827
+ type: (BooleanConstructor | StringConstructor)[];
3828
3828
  default: boolean;
3829
3829
  };
3830
3830
  }>> & {
@@ -4272,7 +4272,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
4272
4272
  type: BooleanConstructor;
4273
4273
  };
4274
4274
  bordered: {
4275
- type: BooleanConstructor;
4275
+ type: (BooleanConstructor | StringConstructor)[];
4276
4276
  default: boolean;
4277
4277
  };
4278
4278
  }>> & {
@@ -4290,7 +4290,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
4290
4290
  consumer: boolean;
4291
4291
  enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
4292
4292
  linebarAutoHidden: boolean;
4293
- bordered: boolean;
4293
+ bordered: string | boolean;
4294
4294
  }>;
4295
4295
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
4296
4296
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -9677,7 +9677,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
9677
9677
  type: BooleanConstructor;
9678
9678
  };
9679
9679
  bordered: {
9680
- type: BooleanConstructor;
9680
+ type: (BooleanConstructor | StringConstructor)[];
9681
9681
  default: boolean;
9682
9682
  };
9683
9683
  }, {
@@ -9809,7 +9809,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
9809
9809
  type: BooleanConstructor;
9810
9810
  };
9811
9811
  bordered: {
9812
- type: BooleanConstructor;
9812
+ type: (BooleanConstructor | StringConstructor)[];
9813
9813
  default: boolean;
9814
9814
  };
9815
9815
  }>> & {
@@ -10257,7 +10257,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
10257
10257
  type: BooleanConstructor;
10258
10258
  };
10259
10259
  bordered: {
10260
- type: BooleanConstructor;
10260
+ type: (BooleanConstructor | StringConstructor)[];
10261
10261
  default: boolean;
10262
10262
  };
10263
10263
  }>> & {
@@ -10275,7 +10275,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
10275
10275
  consumer: boolean;
10276
10276
  enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
10277
10277
  linebarAutoHidden: boolean;
10278
- bordered: boolean;
10278
+ bordered: string | boolean;
10279
10279
  }>;
10280
10280
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
10281
10281
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -3694,7 +3694,7 @@ declare const _default: import("vue").DefineComponent<{
3694
3694
  type: BooleanConstructor;
3695
3695
  };
3696
3696
  bordered: {
3697
- type: BooleanConstructor;
3697
+ type: (BooleanConstructor | StringConstructor)[];
3698
3698
  default: boolean;
3699
3699
  };
3700
3700
  }, {
@@ -3826,7 +3826,7 @@ declare const _default: import("vue").DefineComponent<{
3826
3826
  type: BooleanConstructor;
3827
3827
  };
3828
3828
  bordered: {
3829
- type: BooleanConstructor;
3829
+ type: (BooleanConstructor | StringConstructor)[];
3830
3830
  default: boolean;
3831
3831
  };
3832
3832
  }>> & {
@@ -4274,7 +4274,7 @@ declare const _default: import("vue").DefineComponent<{
4274
4274
  type: BooleanConstructor;
4275
4275
  };
4276
4276
  bordered: {
4277
- type: BooleanConstructor;
4277
+ type: (BooleanConstructor | StringConstructor)[];
4278
4278
  default: boolean;
4279
4279
  };
4280
4280
  }>> & {
@@ -4292,7 +4292,7 @@ declare const _default: import("vue").DefineComponent<{
4292
4292
  consumer: boolean;
4293
4293
  enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
4294
4294
  linebarAutoHidden: boolean;
4295
- bordered: boolean;
4295
+ bordered: string | boolean;
4296
4296
  }>;
4297
4297
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
4298
4298
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -9679,7 +9679,7 @@ declare const _default: import("vue").DefineComponent<{
9679
9679
  type: BooleanConstructor;
9680
9680
  };
9681
9681
  bordered: {
9682
- type: BooleanConstructor;
9682
+ type: (BooleanConstructor | StringConstructor)[];
9683
9683
  default: boolean;
9684
9684
  };
9685
9685
  }, {
@@ -9811,7 +9811,7 @@ declare const _default: import("vue").DefineComponent<{
9811
9811
  type: BooleanConstructor;
9812
9812
  };
9813
9813
  bordered: {
9814
- type: BooleanConstructor;
9814
+ type: (BooleanConstructor | StringConstructor)[];
9815
9815
  default: boolean;
9816
9816
  };
9817
9817
  }>> & {
@@ -10259,7 +10259,7 @@ declare const _default: import("vue").DefineComponent<{
10259
10259
  type: BooleanConstructor;
10260
10260
  };
10261
10261
  bordered: {
10262
- type: BooleanConstructor;
10262
+ type: (BooleanConstructor | StringConstructor)[];
10263
10263
  default: boolean;
10264
10264
  };
10265
10265
  }>> & {
@@ -10277,7 +10277,7 @@ declare const _default: import("vue").DefineComponent<{
10277
10277
  consumer: boolean;
10278
10278
  enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
10279
10279
  linebarAutoHidden: boolean;
10280
- bordered: boolean;
10280
+ bordered: string | boolean;
10281
10281
  }>;
10282
10282
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
10283
10283
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -149,7 +149,7 @@ declare const _default: import("vue").DefineComponent<{}, {
149
149
  type: BooleanConstructor;
150
150
  };
151
151
  bordered: {
152
- type: BooleanConstructor;
152
+ type: (BooleanConstructor | StringConstructor)[];
153
153
  default: boolean;
154
154
  };
155
155
  }, {
@@ -281,7 +281,7 @@ declare const _default: import("vue").DefineComponent<{}, {
281
281
  type: BooleanConstructor;
282
282
  };
283
283
  bordered: {
284
- type: BooleanConstructor;
284
+ type: (BooleanConstructor | StringConstructor)[];
285
285
  default: boolean;
286
286
  };
287
287
  }>> & {
@@ -729,7 +729,7 @@ declare const _default: import("vue").DefineComponent<{}, {
729
729
  type: BooleanConstructor;
730
730
  };
731
731
  bordered: {
732
- type: BooleanConstructor;
732
+ type: (BooleanConstructor | StringConstructor)[];
733
733
  default: boolean;
734
734
  };
735
735
  }>> & {
@@ -747,7 +747,7 @@ declare const _default: import("vue").DefineComponent<{}, {
747
747
  consumer: boolean;
748
748
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
749
749
  linebarAutoHidden: boolean;
750
- bordered: boolean;
750
+ bordered: string | boolean;
751
751
  }>;
752
752
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
753
753
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -5275,7 +5275,7 @@ declare const _default: import("vue").DefineComponent<{
5275
5275
  type: BooleanConstructor;
5276
5276
  };
5277
5277
  bordered: {
5278
- type: BooleanConstructor;
5278
+ type: (BooleanConstructor | StringConstructor)[];
5279
5279
  default: boolean;
5280
5280
  };
5281
5281
  }, {
@@ -5407,7 +5407,7 @@ declare const _default: import("vue").DefineComponent<{
5407
5407
  type: BooleanConstructor;
5408
5408
  };
5409
5409
  bordered: {
5410
- type: BooleanConstructor;
5410
+ type: (BooleanConstructor | StringConstructor)[];
5411
5411
  default: boolean;
5412
5412
  };
5413
5413
  }>> & {
@@ -5855,7 +5855,7 @@ declare const _default: import("vue").DefineComponent<{
5855
5855
  type: BooleanConstructor;
5856
5856
  };
5857
5857
  bordered: {
5858
- type: BooleanConstructor;
5858
+ type: (BooleanConstructor | StringConstructor)[];
5859
5859
  default: boolean;
5860
5860
  };
5861
5861
  }>> & {
@@ -5873,7 +5873,7 @@ declare const _default: import("vue").DefineComponent<{
5873
5873
  consumer: boolean;
5874
5874
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
5875
5875
  linebarAutoHidden: boolean;
5876
- bordered: boolean;
5876
+ bordered: string | boolean;
5877
5877
  }>;
5878
5878
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
5879
5879
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -136,7 +136,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
136
136
  type: BooleanConstructor;
137
137
  };
138
138
  bordered: {
139
- type: BooleanConstructor;
139
+ type: (BooleanConstructor | StringConstructor)[];
140
140
  default: boolean;
141
141
  };
142
142
  }, {
@@ -268,7 +268,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
268
268
  type: BooleanConstructor;
269
269
  };
270
270
  bordered: {
271
- type: BooleanConstructor;
271
+ type: (BooleanConstructor | StringConstructor)[];
272
272
  default: boolean;
273
273
  };
274
274
  }>> & {
@@ -716,7 +716,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
716
716
  type: BooleanConstructor;
717
717
  };
718
718
  bordered: {
719
- type: BooleanConstructor;
719
+ type: (BooleanConstructor | StringConstructor)[];
720
720
  default: boolean;
721
721
  };
722
722
  }>> & {
@@ -734,7 +734,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
734
734
  consumer: boolean;
735
735
  enterToNextWidget: boolean | ((fieldItem: import("./src/types").FieldItem) => boolean | void);
736
736
  linebarAutoHidden: boolean;
737
- bordered: boolean;
737
+ bordered: string | boolean;
738
738
  }>;
739
739
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
740
740
  export default FormRender;
@@ -130,7 +130,7 @@ declare const _default: import("vue").DefineComponent<{
130
130
  type: BooleanConstructor;
131
131
  };
132
132
  bordered: {
133
- type: BooleanConstructor;
133
+ type: (BooleanConstructor | StringConstructor)[];
134
134
  default: boolean;
135
135
  };
136
136
  }, {
@@ -262,7 +262,7 @@ declare const _default: import("vue").DefineComponent<{
262
262
  type: BooleanConstructor;
263
263
  };
264
264
  bordered: {
265
- type: BooleanConstructor;
265
+ type: (BooleanConstructor | StringConstructor)[];
266
266
  default: boolean;
267
267
  };
268
268
  }>> & {
@@ -710,7 +710,7 @@ declare const _default: import("vue").DefineComponent<{
710
710
  type: BooleanConstructor;
711
711
  };
712
712
  bordered: {
713
- type: BooleanConstructor;
713
+ type: (BooleanConstructor | StringConstructor)[];
714
714
  default: boolean;
715
715
  };
716
716
  }>> & {
@@ -728,6 +728,6 @@ declare const _default: import("vue").DefineComponent<{
728
728
  consumer: boolean;
729
729
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
730
730
  linebarAutoHidden: boolean;
731
- bordered: boolean;
731
+ bordered: string | boolean;
732
732
  }>;
733
733
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as o,computed as t,provide as r,onMounted as s,onUnmounted as a,nextTick as i,openBlock as l,createBlock as n,unref as m,normalizeClass as p,normalizeStyle as d,withCtx as u,createElementBlock as c,createVNode as f,isRef as h,Fragment as y,renderList as j,createCommentVNode as g,createElementVNode as v,withKeys as b,withModifiers as k,toDisplayString as F,renderSlot as C}from"vue";import{useTheme as x}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isNumber as H,cloneDeep as S}from"lodash-es";import{createForm as A,onFieldValueChange as L,onFieldMount as R,onFieldUnmount as _,onFieldReact as O,onFormMount as w}from"@formily/core";import{FormProvider as B,FormConsumer as V}from"@formily/vue";import{NForm as I,NTabs as N,NTabPane as D,NConfigProvider as q}from"naive-ui";import{InjectionFormGraph as T}from"./constants/index.js";import{useAutoHidden as U}from"./hooks/useAutoHidden.js";import{useComplexOptionsSpan as W}from"./hooks/useComplexOptions.js";import{useFormDomEvent as E,useFormExposeEvent as G}from"./hooks/useFormEvent.js";import{useFormGraph as K}from"./hooks/useFormGraph.js";import{useFormRenderLifeCycle as M}from"./hooks/useFormRenderLifeCycle.js";import{useLowCodeEvent as P}from"./hooks/useLowCodeEvent.js";import{useLowCodeReactions as J}from"./hooks/useLowCodeReactions.js";import{useNuiThemeOverrides as $}from"./hooks/useNuiThemeOverrides.js";import"./utils/index.js";import{useFieldListAdaptor as z}from"./hooks/useFieldListAdaptor.js";import"../../../shared/utils/index.js";import"../index.js";import{useFieldVisitor as Q}from"./hooks/useFieldVisitor.js";import"../../../shared/utils/tapable/SyncHook.js";import"../../../shared/utils/tapable/SyncBailHook.js";import"../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../shared/utils/tapable/SyncLoopHook.js";import"../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{validateMessageLocale as X}from"./hooks/useFormValidator.js";import{useAnchor as Y}from"./hooks/useAnchor.js";import{useFormContext as Z}from"./hooks/useFormContext.js";import"./hooks/useFormRenderOptions.js";import ee from"../../../_virtual/plugin-vue_export-helper.js";import{createObjSchema as oe}from"./utils/schema.js";const te={key:0,style:{height:"54px"}},re={style:{"white-space":"pre"}};var se=ee(e({__name:"FormRender",props:{fieldList:{type:Array},initialData:{type:Object,default:()=>({})},fieldVisitor:{type:Object},column:{type:Number,default:24},maxHeight:{type:[Number,String],default:""},anchor:{type:Boolean,default:!1},parallelism:{type:Number,default:3},businessFormatter:{type:Function},schema:{type:Object},components:{type:Object,default:()=>({})},scope:{type:Object,default:()=>({})},annotation:{type:Object},consumer:{type:Boolean,default:!1},uuid:{type:String},lifeCycle:{type:Object},requestInstance:{type:Object},enterToNextWidget:{type:[Boolean,Function],default:!0},lowCodeReactions:{type:Array},linebarAutoHidden:{type:Boolean},bordered:{type:Boolean,default:!0}},emits:["formChange","annotationChange","scroll"],setup(e,{expose:ee,emit:se}){const ae=e,ie=x(),{nuiThemeOverrides:le}=$();X();const ne=o(),me=t((()=>H(ae.maxHeight)?ae.maxHeight+"px":ae.maxHeight)),{SchemaField:pe,businessCollector:de,formItemDepsCollector:ue,changeContextCollector:ce,formUUID:fe}=Z(ae,se),{anchorBarRef:he,currentAnchor:ye,generateAnchorList:je,updateAnchorList:ge,anchorIdList:ve,onScroll:be}=Y(ae,se,ne,ue);M(ae).callLifeCycle("onSetup");const{trigger:ke}=U(),{observeFormGraph:Fe,setGraph:Ce,removeGraph:xe}=K();r(T,Fe);const{lowCodeEventTrigger:He}=P(),Se=A({initialValues:ae.initialData,effects(e){L("*",(o=>{const t=o.props.name.toString();de.trigger(e,t),ue.trigger(t),se("formChange",{fieldInstance:o,fieldKey:t,fieldName:o.title,value:o.value,context:ce.getContext(t,o.value)}),He(o),Ae(t,o.value)})),R("*",Ce),_("*",xe),ae.linebarAutoHidden&&(O("*",ke),w((e=>e.query("*").forEach(ke)))),ae.anchor&&(O("*",ge),w(je))}}),{lowCodeReactionsHandler:Ae,triggerAllReactionsHandler:Le}=J(t((()=>ae.lowCodeReactions)),Se);s(Le);const{schemaAdaptor:Re}=z(de);let _e=ae.fieldList||[];const Oe=t((()=>ae.schema?ae.schema:ae.fieldList?(_e=Q().traverse(S(ae.fieldList),ae.fieldVisitor),oe(Re(_e))):oe({}))),{onKeydown:we}=E({formModel:Se,formRenderRef:ne,props:ae}),{clearSpan:Be}=W();a((()=>Be(fe)));const Ve=G({formModel:Se,formRenderRef:ne,formItemDepsCollector:ue,getFieldList:()=>_e,formUUID:fe});return ee({formModel:Se,validate:(e="*")=>Ve.validate(e),getFormValues:(e=!0)=>Ve.getFormValues(e),async setFormValues(e,o=!0,t=!1,r=!0){t&&(de.triggerLock=!0),Ve.setFormValues(e,o,r),await i(),de.triggerLock=!1},setFieldState(e,o){Ve.setFieldState(e,o)},resetFields(e="*"){Ve.resetFields(e)},queryWidget:async e=>Ve.queryWidget(e),getFieldList:()=>_e,async reload(){console.error("reload function is abstract,it should be overwrite!")}}),(o,t)=>(l(),n(m(I),{class:p(["form-render",{"form-render--no-border":!e.bordered}]),"require-mark-placement":"left",style:d(m(ie))},{default:u((()=>[e.anchor?(l(),c("section",te,[f(m(N),{value:m(ye),"onUpdate:value":t[0]||(t[0]=e=>h(ye)?ye.value=e:null),type:"line",ref_key:"anchorBarRef",ref:he},{default:u((()=>[(l(!0),c(y,null,j(m(ve),(e=>(l(),n(m(D),{name:e.name,tab:e.title,key:e.name},null,8,["name","tab"])))),128))])),_:1},8,["value"])])):g("v-if",!0),f(m(q),{"theme-overrides":m(le)},{default:u((()=>[v("section",{class:"form-render__wrapper",style:d({"--column":e.column,"--form-height":m(me)}),ref_key:"formRenderRef",ref:ne,onScroll:t[1]||(t[1]=(...e)=>m(be)&&m(be)(...e)),onKeydownCapture:t[2]||(t[2]=b(k(((...e)=>m(we)&&m(we)(...e)),["prevent"]),["enter"]))},[f(m(B),{form:m(Se)},{default:u((()=>[f(m(pe),{schema:m(Oe)},null,8,["schema"]),e.consumer?(l(),n(m(V),{key:0},{default:u((({form:e})=>[v("div",re,F(JSON.stringify(e.values,null,2)),1)])),_:1})):g("v-if",!0),C(o.$slots,"default")])),_:3},8,["form"])],36)])),_:3},8,["theme-overrides"])])),_:3},8,["class","style"]))}}),[["__file","FormRender.vue"]]);export{se as default};
1
+ import{defineComponent as e,ref as o,computed as t,provide as r,onMounted as s,onUnmounted as a,nextTick as i,openBlock as l,createBlock as n,unref as m,normalizeClass as d,normalizeStyle as p,withCtx as u,createElementBlock as c,createVNode as f,isRef as h,Fragment as y,renderList as g,createCommentVNode as j,createElementVNode as b,withKeys as v,withModifiers as k,toDisplayString as F,renderSlot as C}from"vue";import{useTheme as S}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isNumber as x,cloneDeep as H}from"lodash-es";import{createForm as A,onFieldValueChange as L,onFieldMount as R,onFieldUnmount as _,onFieldReact as O,onFormMount as w}from"@formily/core";import{FormProvider as B,FormConsumer as V}from"@formily/vue";import{NForm as I,NTabs as N,NTabPane as D,NConfigProvider as q}from"naive-ui";import{InjectionFormGraph as T}from"./constants/index.js";import{useAutoHidden as U}from"./hooks/useAutoHidden.js";import{useComplexOptionsSpan as W}from"./hooks/useComplexOptions.js";import{useFormDomEvent as E,useFormExposeEvent as G}from"./hooks/useFormEvent.js";import{useFormGraph as K}from"./hooks/useFormGraph.js";import{useFormRenderLifeCycle as M}from"./hooks/useFormRenderLifeCycle.js";import{useLowCodeEvent as P}from"./hooks/useLowCodeEvent.js";import{useLowCodeReactions as J}from"./hooks/useLowCodeReactions.js";import{useNuiThemeOverrides as $}from"./hooks/useNuiThemeOverrides.js";import"./utils/index.js";import{useFieldListAdaptor as z}from"./hooks/useFieldListAdaptor.js";import"../../../shared/utils/index.js";import"../index.js";import{useFieldVisitor as Q}from"./hooks/useFieldVisitor.js";import"../../../shared/utils/tapable/SyncHook.js";import"../../../shared/utils/tapable/SyncBailHook.js";import"../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../shared/utils/tapable/SyncLoopHook.js";import"../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{validateMessageLocale as X}from"./hooks/useFormValidator.js";import{useAnchor as Y}from"./hooks/useAnchor.js";import{useFormContext as Z}from"./hooks/useFormContext.js";import"./hooks/useFormRenderOptions.js";import ee from"../../../_virtual/plugin-vue_export-helper.js";import{createObjSchema as oe}from"./utils/schema.js";const te={key:0,style:{height:"54px"}},re={style:{"white-space":"pre"}};var se=ee(e({__name:"FormRender",props:{fieldList:{type:Array},initialData:{type:Object,default:()=>({})},fieldVisitor:{type:Object},column:{type:Number,default:24},maxHeight:{type:[Number,String],default:""},anchor:{type:Boolean,default:!1},parallelism:{type:Number,default:3},businessFormatter:{type:Function},schema:{type:Object},components:{type:Object,default:()=>({})},scope:{type:Object,default:()=>({})},annotation:{type:Object},consumer:{type:Boolean,default:!1},uuid:{type:String},lifeCycle:{type:Object},requestInstance:{type:Object},enterToNextWidget:{type:[Boolean,Function],default:!0},lowCodeReactions:{type:Array},linebarAutoHidden:{type:Boolean},bordered:{type:[Boolean,String],default:!0}},emits:["formChange","annotationChange","scroll"],setup(e,{expose:ee,emit:se}){const ae=e,ie=S(),{nuiThemeOverrides:le}=$();X();const ne=o(),me=t((()=>x(ae.maxHeight)?ae.maxHeight+"px":ae.maxHeight)),{SchemaField:de,businessCollector:pe,formItemDepsCollector:ue,changeContextCollector:ce,formUUID:fe}=Z(ae,se),{anchorBarRef:he,currentAnchor:ye,generateAnchorList:ge,updateAnchorList:je,anchorIdList:be,onScroll:ve}=Y(ae,se,ne,ue);M(ae).callLifeCycle("onSetup");const{trigger:ke}=U(),{observeFormGraph:Fe,setGraph:Ce,removeGraph:Se}=K();r(T,Fe);const{lowCodeEventTrigger:xe}=P(),He=A({initialValues:ae.initialData,effects(e){L("*",(o=>{const t=o.props.name.toString();pe.trigger(e,t),ue.trigger(t),se("formChange",{fieldInstance:o,fieldKey:t,fieldName:o.title,value:o.value,context:ce.getContext(t,o.value)}),xe(o),Ae(t,o.value)})),R("*",Ce),_("*",Se),ae.linebarAutoHidden&&(O("*",ke),w((e=>e.query("*").forEach(ke)))),ae.anchor&&O("*",je)}}),{lowCodeReactionsHandler:Ae,triggerAllReactionsHandler:Le}=J(t((()=>ae.lowCodeReactions)),He);s(Le);const{schemaAdaptor:Re}=z(pe);let _e=ae.fieldList||[];const Oe=t((()=>ae.schema?ae.schema:ae.fieldList?(_e=Q().traverse(H(ae.fieldList),ae.fieldVisitor),oe(Re(_e))):oe({}))),{onKeydown:we}=E({formModel:He,formRenderRef:ne,props:ae}),{clearSpan:Be}=W();a((()=>Be(fe)));const Ve=G({formModel:He,formRenderRef:ne,formItemDepsCollector:ue,getFieldList:()=>_e,formUUID:fe});return ee({formModel:He,validate:(e="*")=>Ve.validate(e),getFormValues:(e=!0)=>Ve.getFormValues(e),async setFormValues(e,o=!0,t=!1,r=!0){t&&(pe.triggerLock=!0),Ve.setFormValues(e,o,r),await i(),pe.triggerLock=!1},setFieldState(e,o){Ve.setFieldState(e,o)},resetFields(e="*"){Ve.resetFields(e)},queryWidget:async e=>Ve.queryWidget(e),getFieldList:()=>_e,async reload(){console.error("reload function is abstract,it should be overwrite!")}}),(o,t)=>(l(),n(m(I),{class:d(["form-render",{"form-render--no-border":!e.bordered,"form-render--underline":"underline"===e.bordered}]),"require-mark-placement":"left",style:p(m(ie))},{default:u((()=>[e.anchor?(l(),c("section",te,[f(m(N),{value:m(ye),"onUpdate:value":t[0]||(t[0]=e=>h(ye)?ye.value=e:null),type:"line",ref_key:"anchorBarRef",ref:he},{default:u((()=>[(l(!0),c(y,null,g(m(be),(e=>(l(),n(m(D),{name:e.name,tab:e.title,key:e.name},null,8,["name","tab"])))),128))])),_:1},8,["value"])])):j("v-if",!0),f(m(q),{"theme-overrides":m(le)},{default:u((()=>[b("section",{class:"form-render__wrapper",style:p({"--column":e.column,"--form-height":m(me)}),ref_key:"formRenderRef",ref:ne,onScroll:t[1]||(t[1]=(...e)=>m(ve)&&m(ve)(...e)),onKeydownCapture:t[2]||(t[2]=v(k(((...e)=>m(we)&&m(we)(...e)),["prevent"]),["enter"]))},[f(m(B),{form:m(He)},{default:u((()=>[f(m(de),{schema:m(Oe)},null,8,["schema"]),e.consumer?(l(),n(m(V),{key:0},{default:u((({form:e})=>[b("div",re,F(JSON.stringify(e.values,null,2)),1)])),_:1})):j("v-if",!0),C(o.$slots,"default")])),_:3},8,["form"])],36)])),_:3},8,["theme-overrides"])])),_:3},8,["class","style"]))}}),[["__file","FormRender.vue"]]);export{se as default};