cnhis-design-vue 3.1.41-release.5 → 3.1.41

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 (130) hide show
  1. package/es/components/button-print/src/utils/print.js +1 -1
  2. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  3. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -0
  4. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  5. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  6. package/es/components/fabric-chart/src/hooks/useOther.js +1 -1
  7. package/es/components/fabric-chart/src/hooks/useTop.js +1 -1
  8. package/es/components/field-set/index.d.ts +8 -0
  9. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -0
  10. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  11. package/es/components/field-set/style/index.css +1 -1
  12. package/es/components/form-config/index.d.ts +6755 -44
  13. package/es/components/form-config/src/FormConfig.vue.d.ts +6897 -185
  14. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  15. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
  16. package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -1
  17. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +4 -4
  18. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
  19. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3410 -58
  20. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  21. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +2 -2
  22. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
  23. package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +3 -3
  24. package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -1
  25. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +10 -10
  26. package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -1
  27. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +6 -6
  28. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  29. package/es/components/form-config/src/hooks/useConfigurationField.d.ts +2 -3
  30. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  31. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +4 -2
  32. package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
  33. package/es/components/form-config/src/hooks/usePresetRenderer.d.ts +1 -1
  34. package/es/components/form-config/src/types/index.d.ts +8 -2
  35. package/es/components/form-config/src/utils/index.d.ts +4 -1
  36. package/es/components/form-config/src/utils/index.js +1 -1
  37. package/es/components/form-config/style/index.css +1 -1
  38. package/es/components/form-render/index.d.ts +1 -1
  39. package/es/components/form-render/src/FormRender.vue.js +1 -1
  40. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +21 -20
  41. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  42. package/es/components/form-render/src/constants/index.d.ts +0 -12
  43. package/es/components/form-render/src/constants/index.js +1 -1
  44. package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
  45. package/es/components/form-render/src/types/index.d.ts +4 -2
  46. package/es/components/iho-table/index.d.ts +2 -2
  47. package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -2
  48. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  49. package/es/components/iho-table/src/plugins/{filterPlugin → filterRenderPlugin}/filter.vue.d.ts +15 -74
  50. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -0
  51. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -0
  52. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -0
  53. package/es/components/iho-table/src/plugins/index.js +1 -1
  54. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +85 -0
  55. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -0
  56. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/{timeRendererPlugin.d.ts → timeRendererPlugin/index.d.ts} +1 -1
  57. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -0
  58. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.d.ts +2 -0
  59. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.js +1 -0
  60. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  61. package/es/components/iho-table/src/types/index.d.ts +20 -11
  62. package/es/components/iho-table/src/utils/index.js +1 -1
  63. package/es/components/iho-table/style/index.css +1 -1
  64. package/es/components/index.css +1 -1
  65. package/es/components/info-header/index.d.ts +289 -155
  66. package/es/components/info-header/src/InfoHeader.vue.d.ts +293 -160
  67. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  68. package/es/components/info-header/src/components/index.d.ts +3 -0
  69. package/es/components/info-header/src/components/index.js +1 -0
  70. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -0
  71. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -0
  72. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +266 -0
  73. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -0
  74. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +38 -0
  75. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -0
  76. package/es/components/info-header/src/types/index.d.ts +29 -0
  77. package/es/components/scale-view/index.d.ts +1 -2
  78. package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -5
  79. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  80. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -0
  81. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  82. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
  83. package/es/components/scale-view/src/utils/judge-types.js +1 -1
  84. package/es/components/scale-view/style/index.css +1 -1
  85. package/es/components/shortcut-setter/index.d.ts +1 -1
  86. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
  87. package/es/components/table-filter/index.d.ts +12 -77
  88. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +4 -2
  89. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -1
  90. package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +4 -22
  91. package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
  92. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +2 -2
  93. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +2 -2
  94. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  95. package/es/components/table-filter/src/components/search-filter/index.vue.d.ts +2 -2
  96. package/es/components/table-filter/src/components/search-filter/index.vue.js +1 -1
  97. package/es/components/table-filter/src/components/set-classification/index.vue.d.ts +4 -20
  98. package/es/components/table-filter/src/components/set-classification/index.vue.js +1 -1
  99. package/es/components/table-filter/src/components/table-modal/index.vue.js +1 -1
  100. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  101. package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +4 -53
  102. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -1
  103. package/es/components/table-filter/style/index.css +1 -1
  104. package/es/shared/components/no-data/NoData.vue.d.ts +5 -0
  105. package/es/shared/components/no-data/NoData.vue.js +1 -1
  106. package/es/shared/utils/index.d.ts +16 -0
  107. package/es/shared/utils/index.js +1 -1
  108. package/package.json +64 -64
  109. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +0 -1
  110. package/es/components/iho-table/src/plugins/filterPlugin/index.d.ts +0 -1
  111. package/es/components/iho-table/src/plugins/filterPlugin/index.js +0 -1
  112. package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +0 -7
  113. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +0 -1
  114. package/es/components/info-header/src/HiddenContent.vue.js +0 -1
  115. package/es/components/info-header/src/InfoEllipsis.vue.js +0 -1
  116. package/es/components/table-filter/src/components/age-com/index.vue.d.ts +0 -119
  117. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.d.ts +0 -199
  118. package/es/components/table-filter/src/components/button-icon/getBtnIcon.d.ts +0 -2
  119. package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +0 -1
  120. package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.d.ts +0 -90
  121. package/es/components/table-filter/src/components/multi-select/multi-select.vue.d.ts +0 -113
  122. package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.d.ts +0 -266
  123. package/es/components/table-filter/src/components/range-age/index.vue.d.ts +0 -248
  124. package/es/components/table-filter/src/const/dataOptions.d.ts +0 -12
  125. package/es/components/table-filter/src/const/dataOptions.js +0 -1
  126. package/es/components/table-filter/src/directive/preventReClick.d.ts +0 -4
  127. package/es/components/table-filter/src/directive/preventReClick.js +0 -1
  128. package/es/components/info-header/src/{HiddenContent.vue.d.ts → components/infoDescription/HiddenContent.vue.d.ts} +2 -2
  129. package/es/components/info-header/src/{InfoEllipsis.vue.d.ts → components/infoDescription/InfoEllipsis.vue.d.ts} +1 -1
  130. /package/es/components/{iho-table/src/plugins/filterPlugin/types.js → info-header/src/types/index.js} +0 -0
package/package.json CHANGED
@@ -1,65 +1,65 @@
1
1
  {
2
- "name": "cnhis-design-vue",
3
- "version": "3.1.41-release.5",
4
- "license": "ISC",
5
- "module": "./es/components/index.js",
6
- "main": "./es/components/index.js",
7
- "types": "./es/components/index.d.ts",
8
- "sideEffects": [
9
- "es/components/**/style/*",
10
- "es/components/*(.css,.less)"
11
- ],
12
- "files": [
13
- "es",
14
- "README.md"
15
- ],
16
- "peerDependencies": {
17
- "naive-ui": "^2.30.0",
18
- "vue": "^3.2.0",
19
- "vxe-table": "^4.2.5"
20
- },
21
- "dependencies": {
22
- "@vicons/ionicons5": "^0.12.0",
23
- "lodash-es": "^4.17.21",
24
- "moment": "^2.29.1",
25
- "video.js": "^7.19.2",
26
- "videojs-contrib-hls": "^5.15.0",
27
- "viewerjs": "^1.10.5",
28
- "xe-utils": "^3.5.4",
29
- "@formily/core": "2.1.9",
30
- "@formily/path": "2.1.9",
31
- "@formily/reactive": "2.1.9",
32
- "@formily/vue": "2.1.9",
33
- "@vueuse/core": "^8.6.0",
34
- "@vueuse/shared": "^8.6.0",
35
- "@wangeditor/editor": "^5.1.1",
36
- "@wangeditor/editor-for-vue": "^5.1.11",
37
- "axios": "^0.27.2",
38
- "bpmn-js": "^9.2.2",
39
- "bpmnlint-utils": "^1.0.2",
40
- "date-fns": "^2.29.1",
41
- "diagram-js": "^8.7.1",
42
- "ids": "^1.0.0",
43
- "inherits": "^2.0.4",
44
- "lodash": "^4.17.21",
45
- "lodash-unified": "^1.0.2",
46
- "min-dash": "^3.8.1",
47
- "min-dom": "^3.2.1",
48
- "naive-ui": "^2.30.0",
49
- "sortablejs": "^1.15.0",
50
- "spark-md5": "^3.0.2",
51
- "tiny-svg": "^2.2.4",
52
- "v-viewer": "^3.0.10",
53
- "vue": "^3.2.0",
54
- "vue-simple-uploader": "^1.0.0-beta.5"
55
- },
56
- "browserslist": [
57
- "defaults",
58
- "not ie < 8",
59
- "last 2 versions",
60
- "> 1%",
61
- "iOS 7",
62
- "last 3 iOS versions"
63
- ],
64
- "gitHead": "a8f7d7cdca3113620c2a7b0dbaf062673dfc51cc"
65
- }
2
+ "name": "cnhis-design-vue",
3
+ "version": "3.1.41",
4
+ "license": "ISC",
5
+ "module": "./es/components/index.js",
6
+ "main": "./es/components/index.js",
7
+ "types": "./es/components/index.d.ts",
8
+ "sideEffects": [
9
+ "es/components/**/style/*",
10
+ "es/components/*(.css,.less)"
11
+ ],
12
+ "files": [
13
+ "es",
14
+ "README.md"
15
+ ],
16
+ "peerDependencies": {
17
+ "naive-ui": "^2.30.0",
18
+ "vue": "^3.2.0",
19
+ "vxe-table": "^4.2.5"
20
+ },
21
+ "dependencies": {
22
+ "@formily/core": "2.1.9",
23
+ "@formily/path": "2.1.9",
24
+ "@formily/reactive": "2.1.9",
25
+ "@formily/vue": "2.1.9",
26
+ "@vicons/ionicons5": "^0.12.0",
27
+ "@vueuse/core": "^8.6.0",
28
+ "@vueuse/shared": "^8.6.0",
29
+ "@wangeditor/editor": "^5.1.1",
30
+ "@wangeditor/editor-for-vue": "^5.1.11",
31
+ "axios": "^0.27.2",
32
+ "bpmn-js": "^9.2.2",
33
+ "bpmnlint-utils": "^1.0.2",
34
+ "date-fns": "^2.29.1",
35
+ "diagram-js": "^8.7.1",
36
+ "ids": "^1.0.0",
37
+ "inherits": "^2.0.4",
38
+ "lodash": "^4.17.21",
39
+ "lodash-es": "^4.17.21",
40
+ "lodash-unified": "^1.0.2",
41
+ "min-dash": "^3.8.1",
42
+ "min-dom": "^3.2.1",
43
+ "moment": "^2.29.1",
44
+ "naive-ui": "^2.30.0",
45
+ "sortablejs": "^1.15.0",
46
+ "spark-md5": "^3.0.2",
47
+ "tiny-svg": "^2.2.4",
48
+ "v-viewer": "^3.0.10",
49
+ "video.js": "^7.19.2",
50
+ "videojs-contrib-hls": "^5.15.0",
51
+ "viewerjs": "^1.10.5",
52
+ "vue": "^3.2.0",
53
+ "vue-simple-uploader": "^1.0.0-beta.5",
54
+ "xe-utils": "^3.5.4"
55
+ },
56
+ "browserslist": [
57
+ "defaults",
58
+ "not ie < 8",
59
+ "last 2 versions",
60
+ "> 1%",
61
+ "iOS 7",
62
+ "last 3 iOS versions"
63
+ ],
64
+ "gitHead": "5ee216d6b3ec2a78b318f362bdabeda8f236a5fb"
65
+ }
@@ -1 +0,0 @@
1
- import{defineComponent as e,inject as t,ref as l,onDeactivated as a,watch as o,computed as i,openBlock as s,createElementBlock as n,normalizeStyle as u,unref as r,createElementVNode as c,renderSlot as v,createVNode as p,withCtx as d,createTextVNode as f,toDisplayString as h,normalizeClass as m,createCommentVNode as _,Fragment as y,renderList as k,createBlock as b,isRef as g}from"vue";import{widthAppend as x}from"../../../../../shared/utils/index.js";import{FunnelSharp as C}from"@vicons/ionicons5";import{useVModel as S,useVirtualList as j}from"@vueuse/core";import{NEllipsis as w,NPopover as A,NIcon as $,NInput as B,NCheckbox as I,NCheckboxGroup as L,NButtonGroup as U,NButton as q}from"naive-ui";import{InjectionIhoTableUUID as P,InjectionIhoTableConfig as W}from"../../constants/index.js";import{IhoTableRenderHelper as Z}from"../../utils/index.js";import z from"../../../../../_virtual/plugin-vue_export-helper.js";const E={class:"iho-table__filterWrapper"},F={key:0},H=["onClick"],O={class:"iho-table__filterListItem"},D={class:"iho-table__filterFooter"};var G=z(e({__name:"filter",props:{payload:{type:Object,required:!0},sortable:{type:Boolean},options:{type:Array,default:()=>[]},checked:{type:Array,required:!0},sortStatus:{type:String}},emits:["update:checked","update:sortStatus"],setup(e,{emit:z}){const G=e,J=t(P),K=t(W),M=S(G,"checked",z),N=S(G,"sortStatus",z),Q=l([]),R=l(!1),T=l("");function V(){R.value=!R.value}function X(){R.value=!1}a(X),o(R,(e=>{e&&(Q.value=[...M.value],T.value="")}));const{list:Y,containerProps:ee,wrapperProps:te}=j(i((()=>T.value?G.options.filter((e=>e.key.includes(T.value))):G.options)),{itemHeight:32,overscan:3}),le=i((()=>!!Q.value.length&&Q.value.length!==G.options.length)),ae=i({get:()=>Q.value.length===G.options.length,set:e=>{Q.value=e?G.options.map((e=>e.value)):[]}}),oe=i((()=>({...ee.style,height:x(320)})));function ie(){X(),z("update:checked",Q.value)}const se=[{status:"asc",text:"升序 A to Z"},{status:"desc",text:"降序 Z to A"}];const ne=i((()=>M.value.length||N.value)),ue=i((()=>{var e;return Z.isEditableColumn(K.value,null==(e=G.payload)?void 0:e.column)})),re=i((()=>({display:"inline-flex","align-items":"center",justifyContent:"start",width:`calc(100% - ${ue.value?19:0}px)`})));return(t,l)=>(s(),n("section",{style:u(r(re))},[c("section",null,[v(t.$slots,"header",{},(()=>[p(r(w),null,{default:d((()=>[f(h(e.payload.column.title),1)])),_:1})]))]),p(r(A),{to:`#${r(J)}`,show:R.value},{trigger:d((()=>[p(r($),{class:m(["iho-table__filterIcon",{"is-active":r(ne)}]),component:r(C),onClick:V},null,8,["class","component"])])),default:d((()=>[c("section",E,[_(' 判断是否显示升序降序模块的组件 v-if="sortable"'),e.sortable?(s(),n("div",F,[(s(),n(y,null,k(se,(e=>c("div",{key:e.status,class:m(["iho-table__filterButton",{"iho-table__filterButton--active":r(N)===e.status}]),onClick:t=>{return l=e.status,X(),void z("update:sortStatus",l);var l}},h(e.text),11,H))),64))])):_("v-if",!0),e.options.length>5?(s(),b(r(B),{key:1,value:T.value,"onUpdate:value":l[0]||(l[0]=e=>T.value=e)},null,8,["value"])):_("v-if",!0),c("div",O,[p(r(I),{label:"全选",checked:r(ae),"onUpdate:checked":l[1]||(l[1]=e=>g(ae)?ae.value=e:null),indeterminate:r(le)},null,8,["checked","indeterminate"])]),p(r(L),{value:Q.value,"onUpdate:value":l[3]||(l[3]=e=>Q.value=e)},{default:d((()=>[c("section",{ref:r(ee).ref,style:u(r(oe)),onScroll:l[2]||(l[2]=(...e)=>r(ee).onScroll&&r(ee).onScroll(...e)),class:"iho-table__filterListWrapper"},[c("section",{style:u(r(te).style)},[(s(!0),n(y,null,k(r(Y),(e=>(s(),n("div",{class:"iho-table__filterListItem",key:e.data.value},[p(r(I),{value:e.data.value,label:e.data.key},null,8,["value","label"])])))),128))],4)],36)])),_:1},8,["value"]),c("footer",D,[c("section",null,h(`已选择${Q.value.length}项`),1),p(r(U),{size:"tiny"},{default:d((()=>[p(r(q),{onClick:l[4]||(l[4]=e=>Q.value=[])},{default:d((()=>[f("清空")])),_:1}),p(r(q),{onClick:X},{default:d((()=>[f("取消")])),_:1}),p(r(q),{type:"primary",onClick:ie},{default:d((()=>[f("确定")])),_:1})])),_:1})])])])),_:1},8,["to","show"])],4))}}),[["__file","filter.vue"]]);export{G as default};
@@ -1 +0,0 @@
1
- export declare function filterPlugin(): import("../../../../../../es/components/iho-table").TablePlugin;
@@ -1 +0,0 @@
1
- import{computed as e,createVNode as t,onBeforeUnmount as l,reactive as o}from"vue";import{jsonParse as s}from"../../../../../shared/utils/index.js";import{isObject as i,isFunction as r,isArray as a}from"lodash-es";import"../../../index.js";import{IHO_TABLE_NUMBER_STATUS as n}from"../../constants/index.js";import{useUUIDMap as u,IhoTableRenderHelper as d,IhoTableUtils as c}from"../../utils/index.js";import f from"./filter.vue.js";import{defineTablePlugin as p}from"../../hooks/useTablePlugin.js";function m(){const m="filterPlugin",{getItemFromUUID:v,removeItemFromUUID:h}=u((()=>{const e=o(new Map),t=o(new Set);return{stateMap:e,filterSet:t,setChecked:function({value:l,field:o,$table:s,emits:i}){const r=e.get(o);if(!r)return;const a=s.getColumnByField(o);function n(e,t){var l,o;const i=s.getColumnByField(e);return{column:i,field:i.field,datas:[],property:i.field,values:[...null!=(o=null==(l=t.get(e))?void 0:l.checked)?o:[]]}}a&&(l.length?t.add(a.field):t.delete(a.field),r.checked=l,i("filterChange",{$event:new PointerEvent("click"),$table:s,...n(a.field,e),filterList:[...t.values()].map((t=>n(t,e)))}))},setSort:function({value:t,field:l,$table:o,emits:s}){const i=e.get(l);if(!i)return;const r=o.getColumnByField(l);if(!r)return;if(!i.sortStatus&&!t)return;i.sortStatus=t===i.sortStatus?null:t,e.forEach(((e,t)=>{t!==r.field&&(e.sortStatus=null)}));const a={column:r,field:r.field,order:t,property:r.field,sortTime:Date.now()};s("sortChange",{$table:o,$event:new PointerEvent("click"),...a,sortList:[a]})}}}));return p({name:m,apply(o){o.fieldHooks.fieldList.tap(m,((l,{uuid:o},{$table:u,emits:p})=>(l.forEach((l=>{var m,h,S,g,k,b,C;const $=null==(m=l.editRender)?void 0:m.props;if(!i($))return;const y=s($.fieldSetting||"");if(!d.hasFilter(y))return;const E=l.sortable;l.sortable=!1;let F=null!=(g=null==(S=null==(h=y.mapping)?void 0:h.mappingFiled)?void 0:S.map((e=>e.value[0])))?g:[];(function(e){const t=["SEARCH","SELECT","RADIO","CHECKBOX"];return(e.notParticipatingSearch||"")!==n.POSITIVE&&t.includes(c.getCellType(e))&&a(e.options)&&e.options.length})($)&&(F=null!=(b=null==(k=$.options)?void 0:k.map((e=>({...e,key:e.label}))))?b:[]);const{filterState:x,setChecked:I,setSort:j}=function(e,t,l={}){const{stateMap:o,setChecked:s,setSort:i}=v(e);return{filterState:o.set(t,o.get(t)||{options:[],checked:l.checked||[],sortStatus:l.sortStatus||null}).get(t),setChecked:s,setSort:i}}(o,l.field,$.filterDefaultValue);x.options=F;const P=null==(C=l.slots)?void 0:C.header,U=e({get:()=>x.sortStatus,set:e=>j({field:l.field,value:e,$table:u.value,emits:p})}),w=e({get:()=>x.checked,set:e=>I({field:l.field,value:e,$table:u.value,emits:p})}),D=e((()=>x.options));l.slots={...l.slots,header:e=>t(f,{payload:e,options:D.value,sortable:E,checked:w.value,"onUpdate:checked":e=>w.value=e,sortStatus:U.value,"onUpdate:sortStatus":e=>U.value=e},{header:()=>r(P)?P(e):P})}})),l))),o.setupHooks.setup.tap(m,(e=>{l((()=>e.value.uuid&&h(e.value.uuid)))})),o.exposeHooks.expose.tap(m,((e,t,{$table:l,emits:o})=>({...e,getFilterState(e){if(!t.value.uuid)return;const{stateMap:l}=v(t.value.uuid),o=l.get(e);return o&&{checked:[...o.checked],sortStatus:o.sortStatus}},setFilterState(e,s){if(!t.value.uuid)return;const{setChecked:i,setSort:r}=v(t.value.uuid);Reflect.has(s,"sortStatus")&&r({field:e,value:s.sortStatus,$table:l.value,emits:o}),a(s.checked)&&i({field:e,value:s.checked,$table:l.value,emits:o})}})))}})}export{m as filterPlugin};
@@ -1,7 +0,0 @@
1
- import { AnyObject } from '../../../../../../es/shared/types';
2
- import { VxeTablePropTypes } from 'vxe-table';
3
- export declare type FilterState = {
4
- options: AnyObject[];
5
- checked: string[];
6
- sortStatus: VxeTablePropTypes.SortOrder;
7
- };
@@ -1 +0,0 @@
1
- import{createVNode as e,mergeProps as r}from"vue";import"../../../../index.js";import{EDITABLE_WIDGET_TYPE as t}from"../../../constants/index.js";import{NTimePicker as o}from"naive-ui";import{createIhoTableClearActivedInterceptor as n,IhoTableRenderHelper as i}from"../../../utils/index.js";import{defineTablePlugin as l}from"../../../hooks/useTablePlugin.js";function m(){return l({name:"timeRendererPlugin",vxe(l){l.interceptor.add("event.clearActived",n(t.TIME,(e=>e.classList.contains("n-time-picker-panel")))),l.renderer.add(t.TIME,{renderCell:i.createDefaultRenderCell(),renderEdit:i.createRenderEdit((({fieldItem:t,row:n,column:i,emitFormChangeWithParams:l,emitFormClick:m})=>{const{placeholder:a="请选择",valueFormat:d="HH:mm"}=t.componentProps||{},s={placeholder:a,valueFormat:d,format:d||"yyyy-MM-dd HH:mm:ss",onUpdateFormattedValue:e=>{const r=n[i.field];n[i.field]=e,l({oldValue:r})},onClick:m};return[e(o,r({formattedValue:n[i.field],"onUpdate:formattedValue":e=>n[i.field]=e},s,t.componentProps),null)]}))})}})}export{m as timeRendererPlugin};
@@ -1 +0,0 @@
1
- import{defineComponent as t,ref as n,computed as e,openBlock as i,createElementBlock as o,normalizeStyle as r,unref as l,createElementVNode as u,createVNode as a,normalizeClass as c}from"vue";import s from"./InfoEllipsis.vue.js";import d from"../../../_virtual/plugin-vue_export-helper.js";const f={class:"c-info-header__hidden--content"};var p=d(t({__name:"HiddenContent",props:{content:{type:String,default:""},tip:String,width:{type:Number},contentStyle:{type:Object,default:()=>({})}},setup(t){const d=t,p=n(!0);function h(){p.value=!p.value}const v=e((()=>{const t=d.width+"px";return{maxWidth:t,width:t}})),_=e((()=>{if(!d.width)return{};const t=d.width-40+"px";return Object.assign({},d.contentStyle,{maxWidth:t})})),g=e((()=>{let{content:t}=d;if(t+="",!p.value)return t;if(!t)return"-";const n=t.length;if(!n||1===n)return t;const e=Math.floor(n/2),i=Math.floor((n-e)/2);return`${t.substring(0,i)}${"*".repeat(e)}${null==t?void 0:t.substring(i+e)}`}));return(n,e)=>(i(),o("div",{class:"c-info-header__hidden",style:r(l(v))},[u("div",f,[a(s,{"content-style":l(_),content:l(g),tip:t.tip},null,8,["content-style","content","tip"])]),u("i",{onClick:h,class:c(["c-info-header__hidden--icon","iconfont","info-header--icon-"+(p.value?"guanbi-yanjing":"faxian-yanjing")])},null,2)],4))}}),[["__file","HiddenContent.vue"]]);export{p as default};
@@ -1 +0,0 @@
1
- import{defineComponent as t,openBlock as e,createBlock as l,unref as i,withCtx as o,createElementVNode as p,createVNode as n,normalizeStyle as r,createTextVNode as u,toDisplayString as a}from"vue";import{NTooltip as s,NEllipsis as f}from"naive-ui";import d from"../../../_virtual/plugin-vue_export-helper.js";var m=d(t({__name:"InfoEllipsis",props:{content:{type:String,default:""},tip:{type:String},contentStyle:{type:Object,default:()=>({})}},setup:t=>(d,m)=>(e(),l(i(s),{disabled:!t.tip},{trigger:o((()=>[p("section",null,[n(i(f),{style:r(t.contentStyle),tooltip:{placement:t.tip?"bottom":"top"}},{default:o((()=>{var e;return[u(a(null!=(e=t.content)?e:"-"),1)]})),_:1},8,["style","tooltip"])])])),default:o((()=>[u(" "+a(t.tip),1)])),_:1},8,["disabled"]))}),[["__file","InfoEllipsis.vue"]]);export{m as default};
@@ -1,119 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- value: {
3
- type: ObjectConstructor;
4
- default: () => void;
5
- };
6
- format: {
7
- type: StringConstructor;
8
- default: string;
9
- };
10
- disabled: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
14
- isDetail: {
15
- type: BooleanConstructor;
16
- default: boolean;
17
- };
18
- defaultValue: {
19
- type: ObjectConstructor;
20
- default: () => {};
21
- };
22
- itemData: {
23
- type: ObjectConstructor;
24
- default: () => {};
25
- };
26
- shortcutFieldsList: {
27
- type: ArrayConstructor;
28
- default: () => never[];
29
- };
30
- }, {
31
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
32
- value: {
33
- type: ObjectConstructor;
34
- default: () => void;
35
- };
36
- format: {
37
- type: StringConstructor;
38
- default: string;
39
- };
40
- disabled: {
41
- type: BooleanConstructor;
42
- default: boolean;
43
- };
44
- isDetail: {
45
- type: BooleanConstructor;
46
- default: boolean;
47
- };
48
- defaultValue: {
49
- type: ObjectConstructor;
50
- default: () => {};
51
- };
52
- itemData: {
53
- type: ObjectConstructor;
54
- default: () => {};
55
- };
56
- shortcutFieldsList: {
57
- type: ArrayConstructor;
58
- default: () => never[];
59
- };
60
- }>> & {
61
- onChange?: ((...args: any[]) => any) | undefined;
62
- }>>;
63
- emits: (event: "change", ...args: any[]) => void;
64
- ageValue: any;
65
- showType: import("vue").ComputedRef<string>;
66
- isDisabled: import("vue").ComputedRef<boolean>;
67
- handleInitDefaultValue: () => void;
68
- checkType: (val: any) => string;
69
- handlefillVal: (val?: any) => void;
70
- handleYearChange: (e: any) => void;
71
- handleMonthChange: (e: any) => void;
72
- handleDayChange: (e: any) => void;
73
- getvalue: (e: any) => any;
74
- valueChange: (val: string, key: string) => void;
75
- checkVal: (val: string, key: string) => boolean;
76
- handleProrate: () => void;
77
- triggerChange: (changedValue: any) => void;
78
- NInputNumber: any;
79
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
80
- value: {
81
- type: ObjectConstructor;
82
- default: () => void;
83
- };
84
- format: {
85
- type: StringConstructor;
86
- default: string;
87
- };
88
- disabled: {
89
- type: BooleanConstructor;
90
- default: boolean;
91
- };
92
- isDetail: {
93
- type: BooleanConstructor;
94
- default: boolean;
95
- };
96
- defaultValue: {
97
- type: ObjectConstructor;
98
- default: () => {};
99
- };
100
- itemData: {
101
- type: ObjectConstructor;
102
- default: () => {};
103
- };
104
- shortcutFieldsList: {
105
- type: ArrayConstructor;
106
- default: () => never[];
107
- };
108
- }>> & {
109
- onChange?: ((...args: any[]) => any) | undefined;
110
- }, {
111
- value: Record<string, any>;
112
- disabled: boolean;
113
- isDetail: boolean;
114
- defaultValue: Record<string, any>;
115
- format: string;
116
- itemData: Record<string, any>;
117
- shortcutFieldsList: unknown[];
118
- }>;
119
- export default _default;
@@ -1,199 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- title: {
3
- type: (NumberConstructor | StringConstructor)[];
4
- };
5
- list: {
6
- type: ArrayConstructor;
7
- default: never[];
8
- };
9
- currentTempId: {
10
- type: (NumberConstructor | StringConstructor)[];
11
- };
12
- }, {
13
- BTNOBJ: {
14
- copy: string;
15
- pencil: string;
16
- delete: string;
17
- add: string;
18
- download: string;
19
- label: string;
20
- queding: string;
21
- del: string;
22
- };
23
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
24
- title: {
25
- type: (NumberConstructor | StringConstructor)[];
26
- };
27
- list: {
28
- type: ArrayConstructor;
29
- default: never[];
30
- };
31
- currentTempId: {
32
- type: (NumberConstructor | StringConstructor)[];
33
- };
34
- }>> & {
35
- onShowDrawer?: ((...args: any[]) => any) | undefined;
36
- onClickGroupBtn?: ((...args: any[]) => any) | undefined;
37
- }>>;
38
- emit: (event: "showDrawer" | "clickGroupBtn", ...args: any[]) => void;
39
- btnObj: import("vue").Ref<{
40
- copy: string;
41
- pencil: string;
42
- delete: string;
43
- add: string;
44
- download: string;
45
- label: string;
46
- queding: string;
47
- del: string;
48
- }>;
49
- handleSelect: (key: string, option: any) => void;
50
- showDrawer: (btn: any, j: number) => void;
51
- clickBtn: (btn: any, j: number) => void;
52
- NButton: any;
53
- NDropdown: any;
54
- TextOverTooltip: import("vue").DefineComponent<{
55
- content: {
56
- type: (NumberConstructor | StringConstructor)[];
57
- required: false;
58
- };
59
- className: {
60
- type: StringConstructor;
61
- required: false;
62
- };
63
- refName: {
64
- type: StringConstructor;
65
- required: false;
66
- };
67
- effect: {
68
- type: StringConstructor;
69
- required: false;
70
- default: string;
71
- };
72
- placement: {
73
- type: StringConstructor;
74
- required: false;
75
- default: string;
76
- };
77
- tooltipTitle: {
78
- type: (NumberConstructor | StringConstructor)[];
79
- required: false;
80
- default: string;
81
- };
82
- isAlias: {
83
- type: BooleanConstructor;
84
- required: false;
85
- };
86
- }, {
87
- props: {
88
- content?: string | number | undefined;
89
- className?: string | undefined;
90
- refName?: string | undefined;
91
- effect: string;
92
- placement: "left" | "right" | "top" | "bottom" | "bottom-start" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-end" | "left-start" | "left-end";
93
- tooltipTitle: string | number;
94
- isAlias?: boolean | undefined;
95
- };
96
- isDisabledTooltip: import("vue").Ref<boolean>;
97
- curContent: import("vue").ComputedRef<string>;
98
- $refName: any;
99
- onMouseOver: (str: any) => void;
100
- onMouseOut: () => void;
101
- NTooltip: any;
102
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
103
- content: {
104
- type: (NumberConstructor | StringConstructor)[];
105
- required: false;
106
- };
107
- className: {
108
- type: StringConstructor;
109
- required: false;
110
- };
111
- refName: {
112
- type: StringConstructor;
113
- required: false;
114
- };
115
- effect: {
116
- type: StringConstructor;
117
- required: false;
118
- default: string;
119
- };
120
- placement: {
121
- type: StringConstructor;
122
- required: false;
123
- default: string;
124
- };
125
- tooltipTitle: {
126
- type: (NumberConstructor | StringConstructor)[];
127
- required: false;
128
- default: string;
129
- };
130
- isAlias: {
131
- type: BooleanConstructor;
132
- required: false;
133
- };
134
- }>>, {
135
- placement: string;
136
- effect: string;
137
- tooltipTitle: string | number;
138
- isAlias: boolean;
139
- }>;
140
- SvgIcon: import("vue").DefineComponent<{
141
- iconClass: {
142
- type: StringConstructor;
143
- required: true;
144
- default: string;
145
- };
146
- title: {
147
- type: StringConstructor;
148
- required: false;
149
- default: string;
150
- };
151
- className: {
152
- type: StringConstructor;
153
- required: false;
154
- };
155
- }, {
156
- props: {
157
- iconClass: string;
158
- title: string;
159
- className?: string | undefined;
160
- };
161
- iconName: import("vue").ComputedRef<string>;
162
- svgClass: import("vue").ComputedRef<string>;
163
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
164
- iconClass: {
165
- type: StringConstructor;
166
- required: true;
167
- default: string;
168
- };
169
- title: {
170
- type: StringConstructor;
171
- required: false;
172
- default: string;
173
- };
174
- className: {
175
- type: StringConstructor;
176
- required: false;
177
- };
178
- }>>, {
179
- title: string;
180
- iconClass: string;
181
- }>;
182
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("showDrawer" | "clickGroupBtn")[], "showDrawer" | "clickGroupBtn", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
183
- title: {
184
- type: (NumberConstructor | StringConstructor)[];
185
- };
186
- list: {
187
- type: ArrayConstructor;
188
- default: never[];
189
- };
190
- currentTempId: {
191
- type: (NumberConstructor | StringConstructor)[];
192
- };
193
- }>> & {
194
- onShowDrawer?: ((...args: any[]) => any) | undefined;
195
- onClickGroupBtn?: ((...args: any[]) => any) | undefined;
196
- }, {
197
- list: unknown[];
198
- }>;
199
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const getBtnIcon: any;
2
- export default getBtnIcon;
@@ -1 +0,0 @@
1
- import{h as n}from"vue";const o={props:["data","btnObj"],functional:!0,render:function(o){const i=o.data||{},t=o.data||{};return i.icon?"only_icon"!==i.showStyle&&t[i.icon]?n("n-icon",{class:"custom-icon",type:t[i.icon]}):n("svg-icon",{iconClass:i.icon,style:{marginRight:"8px"}}):i.iconSetting?n("svg-icon",{iconClass:JSON.parse(i.iconSetting).icon,style:{marginRight:"8px"}}):void 0}};export{o as default};
@@ -1,90 +0,0 @@
1
- import { PropType } from 'vue';
2
- import { ISearchType } from '../../../../../../es/components/table-filter/src/types';
3
- declare const _default: import("vue").DefineComponent<{
4
- item: {
5
- type: PropType<ISearchType>;
6
- default: () => {
7
- value: never[];
8
- };
9
- };
10
- handleGetConfigApi: {
11
- type: FunctionConstructor;
12
- default: () => void;
13
- };
14
- filterApiConfig: {
15
- type: ObjectConstructor;
16
- };
17
- outFilterChange: {
18
- type: FunctionConstructor;
19
- default: () => void;
20
- };
21
- }, {
22
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
23
- item: {
24
- type: PropType<ISearchType>;
25
- default: () => {
26
- value: never[];
27
- };
28
- };
29
- handleGetConfigApi: {
30
- type: FunctionConstructor;
31
- default: () => void;
32
- };
33
- filterApiConfig: {
34
- type: ObjectConstructor;
35
- };
36
- outFilterChange: {
37
- type: FunctionConstructor;
38
- default: () => void;
39
- };
40
- }>> & {}>>;
41
- quickInputSelect: any;
42
- treeData: import("vue").Ref<{
43
- label: string;
44
- key: string;
45
- selectable: boolean;
46
- scopedSlots: {
47
- title: string;
48
- };
49
- }[]>;
50
- handleMaxTagCount: import("vue").ComputedRef<(item: ISearchType) => 0 | 1>;
51
- showRemoveIcon: import("vue").ComputedRef<boolean>;
52
- init: () => Promise<void>;
53
- handleMaxTag: () => string;
54
- handleRequestedOptions: (item: ISearchType) => Promise<any>;
55
- getSearchDefParams: (item: ISearchType) => any;
56
- formatField: (value: any) => any;
57
- hanldeGetCascadelabel: (v?: never[], k?: {}) => any;
58
- handleInitTreeData: (list: any, config: ISearchType) => void;
59
- hanldeSetTreeDef: () => void;
60
- maxTagPlaceholder: (item: ISearchType) => number;
61
- treeSelect: (key: string, vnode: any) => void;
62
- change: () => void;
63
- handleDisabledTreeData: (list?: any, config?: any) => void;
64
- createSuffixIcon: () => void;
65
- NTreeSelect: any;
66
- NSpin: any;
67
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
68
- item: {
69
- type: PropType<ISearchType>;
70
- default: () => {
71
- value: never[];
72
- };
73
- };
74
- handleGetConfigApi: {
75
- type: FunctionConstructor;
76
- default: () => void;
77
- };
78
- filterApiConfig: {
79
- type: ObjectConstructor;
80
- };
81
- outFilterChange: {
82
- type: FunctionConstructor;
83
- default: () => void;
84
- };
85
- }>>, {
86
- item: ISearchType;
87
- handleGetConfigApi: Function;
88
- outFilterChange: Function;
89
- }>;
90
- export default _default;