cnhis-design-vue 3.1.57-beta.2 → 3.1.57-beta.20

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 (164) hide show
  1. package/README.md +87 -87
  2. package/es/components/button-print/index.d.ts +8 -8
  3. package/es/components/button-print/src/ButtonPrint.vue.d.ts +8 -8
  4. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  5. package/es/components/button-print/src/components/EditFormat.vue.d.ts +3 -3
  6. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +7 -7
  7. package/es/components/button-print/style/index.css +1 -1
  8. package/es/components/calendar/index.d.ts +276 -0
  9. package/es/components/calendar/index.js +1 -0
  10. package/es/components/calendar/src/Calendar.vue.d.ts +265 -0
  11. package/es/components/calendar/src/Calendar.vue.js +1 -0
  12. package/es/components/calendar/src/Calendar.vue2.js +1 -0
  13. package/es/components/calendar/src/types/index.d.ts +6 -0
  14. package/es/components/calendar/src/types/index.js +1 -0
  15. package/es/components/calendar/style/index.css +1 -0
  16. package/es/components/callback/src/components/render/popupMaps.d.ts +233 -224
  17. package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
  18. package/es/components/classification/src/index.vue.d.ts +3 -3
  19. package/es/components/expand-field/index.d.ts +18 -27
  20. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +15 -24
  21. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +15 -24
  22. package/es/components/expand-field/src/components/form.vue.d.ts +18 -27
  23. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  24. package/es/components/expand-field/src/index.vue.d.ts +18 -27
  25. package/es/components/fabric-chart/index.d.ts +4 -2
  26. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +4 -2
  27. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  28. package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
  29. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  30. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  31. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  32. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
  33. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  35. package/es/components/fabric-chart/src/interface.d.ts +3 -3
  36. package/es/components/field-set/index.d.ts +107 -616
  37. package/es/components/field-set/index.js +1 -1
  38. package/es/components/field-set/src/FieldColor.vue.d.ts +1680 -0
  39. package/es/components/field-set/src/FieldColor.vue.js +1 -0
  40. package/es/components/field-set/src/FieldColor.vue2.js +1 -0
  41. package/es/components/field-set/src/FieldSet.vue.d.ts +58 -16
  42. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  43. package/es/components/field-set/src/Index.vue.d.ts +141 -0
  44. package/es/components/field-set/src/Index.vue.js +1 -0
  45. package/es/components/field-set/src/Index.vue2.js +1 -0
  46. package/es/components/field-set/src/components/Row.vue.d.ts +50 -9
  47. package/es/components/field-set/src/components/Row.vue2.js +1 -1
  48. package/es/components/field-set/src/components/condition.vue.d.ts +172 -0
  49. package/es/components/field-set/src/components/condition.vue.js +1 -0
  50. package/es/components/field-set/src/components/condition.vue2.js +1 -0
  51. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1194 -0
  52. package/es/components/field-set/src/components/edit-dialog.vue.js +1 -0
  53. package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -0
  54. package/es/components/field-set/src/components/edit-filter.vue.d.ts +286 -0
  55. package/es/components/field-set/src/components/edit-filter.vue.js +1 -0
  56. package/es/components/field-set/src/components/edit-filter.vue2.js +1 -0
  57. package/es/components/field-set/src/constants/index.d.ts +55 -0
  58. package/es/components/field-set/src/constants/index.js +1 -0
  59. package/es/components/field-set/src/types/index.d.ts +31 -1
  60. package/es/components/field-set/src/utils/index.d.ts +2 -1
  61. package/es/components/field-set/src/utils/index.js +1 -1
  62. package/es/components/field-set/style/index.css +1 -1
  63. package/es/components/form-config/index.d.ts +55 -30
  64. package/es/components/form-config/src/FormConfig.vue.d.ts +55 -30
  65. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +17 -8
  66. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +23 -11
  67. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +8 -8
  68. package/es/components/form-config/src/constants/index.d.ts +1 -1
  69. package/es/components/form-config/src/types/index.d.ts +2 -2
  70. package/es/components/form-render/index.d.ts +17 -8
  71. package/es/components/form-render/index.js +1 -1
  72. package/es/components/form-render/src/FormRender.vue.d.ts +17 -8
  73. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  74. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +17 -8
  75. package/es/components/form-render/src/components/renderer/combination/combination.d.ts +12 -0
  76. package/es/components/form-render/src/components/renderer/combination/combination.js +1 -1
  77. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +1 -1
  78. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
  79. package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +12 -0
  80. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -1
  81. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  82. package/es/components/form-render/src/hooks/index.d.ts +1 -0
  83. package/es/components/form-render/src/hooks/index.js +1 -1
  84. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  85. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
  86. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  87. package/es/components/form-render/src/hooks/useNewLowCodeReactions.d.ts +6 -0
  88. package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +1 -0
  89. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  90. package/es/components/form-render/src/types/index.d.ts +1 -1
  91. package/es/components/guide/src/renderer.d.ts +2 -2
  92. package/es/components/iho-table/index.d.ts +216 -216
  93. package/es/components/iho-table/src/IhoTable.vue.d.ts +216 -216
  94. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +3 -1
  95. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  96. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +1 -1
  97. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  98. package/es/components/iho-table/src/types/index.d.ts +1 -0
  99. package/es/components/index.css +1 -1
  100. package/es/components/index.d.ts +2 -1
  101. package/es/components/index.js +1 -1
  102. package/es/components/info-header/index.d.ts +41 -23
  103. package/es/components/info-header/src/InfoHeader.vue.d.ts +41 -23
  104. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -1
  105. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -1
  106. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +18 -9
  107. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +17 -8
  108. package/es/components/keyboard/index.d.ts +1 -1
  109. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  110. package/es/components/quick-search/index.d.ts +3 -3
  111. package/es/components/quick-search/src/index.vue.d.ts +3 -3
  112. package/es/components/recommend-search/index.d.ts +6 -6
  113. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +6 -6
  114. package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
  115. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
  116. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  117. package/es/components/scale-view/index.d.ts +3 -3
  118. package/es/components/scale-view/src/ScaleView.vue.d.ts +3 -3
  119. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  120. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  121. package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
  122. package/es/components/select-label/index.d.ts +2 -2
  123. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
  124. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  125. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  126. package/es/components/select-label/src/index.vue.d.ts +1 -1
  127. package/es/components/select-person/index.d.ts +15 -24
  128. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  129. package/es/components/select-person/src/SelectPerson.vue.d.ts +15 -18
  130. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  131. package/es/components/select-person/style/index.css +1 -1
  132. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
  133. package/es/components/shortcut-setter/index.d.ts +18 -8
  134. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +18 -8
  135. package/es/components/table-export-field/index.d.ts +3 -3
  136. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
  137. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +3 -3
  138. package/es/components/table-export-field/src/index.vue.d.ts +3 -3
  139. package/es/components/time-line/index.d.ts +7 -7
  140. package/es/components/time-line/src/TimeLine.vue.d.ts +3 -3
  141. package/es/env.d.ts +25 -25
  142. package/es/shared/assets/img/failure.png.js +1 -1
  143. package/es/shared/assets/img/no-permission.png.js +1 -1
  144. package/es/shared/assets/img/nodata.png.js +1 -1
  145. package/es/shared/assets/img/notfound.png.js +1 -1
  146. package/es/shared/assets/img/qr.png.js +1 -1
  147. package/es/shared/assets/img/success.png.js +1 -1
  148. package/es/shared/assets/img/video.png.js +1 -1
  149. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  150. package/es/shared/assets/img/xb_big.png.js +1 -1
  151. package/es/shared/assets/img/xb_small.png.js +1 -1
  152. package/es/shared/package.json.js +1 -1
  153. package/es/shared/types/business.d.ts +23 -3
  154. package/es/shared/utils/business.d.ts +2 -1
  155. package/es/shared/utils/business.js +1 -1
  156. package/es/shared/utils/index.js +1 -1
  157. package/package.json +8 -2
  158. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  159. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  160. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  161. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  162. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  163. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  164. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -0,0 +1 @@
1
+ import e from"./edit-dialog.vue2.js";import i from"../../../../_virtual/_plugin-vue_export-helper.js";var r=i(e,[["__file","edit-dialog.vue"]]);export{r as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as l,ref as o,computed as a,reactive as t,openBlock as i,createBlock as r,unref as s,withCtx as n,createVNode as u,normalizeStyle as c,createElementVNode as d,createCommentVNode as m}from"vue";import{useMessage as p,NModal as f,NForm as v,NFormItem as b,NInput as h,NColorPicker as g,NSelect as k,NCheckbox as _,NRadioGroup as w,NSpace as y,NRadio as C}from"naive-ui";import{useTheme as j}from"../../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../../shared/utils/index.js";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import x from"./condition.vue.js";import F from"./edit-filter.vue.js";import{COLOR_MAP as N,InjectionFieldList as U}from"../constants/index.js";var O=e({__name:"edit-dialog",props:{visible:{type:Boolean,default:!1},isFieldColor:{type:Boolean,default:!0},row:{type:Object,default:null}},emits:["update:visible","confirm"],setup(e,{emit:O}){const q=e,S=j(),B=p(),E=Object.entries(N).map((([e,l])=>({label:l,value:e}))),R=Object.entries(N).map((([e])=>e)),D=l(U),H=o(),P=o(),T=o(!1),W=a((()=>q.row?q.isFieldColor?"修改":"过滤条件":"新增")),z=t({name:"",color:"",status:!0,columnName:"",colorScope:q.isFieldColor?"font":"background",condition:[],sqlExpression:""}),A=t({name:[{required:!0,message:"请输入名称",trigger:["blur"]}],color:[{required:!0,message:"请选择颜色",trigger:["blur"]}],columnName:[{required:!0,validator:(e,l)=>!(!l&&q.isFieldColor)||new Error("请选择字段"),trigger:["blur"]}]});function G(e){return u("span",{style:{"--color":e.value},class:"c-field-set__color-block"},[e.label])}function I(){var e;console.log(z),null==(e=H.value)||e.validate((async e=>{var l,o;if(e){const l=await e;B.warning(l[0][0].message)}else{if(q.isFieldColor||Object.assign(z,P.value.getData()),!(null==(l=z.condition)?void 0:l.length))return void B.warning("请配置过滤条件");const e=q.isFieldColor?{title:null==(o=D.find((e=>e.columnName===z.columnName)))?void 0:o.title}:{};O("confirm",{...z,...e}),J()}}))}function J(){O("update:visible",!1)}function K(e){Object.assign(z,e)}return function(){if(!q.row)return;Object.assign(z,q.row)}(),(l,o)=>(i(),r(s(f),{preset:"dialog",style:{width:"860px"},title:s(W),"close-on-esc":!1,"show-icon":!1,"mask-closable":!1,"positive-text":"确定","negative-text":"取消","trap-focus":!1,show:e.visible,onPositiveClick:I,onNegativeClick:J,onClose:J},{default:n((()=>[u(s(v),{ref_key:"formRef",ref:H,model:z,rules:A,"label-placement":"left","label-width":"auto","show-feedback":!1,"show-require-mark":!1,style:c({maxWidth:"500px",...s(S)})},{default:n((()=>[u(s(b),{label:"名称:",path:"name",style:{"margin-bottom":"10px"}},{default:n((()=>[u(s(h),{value:z.name,"onUpdate:value":o[0]||(o[0]=e=>z.name=e),placeholder:"请填写名称",clearable:""},null,8,["value"])])),_:1}),e.isFieldColor?(i(),r(s(b),{key:0,label:"颜色:",path:"color"},{default:n((()=>[u(s(g),{clearable:"",placeholder:"请选择颜色",value:z.color,"onUpdate:value":o[1]||(o[1]=e=>z.color=e),swatches:s(R),modes:["hex"],class:"c-field-set__color-picker"},null,8,["value","swatches"])])),_:1})):(i(),r(s(b),{key:1,label:"颜色:",path:"color"},{default:n((()=>[u(s(k),{value:z.color,"onUpdate:value":o[2]||(o[2]=e=>z.color=e),placeholder:"请选择颜色","render-label":G,options:s(E)},null,8,["value","options"])])),_:1})),u(s(b),{label:"显示:",path:"status"},{default:n((()=>[u(s(_),{checked:z.status,"onUpdate:checked":o[3]||(o[3]=e=>z.status=e)},null,8,["checked"])])),_:1}),u(s(b),{label:"颜色应用于:",path:"colorScope"},{default:n((()=>[u(s(w),{value:z.colorScope,"onUpdate:value":o[4]||(o[4]=e=>z.colorScope=e)},{default:n((()=>[u(s(y),null,{default:n((()=>[u(s(C),{label:"字体",value:"font"}),u(s(C),{label:"背景",value:"background"})])),_:1})])),_:1},8,["value"])])),_:1}),e.isFieldColor?(i(),r(s(b),{key:2,label:"字段:",path:"columnName",style:{"margin-bottom":"10px"}},{default:n((()=>[u(s(y),{class:"c-field-set__space",align:"center"},{default:n((()=>[u(s(k),{value:z.columnName,"onUpdate:value":o[5]||(o[5]=e=>z.columnName=e),placeholder:"请选择字段名","label-field":"title","value-field":"columnName",options:s(D)},null,8,["value","options"]),d("span",{class:"filter-btn",onClick:o[6]||(o[6]=()=>T.value=!0)},"筛选")])),_:1})])),_:1})):m("v-if",!0)])),_:1},8,["model","rules","style"]),e.isFieldColor?(i(),r(F,{key:1,visible:T.value,"onUpdate:visible":o[7]||(o[7]=e=>T.value=e),model:z,onConfirm:K},null,8,["visible","model"])):(i(),r(x,{key:0,ref_key:"conditionRef",ref:P,data:z},null,8,["data"]))])),_:1},8,["title","show"]))}});export{O as default};
@@ -0,0 +1,286 @@
1
+ import { AnyObject } from '../../../../shared/types';
2
+ import { PropType } from 'vue';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ visible: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ model: {
9
+ type: PropType<AnyObject>;
10
+ default: null;
11
+ };
12
+ }, {
13
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
14
+ visible: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ model: {
19
+ type: PropType<AnyObject>;
20
+ default: null;
21
+ };
22
+ }>> & {
23
+ onConfirm?: ((...args: any[]) => any) | undefined;
24
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
25
+ }>>;
26
+ emit: (event: "update:visible" | "confirm", ...args: any[]) => void;
27
+ conditionRef: import("vue").Ref<any>;
28
+ onConfirm: () => void;
29
+ onClose: () => void;
30
+ NModal: any;
31
+ Condition: import("vue").DefineComponent<{
32
+ data: {
33
+ type: PropType<AnyObject>;
34
+ default: null;
35
+ };
36
+ }, {
37
+ customValue: string;
38
+ cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
39
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
40
+ data: {
41
+ type: PropType<AnyObject>;
42
+ default: null;
43
+ };
44
+ }>> & {}>>;
45
+ fieldList: AnyObject[];
46
+ queryWordbookData: ((params: import("../types").ColorSetWordbook) => Promise<{
47
+ [key: string]: any;
48
+ label: string;
49
+ value: string;
50
+ }[]>) | undefined;
51
+ condition: import("vue").Ref<{
52
+ field_key: string;
53
+ con: string;
54
+ value?: any;
55
+ start_val?: string | undefined;
56
+ end_val?: string | undefined;
57
+ is_compare_field?: boolean | undefined;
58
+ compare_field: any;
59
+ numberValue: number | null;
60
+ dateValue: string | [string, string] | null;
61
+ fieldType: string;
62
+ conOptions: AnyObject[];
63
+ compareFieldOptions: AnyObject[];
64
+ unit: string | null;
65
+ multiple: boolean;
66
+ }[]>;
67
+ sqlExpression: import("vue").Ref<string>;
68
+ setConOptions: (item: import("../types").ColorSetConditionItem & {
69
+ numberValue: number | null;
70
+ dateValue: string | [string, string] | null;
71
+ fieldType: string;
72
+ conOptions: AnyObject[];
73
+ compare_field: any;
74
+ compareFieldOptions: AnyObject[];
75
+ unit: string | null;
76
+ multiple: boolean;
77
+ }, isInit?: boolean) => void;
78
+ setCompareFieldOptions: (item: import("../types").ColorSetConditionItem & {
79
+ numberValue: number | null;
80
+ dateValue: string | [string, string] | null;
81
+ fieldType: string;
82
+ conOptions: AnyObject[];
83
+ compare_field: any;
84
+ compareFieldOptions: AnyObject[];
85
+ unit: string | null;
86
+ multiple: boolean;
87
+ }, isInit?: boolean) => Promise<void>;
88
+ resetItem: (item: import("../types").ColorSetConditionItem & {
89
+ numberValue: number | null;
90
+ dateValue: string | [string, string] | null;
91
+ fieldType: string;
92
+ conOptions: AnyObject[];
93
+ compare_field: any;
94
+ compareFieldOptions: AnyObject[];
95
+ unit: string | null;
96
+ multiple: boolean;
97
+ }) => void;
98
+ showBooleanValue: (item: import("../types").ColorSetConditionItem & {
99
+ numberValue: number | null;
100
+ dateValue: string | [string, string] | null;
101
+ fieldType: string;
102
+ conOptions: AnyObject[];
103
+ compare_field: any;
104
+ compareFieldOptions: AnyObject[];
105
+ unit: string | null;
106
+ multiple: boolean;
107
+ }) => boolean | "";
108
+ showInput: (item: import("../types").ColorSetConditionItem & {
109
+ numberValue: number | null;
110
+ dateValue: string | [string, string] | null;
111
+ fieldType: string;
112
+ conOptions: AnyObject[];
113
+ compare_field: any;
114
+ compareFieldOptions: AnyObject[];
115
+ unit: string | null;
116
+ multiple: boolean;
117
+ }) => boolean;
118
+ showInputNumber: (item: import("../types").ColorSetConditionItem & {
119
+ numberValue: number | null;
120
+ dateValue: string | [string, string] | null;
121
+ fieldType: string;
122
+ conOptions: AnyObject[];
123
+ compare_field: any;
124
+ compareFieldOptions: AnyObject[];
125
+ unit: string | null;
126
+ multiple: boolean;
127
+ }) => boolean;
128
+ showUnit: (item: import("../types").ColorSetConditionItem & {
129
+ numberValue: number | null;
130
+ dateValue: string | [string, string] | null;
131
+ fieldType: string;
132
+ conOptions: AnyObject[];
133
+ compare_field: any;
134
+ compareFieldOptions: AnyObject[];
135
+ unit: string | null;
136
+ multiple: boolean;
137
+ }) => boolean;
138
+ showDatePicker: (item: import("../types").ColorSetConditionItem & {
139
+ numberValue: number | null;
140
+ dateValue: string | [string, string] | null;
141
+ fieldType: string;
142
+ conOptions: AnyObject[];
143
+ compare_field: any;
144
+ compareFieldOptions: AnyObject[];
145
+ unit: string | null;
146
+ multiple: boolean;
147
+ }) => boolean;
148
+ getDateType: (item: import("../types").ColorSetConditionItem & {
149
+ numberValue: number | null;
150
+ dateValue: string | [string, string] | null;
151
+ fieldType: string;
152
+ conOptions: AnyObject[];
153
+ compare_field: any;
154
+ compareFieldOptions: AnyObject[];
155
+ unit: string | null;
156
+ multiple: boolean;
157
+ }) => "datetime" | "datetimerange";
158
+ onAdd: () => void;
159
+ onRemove: (index: number) => void;
160
+ init: () => void;
161
+ formatCondition: () => {
162
+ field_key: string;
163
+ fieldType: string;
164
+ con: string;
165
+ value: any;
166
+ compare_field: any;
167
+ is_compare_field: boolean;
168
+ start_val: any;
169
+ end_val: any;
170
+ wordbookValueList: any;
171
+ unit: any;
172
+ }[];
173
+ NInput: any;
174
+ NInputNumber: any;
175
+ NSelect: any;
176
+ NIcon: any;
177
+ AddCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
178
+ RemoveCircle: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
179
+ UNIT_OPTIONS: {
180
+ label: string;
181
+ value: string;
182
+ }[];
183
+ BOOLEAN_OPTIONS: {
184
+ label: string;
185
+ value: string;
186
+ }[];
187
+ CDatePicker: import("../../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
188
+ updateUnchangedValue: {
189
+ type: BooleanConstructor;
190
+ };
191
+ onConfirm: {
192
+ type: FunctionConstructor;
193
+ };
194
+ formattedValue: {
195
+ type: PropType<(string | [string, string]) | null | undefined>;
196
+ };
197
+ placeholder: {
198
+ type: StringConstructor;
199
+ };
200
+ allowedInvalidValue: {
201
+ type: StringConstructor;
202
+ };
203
+ }, {
204
+ attrs: {
205
+ [x: string]: unknown;
206
+ };
207
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
208
+ updateUnchangedValue: {
209
+ type: BooleanConstructor;
210
+ };
211
+ onConfirm: {
212
+ type: FunctionConstructor;
213
+ };
214
+ formattedValue: {
215
+ type: PropType<(string | [string, string]) | null | undefined>;
216
+ };
217
+ placeholder: {
218
+ type: StringConstructor;
219
+ };
220
+ allowedInvalidValue: {
221
+ type: StringConstructor;
222
+ };
223
+ }>> & {
224
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
225
+ }>>;
226
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
227
+ datePickerRef: import("vue").Ref<AnyObject | null>;
228
+ panelInstRef: import("vue").Ref<null>;
229
+ placeholderRef: import("vue").Ref<any>;
230
+ currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
231
+ isDateTime: import("vue").ComputedRef<boolean>;
232
+ formatRef: import("vue").ComputedRef<string>;
233
+ panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
234
+ focus: () => any;
235
+ blur: () => any;
236
+ handleConfirm: (target: HTMLInputElement) => void;
237
+ onUpdateShow: (show: boolean) => void;
238
+ onConfirm: (...args: any[]) => Promise<void>;
239
+ isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
240
+ NDatePicker: any;
241
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
242
+ updateUnchangedValue: {
243
+ type: BooleanConstructor;
244
+ };
245
+ onConfirm: {
246
+ type: FunctionConstructor;
247
+ };
248
+ formattedValue: {
249
+ type: PropType<(string | [string, string]) | null | undefined>;
250
+ };
251
+ placeholder: {
252
+ type: StringConstructor;
253
+ };
254
+ allowedInvalidValue: {
255
+ type: StringConstructor;
256
+ };
257
+ }>> & {
258
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
259
+ }, {
260
+ updateUnchangedValue: boolean;
261
+ }>>;
262
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
263
+ data: {
264
+ type: PropType<AnyObject>;
265
+ default: null;
266
+ };
267
+ }>>, {
268
+ data: AnyObject;
269
+ }>;
270
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "confirm")[], "confirm" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
271
+ visible: {
272
+ type: BooleanConstructor;
273
+ default: boolean;
274
+ };
275
+ model: {
276
+ type: PropType<AnyObject>;
277
+ default: null;
278
+ };
279
+ }>> & {
280
+ onConfirm?: ((...args: any[]) => any) | undefined;
281
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
282
+ }, {
283
+ visible: boolean;
284
+ model: AnyObject;
285
+ }>;
286
+ export default _default;
@@ -0,0 +1 @@
1
+ import e from"./edit-filter.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","edit-filter.vue"]]);export{t as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,openBlock as i,createBlock as o,unref as l,withCtx as a,createVNode as n}from"vue";import{NModal as s}from"naive-ui";import r from"./condition.vue.js";var u=e({__name:"edit-filter",props:{visible:{type:Boolean,default:!1},model:{type:Object,default:null}},emits:["update:visible","confirm"],setup(e,{emit:u}){const d=t();function f(){var e;u("confirm",null==(e=d.value)?void 0:e.getData()),c()}function c(){u("update:visible",!1)}return(t,u)=>(i(),o(l(s),{preset:"dialog",style:{width:"860px"},title:"设置分类","close-on-esc":!1,"show-icon":!1,"mask-closable":!1,"positive-text":"确定","negative-text":"取消","trap-focus":!1,show:e.visible,onPositiveClick:f,onNegativeClick:c,onClose:c},{default:a((()=>[n(r,{ref_key:"conditionRef",ref:d,data:e.model},null,8,["data"])])),_:1},8,["show"]))}});export{u as default};
@@ -0,0 +1,55 @@
1
+ import { AnyObject } from '../../../../shared/types';
2
+ import { InjectionKey } from 'vue';
3
+ import { ColorSetWordbook } from '../types';
4
+ export declare const FIELD_TYPE_LIST: ({
5
+ conList: {
6
+ name: string;
7
+ text: string;
8
+ }[];
9
+ name: string;
10
+ format: string;
11
+ type: string;
12
+ } | {
13
+ conList: {
14
+ name: string;
15
+ text: string;
16
+ }[];
17
+ name: string;
18
+ type: string;
19
+ format?: undefined;
20
+ })[];
21
+ export declare const SHOWSETTING_OPTIONS: {
22
+ text: string;
23
+ name: string;
24
+ }[];
25
+ export declare const WORDBOOK_OPTIONS: {
26
+ text: string;
27
+ name: string;
28
+ }[];
29
+ export declare const CUSTOM_INPUT_OPTIONS: {
30
+ title: string;
31
+ columnName: string;
32
+ }[];
33
+ export declare const UNIT_OPTIONS: {
34
+ label: string;
35
+ value: string;
36
+ }[];
37
+ export declare const BOOLEAN_OPTIONS: {
38
+ label: string;
39
+ value: string;
40
+ }[];
41
+ export declare const COLOR_MAP: Readonly<{
42
+ '#FFC400': "黄色";
43
+ '#00B145': "绿色";
44
+ '#427BFF': "蓝色";
45
+ '#C163FF': "紫色";
46
+ '#DB0000': "红色";
47
+ }>;
48
+ export declare const InjectionFieldList: InjectionKey<AnyObject[]>;
49
+ declare type WordbookOption = {
50
+ label: string;
51
+ value: string;
52
+ [key: string]: any;
53
+ };
54
+ export declare const InjectionQueryWordbookData: InjectionKey<(params: ColorSetWordbook) => Promise<WordbookOption[]>>;
55
+ export {};
@@ -0,0 +1 @@
1
+ const e=[{name:"NULL",text:"为空"},{name:"NOT_NULL",text:"不为空"},{name:"IN",text:"等于"},{name:"NEQ",text:"不等于"},{name:"BIG",text:"大于"},{name:"LESS",text:"小于"},{name:"BIGEQ",text:"大于等于"},{name:"LESSEQ",text:"小于等于"},{name:"TODAY",text:"今天"},{name:"TOMORROW",text:"明天"},{name:"YESTERDAY",text:"昨天"},{name:"THIS_WEEK",text:"本周"},{name:"NEXT_WEEK",text:"下周"},{name:"UP_WEEK",text:"上周"},{name:"THIS_MONTH",text:"本月"},{name:"NEXT_MONTH",text:"下月"},{name:"UP_MONTH",text:"上月"},{name:"THIS_SEASON",text:"本季度"},{name:"NEXT_SEASON",text:"下季度"},{name:"UP_SEASON",text:"上季度"},{name:"THIS_YEAR",text:"本年"},{name:"NEXT_YEAR",text:"下年"},{name:"UP_YEAR",text:"上年"},{name:"L_",text:"以前"},{name:"N_",text:"以后"},{name:"IN_THE_PAST",text:"过去内"},{name:"IN_THE_FUTURE",text:"未来内"},{name:"IN_THE_PAST_DI",text:"过去第"},{name:"IN_THE_FUTURE_DI",text:"未来第"}],t=[{name:"NULL",text:"为空"},{name:"NOT_NULL",text:"不为空"},{name:"CL",text:"包含"},{name:"NC",text:"不包含"},{name:"IN_ARR",text:"被包含"},{name:"EQ",text:"等于"},{name:"NEQ",text:"不等于"}],a=[{conList:e,name:"DATE",format:"yyyy-MM-dd",type:"DATE"},{conList:e,name:"DATETIME",format:"yyyy-MM-dd HH:mm:ss",type:"DATE"},{conList:[{name:"EQ",text:"等于"},{name:"NEQ",text:"不等于"}],name:"BOOLEAN",type:"BOOLEAN"},{conList:e,name:"TIME",format:"HH:mm:ss",type:"DATE"},{conList:t,name:"TEXT",type:"text"},{conList:[{name:"NULL",text:"为空"},{name:"NOT_NULL",text:"不为空"},{name:"EQ",text:"等于"},{name:"NEQ",text:"不等于"},{name:"BIG",text:"大于"},{name:"LESS",text:"小于"},{name:"BIGEQ",text:"大于等于"},{name:"LESSEQ",text:"小于等于"}],name:"NUMBER",type:"number"},{conList:t,name:"JSONB",type:"jsonb"}],n=[{text:"引用选项",name:"CONVERT"}],m=[{text:"引用选项",name:"QUOTE"},{text:"不引用选项",name:"QUOTE_NOT"}],E=[{title:"自定义输入",columnName:"custom"}],x=[{label:"天",value:"DAY"},{label:"周",value:"WEEK"},{label:"月",value:"MONTH"},{label:"季度",value:"QUARTER"},{label:"年",value:"YEAR"},{label:"小时",value:"HOUR"}],T=[{label:"是",value:"true"},{label:"否",value:"false"}],N=Object.freeze({"#FFC400":"黄色","#00B145":"绿色","#427BFF":"蓝色","#C163FF":"紫色","#DB0000":"红色"}),l=Symbol("InjectionFieldList"),_=Symbol("InjectionQueryWordbookData");export{T as BOOLEAN_OPTIONS,N as COLOR_MAP,E as CUSTOM_INPUT_OPTIONS,a as FIELD_TYPE_LIST,l as InjectionFieldList,_ as InjectionQueryWordbookData,n as SHOWSETTING_OPTIONS,x as UNIT_OPTIONS,m as WORDBOOK_OPTIONS};
@@ -21,7 +21,7 @@ export declare type FieldSetItem = Partial<{
21
21
  export declare type FieldSetColumnName = 'show' | 'editable' | 'required' | 'sort' | 'bold' | 'sortDirection' | 'sortPriority' | 'fixedWay' | 'alias' | 'columnWidth';
22
22
  export declare type FieldSetColumnItem = {
23
23
  title: string;
24
- type: 'text' | 'checkbox' | 'select' | 'input' | 'inputNumber' | 'custom';
24
+ type: 'text' | 'checkbox' | 'select' | 'input' | 'inputNumber' | 'color' | 'custom';
25
25
  field: string;
26
26
  checkedAll?: boolean;
27
27
  disabledAll?: boolean;
@@ -30,3 +30,33 @@ export declare type FieldSetColumnItem = {
30
30
  contentRender?: (column: AnyObject, row: AnyObject) => VNode | String;
31
31
  [key: string]: any;
32
32
  };
33
+ export declare type FieldSetTab = 'field' | 'fieldColor' | 'highlightRow';
34
+ export declare type ColorSetItem = {
35
+ name: string;
36
+ columnName?: string;
37
+ title?: string;
38
+ createDate: string;
39
+ color: string;
40
+ colorScope: 'font' | 'background';
41
+ status: 'Y' | 'N';
42
+ id?: string;
43
+ condition: AnyObject[];
44
+ sqlExpression?: string;
45
+ [key: string]: any;
46
+ };
47
+ export declare type ColorSetConditionItem = {
48
+ field_key: string;
49
+ con: string;
50
+ value?: any;
51
+ start_val?: string;
52
+ end_val?: string;
53
+ is_compare_field?: boolean;
54
+ compare_field?: string;
55
+ };
56
+ export declare type ColorSetWordbook = {
57
+ autograph: string;
58
+ wordbookType: string;
59
+ id: string;
60
+ filterKeys: string[];
61
+ [key: string]: any;
62
+ };
@@ -2,8 +2,9 @@ import { CSSProperties } from 'vue';
2
2
  import { AnyObject } from '../../../../shared/types';
3
3
  import { FieldSetItem } from '../../../../components/field-set';
4
4
  import { IhoTableConfig } from '../../../../components/iho-table';
5
- export declare function setStyle(column: AnyObject): CSSProperties;
5
+ export declare function setStyle(column: AnyObject, index: number): CSSProperties;
6
6
  export declare function isDisable(item: FieldSetItem, key: string): any;
7
7
  export declare function getGroupTree(rowGroupSetting: NonNullable<IhoTableConfig['rowGroupSetting']>, fieldList: FieldSetItem[], getKey?: (field: FieldSetItem) => string): Array<AnyObject | string>;
8
8
  export declare function isDraggable(fieldItem: AnyObject): any;
9
9
  export declare function isDraggableItem(item: AnyObject | AnyObject[]): any;
10
+ export declare function setColorInfo(item: AnyObject): void;
@@ -1 +1 @@
1
- import{isArray as e,isObject as t}from"lodash-es";import{IhoTableRowGroupSequence as i}from"../../../iho-table/src/constants/index.js";function n(e){const t={flex:"1 1 90px"};switch(e.type){case"text":"title"===e.field&&Object.assign(t,{flex:"0 0 120px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}),"seq"===e.field&&(t.flex="1 1 40px");break;case"checkbox":t.flex="1 1 60px";break;case"select":t.flex="1 1 80px";break;case"input":t.flex="1 1 100px"}return t}function r(e,t){return["editable","required"].includes(t)&&e[`${t}Disable`]||["sort"].includes(t)&&(1==e.notParticipatingSort||e.sortDisabled)}function l(n,r,l=(e=>e.name)){const s=r.map((e=>l(e)));return i.some((i=>{const r=n[i];if(!e(r))return!0;r.forEach((i=>{if(!e(i.list)||!i.list.length)return;const n=[];let r=null;i.list.forEach(((e,l)=>{const o=function(e,i,n){return i.findIndex((i=>i!==n&&(t(i)?i.fieldName:i)===e))}(e,s,r);~o&&(n.push(s[o]),0===l?s.splice(o,1,r={fieldName:i.title,children:n}):s.splice(o,1))}))}))})),s}function s(e){return void 0===e.draggable||e.draggable}function o(t){return e(t)?!t.some((e=>!e.draggable)):t.draggable}export{l as getGroupTree,r as isDisable,s as isDraggable,o as isDraggableItem,n as setStyle};
1
+ import{isArray as e,isObject as t}from"lodash-es";import{IhoTableRowGroupSequence as o}from"../../../iho-table/src/constants/index.js";import{COLOR_MAP as n}from"../constants/index.js";function r(e,t){const o={flex:"1 1 90px"};switch(e.type){case"text":0===t&&["title","name"].includes(e.field)&&Object.assign(o,{flex:"0 0 120px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}),"seq"===e.field&&(o.flex="1 1 40px");break;case"checkbox":o.flex="1 1 60px";break;case"select":o.flex="1 1 80px";break;case"input":o.flex="1 1 100px"}return o}function l(e,t){return["editable","required"].includes(t)&&e[`${t}Disable`]||["sort"].includes(t)&&(1==e.notParticipatingSort||e.sortDisabled)}function i(n,r,l=(e=>e.name)){const i=r.map((e=>l(e)));return o.some((o=>{const r=n[o];if(!e(r))return!0;r.forEach((o=>{if(!e(o.list)||!o.list.length)return;const n=[];let r=null;o.list.forEach(((e,l)=>{const s=function(e,o,n){return o.findIndex((o=>o!==n&&(t(o)?o.fieldName:o)===e))}(e,i,r);~s&&(n.push(i[s]),0===l?i.splice(s,1,r={fieldName:o.title,children:n}):i.splice(s,1))}))}))})),i}function s(e){return void 0===e.draggable||e.draggable}function c(t){return e(t)?!t.some((e=>!e.draggable)):t.draggable}function a(e){e.style="font"===e.colorScope?{color:e.color}:{background:e.color,color:"#fff"},e.result=n[e.color]}export{i as getGroupTree,l as isDisable,s as isDraggable,c as isDraggableItem,a as setColorInfo,r as setStyle};
@@ -1 +1 @@
1
- .c-field-set{display:flex;flex-flow:column nowrap;height:100%;width:100%}.c-field-set__search-wrapper.n-input{margin-bottom:12px;width:50%}.c-field-set .item{background:#fff}.c-field-set .item:active{background:#f2f2f2;box-shadow:0 0 10px 0 #d5d5d5}.c-field-set .item:focus{background-color:#f2f2f2}.c-field-set .item.disabled{cursor:not-allowed}.c-field-set .item .row{align-items:center;border-bottom:1px solid #e8e8e8;display:flex;height:var(--row-height);padding:5px 0}.c-field-set .table-cell{box-sizing:border-box;color:inherit;display:inline-block;padding:0 5px}.c-field-set .table-cell .highlight{background-color:var(--primary-color);color:#fff}.c-field-set__table-header{align-items:center;background:#f2f2f4;border:1px solid #f2f2f2;display:flex;height:52px}.c-field-set__table-header .n-checkbox.n-checkbox--disabled .n-checkbox__label{color:var(--n-text-color)}.c-field-set__table-body{flex:1;overflow-y:scroll}.c-field-set__table-footer{border-top:1px solid #d5d5d5;padding:12px 0}
1
+ .c-field-set{height:100%;width:100%}.c-field-set__color-picker .n-color-picker-trigger__value{display:none}.c-field-set .main-wrapper{display:flex;flex-flow:column nowrap;height:100%;width:100%}.c-field-set .main-wrapper__search-wrapper.n-input{margin-bottom:12px;width:50%}.c-field-set .main-wrapper .item{background:#fff}.c-field-set .main-wrapper .item:active{background:#f2f2f2;box-shadow:0 0 10px 0 #d5d5d5}.c-field-set .main-wrapper .item:focus{background-color:#f2f2f2}.c-field-set .main-wrapper .item.disabled{cursor:not-allowed}.c-field-set .main-wrapper .item .row{align-items:center;border-bottom:1px solid #e8e8e8;display:flex;height:var(--row-height);padding:5px 0}.c-field-set .main-wrapper .table-cell{box-sizing:border-box;color:inherit;display:inline-block;padding:0 5px}.c-field-set .main-wrapper .table-cell .highlight{background-color:var(--primary-color);color:#fff}.c-field-set .main-wrapper .table-cell .c-field-set__color-picker{display:block}.c-field-set .main-wrapper__table-header{align-items:center;background:#f2f2f4;border:1px solid #f2f2f2;display:flex;height:52px}.c-field-set .main-wrapper__table-header .n-checkbox.n-checkbox--disabled .n-checkbox__label{color:var(--n-text-color)}.c-field-set .main-wrapper__table-body{flex:1;overflow-y:auto}.c-field-set .main-wrapper__table-footer{border-top:1px solid #d5d5d5;padding:12px 0}.c-field-set__color-block{display:inline-block;margin-left:20px;position:relative}.c-field-set__color-block:before{background-color:var(--color);border-radius:2px;content:"";height:14px;left:-20px;position:absolute;top:3px;width:14px}.c-field-set__space{width:100%}.c-field-set__space>div:first-child{width:80%}.c-field-set__space .filter-btn{color:var(--c-primary-color);cursor:pointer}.c-field-set__condition .opt-btn{cursor:pointer;display:inline-flex}.c-field-set__condition .condition-wrapper__item{align-items:center;display:flex;margin-top:10px}.c-field-set__condition .condition-wrapper__item .item-index{margin-right:10px}.c-field-set__condition .condition-wrapper__item>.n-date-picker,.c-field-set__condition .condition-wrapper__item>.n-input,.c-field-set__condition .condition-wrapper__item>.n-input-number,.c-field-set__condition .condition-wrapper__item>.n-select{margin-right:10px;width:20%}.c-field-set__condition .sql-expression-wrapper{margin-top:10px}