cnhis-design-vue 3.1.46-beta.0 → 3.1.46-beta.10

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 (133) hide show
  1. package/es/components/base-search/index.d.ts +17 -8
  2. package/es/components/base-search/src/index.vue.d.ts +17 -8
  3. package/es/components/base-search/src/index.vue2.js +1 -1
  4. package/es/components/base-search/style/index.css +1 -1
  5. package/es/components/button-print/src/utils/print.js +1 -1
  6. package/es/components/classification/index.d.ts +219 -18
  7. package/es/components/classification/src/components/search-filter/index.vue.d.ts +219 -18
  8. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  9. package/es/components/classification/src/components/set-classification/index.vue.d.ts +219 -18
  10. package/es/components/classification/src/index.vue.d.ts +219 -18
  11. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  12. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  13. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  14. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  15. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  16. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  17. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  18. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  19. package/es/components/fabric-chart/src/utils/index.d.ts +1 -0
  20. package/es/components/fabric-chart/src/utils/index.js +1 -1
  21. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  22. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
  23. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
  24. package/es/components/index.css +1 -1
  25. package/es/components/index.d.ts +2 -1
  26. package/es/components/index.js +1 -1
  27. package/es/components/quick-search/index.d.ts +21 -7
  28. package/es/components/quick-search/src/index.vue.d.ts +21 -7
  29. package/es/components/quick-search/src/index.vue2.js +1 -1
  30. package/es/components/quick-search/style/index.css +1 -1
  31. package/es/components/table-export-field/index.d.ts +967 -0
  32. package/es/components/table-export-field/index.js +1 -0
  33. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +192 -0
  34. package/es/components/table-export-field/src/components/ExportModal.vue.js +1 -0
  35. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -0
  36. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +687 -0
  37. package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +1 -0
  38. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -0
  39. package/es/components/table-export-field/src/constants/index.d.ts +3 -0
  40. package/es/components/table-export-field/src/constants/index.js +1 -0
  41. package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +6 -0
  42. package/es/components/table-export-field/src/hooks/useAsyncData.js +1 -0
  43. package/es/components/table-export-field/src/index.vue.d.ts +968 -0
  44. package/es/components/table-export-field/src/index.vue.js +1 -0
  45. package/es/components/table-export-field/src/index.vue2.js +1 -0
  46. package/es/components/table-export-field/src/types/index.d.ts +6 -0
  47. package/es/components/table-export-field/src/types/index.js +1 -0
  48. package/es/components/table-export-field/style/index.css +1 -0
  49. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +219 -17
  50. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  51. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +17 -1
  52. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  53. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +19 -0
  54. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  55. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +178 -11
  56. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  57. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +1 -5
  58. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -1
  59. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +2 -1
  60. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
  61. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +217 -17
  62. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  63. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +219 -17
  64. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  65. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +231 -0
  66. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +1 -0
  67. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -0
  68. package/es/components/table-filter/src/components/render-widget/components/{Date.vue.d.ts → DateOut.vue.d.ts} +21 -2
  69. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +1 -0
  70. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +1 -0
  71. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +71 -0
  72. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +1 -0
  73. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -0
  74. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +117 -8
  75. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  76. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -9
  77. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  78. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +8 -6
  79. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  80. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +7 -6
  81. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
  82. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +19 -25
  83. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  84. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +223 -0
  85. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +1 -0
  86. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -0
  87. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +158 -0
  88. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +1 -0
  89. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -0
  90. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +611 -36
  91. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  92. package/es/components/table-filter/src/components/render-widget/enums.d.ts +10 -3
  93. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  94. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +27 -0
  95. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +1 -0
  96. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +55 -0
  97. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1 -0
  98. package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +56 -0
  99. package/es/components/table-filter/src/components/render-widget/helpers/enums.js +1 -0
  100. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +2 -6
  101. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
  102. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.d.ts +4 -0
  103. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +1 -0
  104. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +4 -0
  105. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.js +1 -0
  106. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +4 -3
  107. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  108. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +639 -35
  109. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  110. package/es/components/table-filter/src/constants/index.d.ts +3 -1
  111. package/es/components/table-filter/src/constants/index.js +1 -1
  112. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +9 -4
  113. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  114. package/es/components/table-filter/src/hooks/useAsyncData.d.ts +4 -0
  115. package/es/components/table-filter/src/hooks/useAsyncData.js +1 -0
  116. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +3 -3
  117. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  118. package/es/components/table-filter/src/tool/baseOptions.d.ts +0 -8
  119. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  120. package/es/components/table-filter/src/tool/transformData.d.ts +0 -1
  121. package/es/components/table-filter/src/tool/transformData.js +1 -1
  122. package/es/components/table-filter/src/types/enums.d.ts +3 -0
  123. package/es/components/table-filter/src/types/enums.js +1 -1
  124. package/es/components/table-filter/src/types/index.d.ts +7 -0
  125. package/es/shared/package.json.js +1 -1
  126. package/es/shared/utils/fabricjs/index.js +1 -1
  127. package/package.json +2 -2
  128. package/es/components/table-filter/src/components/render-widget/basicData.d.ts +0 -4
  129. package/es/components/table-filter/src/components/render-widget/basicData.js +0 -1
  130. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +0 -1
  131. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +0 -1
  132. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
  133. package/es/components/table-filter/src/tool/generateDefOptions.js +0 -1
@@ -15,3 +15,4 @@ export declare function isValidValue(value: number | string): boolean;
15
15
  export declare function isOverlapPoint(pointObj1: any, pointObj2: any): boolean;
16
16
  export declare function getFloorNumber(value: number, n?: number): number;
17
17
  export declare function getChildrenSize(treeData: ITreeItem[]): number;
18
+ export declare function getTime(value: number | string): number;
@@ -1 +1 @@
1
- import{isNull as n}from"lodash-es";function t(n){return(null==n?void 0:n.time)&&((null==n?void 0:n.value)||0===(null==n?void 0:n.value))}function e(n,t){const e={};for(const r in n)t.map((n=>n.type)).includes(r)||(e[r]=n[r]);return e}function r(n,t){const e=t.findIndex((t=>new Date(t.time).getTime()>new Date(n).getTime()));return~e?e:t.length}function u(n){return["temperature","pulse"].includes(n)}function i(n,t){return n.includes("心率")?"pulse_other":t}function o(n){return n.includes("_other")?n.split("_")[0]:n}function l(t){return!Number.isNaN(+t)&&!n(t)}function c(n,t){return f(n.left,1)===f(t.left,1)&&Math.abs(f(n.top,1)-f(t.top,1))<=2}function f(n,t=100){return Math.floor(n*t)/t}function s(n){let t=0;return n.forEach((n=>{var e;(null==(e=n.children)?void 0:e.length)?t+=s(n.children):t++})),t}export{e as deleteProperty,s as getChildrenSize,f as getFloorNumber,r as getIndex,o as getType,t as isEffectiveNode,u as isOneLine,c as isOverlapPoint,l as isValidValue,i as setOtherType};
1
+ import{isNull as n,isNumber as t}from"lodash-es";function e(n){return(null==n?void 0:n.time)&&((null==n?void 0:n.value)||0===(null==n?void 0:n.value))}function r(n,t){const e={};for(const r in n)t.map((n=>n.type)).includes(r)||(e[r]=n[r]);return e}function u(n,t){const e=t.findIndex((t=>d(t.time)>d(n)));return~e?e:t.length}function o(n){return["temperature","pulse"].includes(n)}function i(n,t){return n.includes("心率")?"pulse_other":t}function l(n){return n.includes("_other")?n.split("_")[0]:n}function c(t){return!Number.isNaN(+t)&&!n(t)}function f(n,t){return a(n.left,1)===a(t.left,1)&&Math.abs(a(n.top,1)-a(t.top,1))<=2}function a(n,t=100){return Math.floor(n*t)/t}function s(n){let t=0;return n.forEach((n=>{var e;(null==(e=n.children)?void 0:e.length)?t+=s(n.children):t++})),t}function d(n){return n?t(n)?new Date(n).getTime():Date.parse(n.replace(/-/g,"/")):Date.now()}export{r as deleteProperty,s as getChildrenSize,a as getFloorNumber,u as getIndex,d as getTime,l as getType,e as isEffectiveNode,o as isOneLine,f as isOverlapPoint,c as isValidValue,i as setOtherType};
@@ -1 +1 @@
1
- import{defineComponent as e,createVNode as t,isVNode as l}from"vue";import{connect as o,mapProps as a}from"@formily/vue";import{promiseTimeout as r}from"@vueuse/shared";import{NSpace as i,NRadio as u,NRadioGroup as n,NCheckbox as p,NCheckboxGroup as d}from"naive-ui";import"../../../index.js";import{useComplexOptions as s}from"../../hooks/useComplexOptions.js";import"../../utils/index.js";import{useAutographOptions as c}from"../../hooks/useFormRenderOptions.js";import{useCommonInjection as m}from"../../hooks/useCommonInjection.js";import{assignUpdateValue as v,createVisitedSetter as f}from"../../utils/schema.js";import{useFormField as y}from"../../hooks/useFormField.js";function b(o,a,u){return e({name:o,props:{value:{type:[String,Number,Object,Array]},options:{type:Array,default:()=>[]},autograph:{type:String},lazyRequest:{type:Boolean,default:!1},requestCache:{type:Boolean,default:!0},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},wordbook:{type:Object},vertical:{type:Boolean,default:!1},childFieldStrategy:{type:String,default:"checked"},clearable:Boolean,onChange:{}},emits:["update:value"],setup(e,{emit:o}){const{field:p}=y(),{renderComplexOption:d,valueRef:v}=s(e,o),{labelKey:b,valueKey:j,fullOptions:h}=c(e,v),{injectValueBindKey:g,injectValueValidate:k}=m();k(v);const S=g(v);async function F(){if(a!==n||!e.clearable)return;const t=v.value;await r(0),null!=t&&(v.value=null)}return()=>t(a,{key:S.value,value:v.value,"onUpdate:value":e=>v.value=e,onClick:f(p)},{default:()=>[t(i,{vertical:e.vertical,"vertical-space":e.vertical},{default:()=>{var o;return[null==(o=h.value)?void 0:o.map((o=>{let a;return t(u,{key:o[j.value],value:o[j.value],disabled:o.disabled,onClick:F},"function"==typeof(r=a=d({value:v.value,option:o,valueKey:j.value,labelKey:b.value,childFieldStrategy:e.childFieldStrategy}))||"[object Object]"===Object.prototype.toString.call(r)&&!l(r)?a:{default:()=>[a]});var r}))]}})]})}})}const j=o(b("FormRadio",n,u),a({dataSource:"options"},v)),h=o(b("FormCheckbox",d,p),a({dataSource:"options"},v));export{h as CHECKBOX,j as RADIO};
1
+ import{defineComponent as e,createVNode as t,isVNode as o}from"vue";import{connect as a,mapProps as l}from"@formily/vue";import{promiseTimeout as r}from"@vueuse/shared";import{NSpace as i,NRadio as u,NRadioGroup as n,NCheckbox as p,NCheckboxGroup as d}from"naive-ui";import"../../../index.js";import{useComplexOptions as s}from"../../hooks/useComplexOptions.js";import"../../utils/index.js";import{useAutographOptions as c}from"../../hooks/useFormRenderOptions.js";import{useCommonInjection as m}from"../../hooks/useCommonInjection.js";import{assignUpdateValue as v,createVisitedSetter as f}from"../../utils/schema.js";import{useFormField as y}from"../../hooks/useFormField.js";function b(a,l,u){return e({name:a,props:{value:{type:[String,Number,Object,Array]},options:{type:Array,default:()=>[]},autograph:{type:String},lazyRequest:{type:Boolean,default:!1},requestCache:{type:Boolean,default:!0},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},wordbook:{type:Object},vertical:{type:Boolean,default:!1},childFieldStrategy:{type:String,default:"checked"},clearable:Boolean,onChange:{}},emits:["update:value"],setup(e,{emit:a}){const{field:p}=y(),{renderComplexOption:d,valueRef:v}=s(e,a),{labelKey:b,valueKey:j,fullOptions:h}=c(e,v),{injectValueBindKey:g,injectValueValidate:k}=m();k(v);const S=g(v);return()=>t(l,{key:S.value,value:v.value,"onUpdate:value":e=>v.value=e,onClick:f(p)},{default:()=>[t(i,{vertical:e.vertical,"vertical-space":e.vertical},{default:()=>{var a;return[null==(a=h.value)?void 0:a.map((a=>{let i;return t(u,{key:a[j.value],value:a[j.value],disabled:a.disabled,onClick:()=>async function(t){if(l!==n||!e.clearable)return;const o=v.value;await r(0),o===t[j.value]&&(v.value=null)}(a)},"function"==typeof(p=i=d({value:v.value,option:a,valueKey:j.value,labelKey:b.value,childFieldStrategy:e.childFieldStrategy}))||"[object Object]"===Object.prototype.toString.call(p)&&!o(p)?i:{default:()=>[i]});var p}))]}})]})}})}const j=a(b("FormRadio",n,u),l({dataSource:"options"},v)),h=a(b("FormCheckbox",d,p),l({dataSource:"options"},v));export{h as CHECKBOX,j as RADIO};
@@ -1,6 +1,6 @@
1
1
  import { SyncHook } from '../../../../../../es/shared/utils/tapable';
2
2
  import { Ref } from 'vue';
3
- import { AbstractSetupHooks, IhoTableConfig, IhoTableFieldItem, IhoTableHandlerContext } from '../../../../../../es/components/iho-table';
3
+ import { AbstractSetupHooks, IhoTableConfig, IhoTableFieldItem, IhoTableHandlerContext } from '../../../../../../es/components/iho-table/src/types';
4
4
  declare class SetupHooks extends AbstractSetupHooks {
5
5
  readonly setup: SyncHook<[Ref<IhoTableConfig>, Ref<IhoTableFieldItem[]>, IhoTableHandlerContext<true>], void, import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
6
6
  }
@@ -1 +1 @@
1
- import s from"../../../../../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"../../../index.js";import{AbstractSetupHooks as t}from"../../types/pluginType.js";class e extends t{constructor(){super(...arguments),this.setup=new s(["config","fieldList","context"])}}function o(){return{create:function(){return new e}}}export{o as useSetupHooks};
1
+ import s from"../../../../../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{AbstractSetupHooks as t}from"../../types/pluginType.js";class e extends t{constructor(){super(...arguments),this.setup=new s(["config","fieldList","context"])}}function o(){return{create:function(){return new e}}}export{o as useSetupHooks};