cnhis-design-vue 3.1.57-release.1 → 3.1.57-release.2

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 (121) hide show
  1. package/es/components/button-print/index.d.ts +8 -8
  2. package/es/components/button-print/src/ButtonPrint.vue.d.ts +8 -8
  3. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  4. package/es/components/button-print/src/components/EditFormat.vue.d.ts +3 -3
  5. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +7 -7
  6. package/es/components/button-print/style/index.css +1 -1
  7. package/es/components/callback/src/components/render/popupMaps.d.ts +17 -8
  8. package/es/components/expand-field/index.d.ts +98 -26
  9. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +95 -23
  10. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +95 -23
  11. package/es/components/expand-field/src/components/form.vue.d.ts +98 -26
  12. package/es/components/expand-field/src/index.vue.d.ts +98 -26
  13. package/es/components/fabric-chart/index.d.ts +2 -2
  14. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  15. package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
  16. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  17. package/es/components/fabric-chart/src/interface.d.ts +2 -3
  18. package/es/components/field-set/index.d.ts +107 -616
  19. package/es/components/field-set/index.js +1 -1
  20. package/es/components/field-set/src/FieldColor.vue.d.ts +1680 -0
  21. package/es/components/field-set/src/FieldColor.vue.js +1 -0
  22. package/es/components/field-set/src/FieldColor.vue2.js +1 -0
  23. package/es/components/field-set/src/FieldSet.vue.d.ts +58 -16
  24. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  25. package/es/components/field-set/src/Index.vue.d.ts +141 -0
  26. package/es/components/field-set/src/Index.vue.js +1 -0
  27. package/es/components/field-set/src/Index.vue2.js +1 -0
  28. package/es/components/field-set/src/components/Row.vue.d.ts +50 -9
  29. package/es/components/field-set/src/components/Row.vue2.js +1 -1
  30. package/es/components/field-set/src/components/condition.vue.d.ts +172 -0
  31. package/es/components/field-set/src/components/condition.vue.js +1 -0
  32. package/es/components/field-set/src/components/condition.vue2.js +1 -0
  33. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1194 -0
  34. package/es/components/field-set/src/components/edit-dialog.vue.js +1 -0
  35. package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -0
  36. package/es/components/field-set/src/components/edit-filter.vue.d.ts +286 -0
  37. package/es/components/field-set/src/components/edit-filter.vue.js +1 -0
  38. package/es/components/field-set/src/components/edit-filter.vue2.js +1 -0
  39. package/es/components/field-set/src/constants/index.d.ts +55 -0
  40. package/es/components/field-set/src/constants/index.js +1 -0
  41. package/es/components/field-set/src/types/index.d.ts +31 -1
  42. package/es/components/field-set/src/utils/index.d.ts +2 -1
  43. package/es/components/field-set/src/utils/index.js +1 -1
  44. package/es/components/field-set/style/index.css +1 -1
  45. package/es/components/form-config/index.d.ts +72 -42
  46. package/es/components/form-config/src/FormConfig.vue.d.ts +72 -42
  47. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  48. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +17 -8
  49. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +5 -2
  50. package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -1
  51. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +20 -11
  52. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +8 -8
  53. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +5 -2
  54. package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +1 -1
  55. package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -1
  56. package/es/components/form-config/src/constants/index.d.ts +3 -2
  57. package/es/components/form-config/src/constants/index.js +1 -1
  58. package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +16 -12
  59. package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
  60. package/es/components/form-config/src/types/index.d.ts +14 -2
  61. package/es/components/form-render/index.d.ts +17 -8
  62. package/es/components/form-render/index.js +1 -1
  63. package/es/components/form-render/src/FormRender.vue.d.ts +17 -8
  64. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  65. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +17 -8
  66. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  67. package/es/components/form-render/src/hooks/index.d.ts +1 -0
  68. package/es/components/form-render/src/hooks/index.js +1 -1
  69. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
  70. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  71. package/es/components/form-render/src/hooks/useNewLowCodeReactions.d.ts +6 -0
  72. package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +1 -0
  73. package/es/components/form-render/src/types/index.d.ts +1 -1
  74. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
  75. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +1 -1
  76. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  77. package/es/components/index.css +1 -1
  78. package/es/components/index.js +1 -1
  79. package/es/components/info-header/index.d.ts +41 -23
  80. package/es/components/info-header/src/InfoHeader.vue.d.ts +41 -23
  81. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -1
  82. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -1
  83. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +18 -9
  84. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +17 -8
  85. package/es/components/keyboard/index.d.ts +1 -1
  86. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  87. package/es/components/quick-search/index.d.ts +3 -3
  88. package/es/components/quick-search/src/index.vue.d.ts +3 -3
  89. package/es/components/recommend-search/index.d.ts +6 -6
  90. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +6 -6
  91. package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
  92. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
  93. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  94. package/es/components/scale-view/index.d.ts +3 -3
  95. package/es/components/scale-view/src/ScaleView.vue.d.ts +3 -3
  96. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  97. package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
  98. package/es/components/select-label/index.d.ts +2 -2
  99. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
  100. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  101. package/es/components/select-label/src/index.vue.d.ts +1 -1
  102. package/es/components/select-person/index.d.ts +95 -23
  103. package/es/components/select-person/src/SelectPerson.vue.d.ts +84 -17
  104. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  105. package/es/components/select-person/src/types/enums.d.ts +9 -0
  106. package/es/components/select-person/src/types/enums.js +1 -1
  107. package/es/components/select-person/style/index.css +1 -1
  108. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
  109. package/es/components/shortcut-setter/index.d.ts +17 -8
  110. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +17 -8
  111. package/es/components/table-export-field/index.d.ts +3 -3
  112. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +3 -3
  113. package/es/components/table-export-field/src/index.vue.d.ts +3 -3
  114. package/es/components/time-line/index.d.ts +7 -7
  115. package/es/components/time-line/src/TimeLine.vue.d.ts +3 -3
  116. package/es/shared/package.json.js +1 -1
  117. package/es/shared/types/business.d.ts +23 -3
  118. package/es/shared/utils/business.d.ts +2 -1
  119. package/es/shared/utils/business.js +1 -1
  120. package/es/shared/utils/index.js +1 -1
  121. package/package.json +68 -68
@@ -0,0 +1,172 @@
1
+ import { AnyObject } from '../../../../shared/types';
2
+ import { PropType } from 'vue';
3
+ import { ColorSetConditionItem } from '../../../../components/field-set';
4
+ declare type ColorSetConditionItem2 = ColorSetConditionItem & {
5
+ numberValue: number | null;
6
+ dateValue: string | [string, string] | null;
7
+ fieldType: string;
8
+ conOptions: AnyObject[];
9
+ compare_field: any;
10
+ compareFieldOptions: AnyObject[];
11
+ unit: string | null;
12
+ multiple: boolean;
13
+ };
14
+ declare const _default: import("vue").DefineComponent<{
15
+ data: {
16
+ type: PropType<AnyObject>;
17
+ default: null;
18
+ };
19
+ }, {
20
+ customValue: string;
21
+ cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
22
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
23
+ data: {
24
+ type: PropType<AnyObject>;
25
+ default: null;
26
+ };
27
+ }>> & {}>>;
28
+ fieldList: AnyObject[];
29
+ queryWordbookData: ((params: import("../../../../components/field-set").ColorSetWordbook) => Promise<{
30
+ [key: string]: any;
31
+ label: string;
32
+ value: string;
33
+ }[]>) | undefined;
34
+ condition: import("vue").Ref<{
35
+ field_key: string;
36
+ con: string;
37
+ value?: any;
38
+ start_val?: string | undefined;
39
+ end_val?: string | undefined;
40
+ is_compare_field?: boolean | undefined;
41
+ compare_field: any;
42
+ numberValue: number | null;
43
+ dateValue: string | [string, string] | null;
44
+ fieldType: string;
45
+ conOptions: AnyObject[];
46
+ compareFieldOptions: AnyObject[];
47
+ unit: string | null;
48
+ multiple: boolean;
49
+ }[]>;
50
+ sqlExpression: import("vue").Ref<string>;
51
+ setConOptions: (item: ColorSetConditionItem2, isInit?: boolean) => void;
52
+ setCompareFieldOptions: (item: ColorSetConditionItem2, isInit?: boolean) => Promise<void>;
53
+ resetItem: (item: ColorSetConditionItem2) => void;
54
+ showBooleanValue: (item: ColorSetConditionItem2) => boolean | "";
55
+ showInput: (item: ColorSetConditionItem2) => boolean;
56
+ showInputNumber: (item: ColorSetConditionItem2) => boolean;
57
+ showUnit: (item: ColorSetConditionItem2) => boolean;
58
+ showDatePicker: (item: ColorSetConditionItem2) => boolean;
59
+ getDateType: (item: ColorSetConditionItem2) => "datetime" | "datetimerange";
60
+ onAdd: () => void;
61
+ onRemove: (index: number) => void;
62
+ init: () => void;
63
+ formatCondition: () => {
64
+ field_key: string;
65
+ fieldType: string;
66
+ con: string;
67
+ value: any;
68
+ compare_field: any;
69
+ is_compare_field: boolean;
70
+ start_val: any;
71
+ end_val: any;
72
+ wordbookValueList: any;
73
+ unit: any;
74
+ }[];
75
+ NInput: any;
76
+ NInputNumber: any;
77
+ NSelect: any;
78
+ NIcon: any;
79
+ 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<{}>>, {}>;
80
+ 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<{}>>, {}>;
81
+ UNIT_OPTIONS: {
82
+ label: string;
83
+ value: string;
84
+ }[];
85
+ BOOLEAN_OPTIONS: {
86
+ label: string;
87
+ value: string;
88
+ }[];
89
+ CDatePicker: import("../../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
90
+ updateUnchangedValue: {
91
+ type: BooleanConstructor;
92
+ };
93
+ onConfirm: {
94
+ type: FunctionConstructor;
95
+ };
96
+ formattedValue: {
97
+ type: PropType<(string | [string, string]) | null | undefined>;
98
+ };
99
+ placeholder: {
100
+ type: StringConstructor;
101
+ };
102
+ allowedInvalidValue: {
103
+ type: StringConstructor;
104
+ };
105
+ }, {
106
+ attrs: {
107
+ [x: string]: unknown;
108
+ };
109
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
110
+ updateUnchangedValue: {
111
+ type: BooleanConstructor;
112
+ };
113
+ onConfirm: {
114
+ type: FunctionConstructor;
115
+ };
116
+ formattedValue: {
117
+ type: PropType<(string | [string, string]) | null | undefined>;
118
+ };
119
+ placeholder: {
120
+ type: StringConstructor;
121
+ };
122
+ allowedInvalidValue: {
123
+ type: StringConstructor;
124
+ };
125
+ }>> & {
126
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
127
+ }>>;
128
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
129
+ datePickerRef: import("vue").Ref<AnyObject | null>;
130
+ panelInstRef: import("vue").Ref<null>;
131
+ placeholderRef: import("vue").Ref<any>;
132
+ currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
133
+ isDateTime: import("vue").ComputedRef<boolean>;
134
+ formatRef: import("vue").ComputedRef<string>;
135
+ panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
136
+ focus: () => any;
137
+ blur: () => any;
138
+ handleConfirm: (target: HTMLInputElement) => void;
139
+ onUpdateShow: (show: boolean) => void;
140
+ onConfirm: (...args: any[]) => Promise<void>;
141
+ isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
142
+ NDatePicker: any;
143
+ }, 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<{
144
+ updateUnchangedValue: {
145
+ type: BooleanConstructor;
146
+ };
147
+ onConfirm: {
148
+ type: FunctionConstructor;
149
+ };
150
+ formattedValue: {
151
+ type: PropType<(string | [string, string]) | null | undefined>;
152
+ };
153
+ placeholder: {
154
+ type: StringConstructor;
155
+ };
156
+ allowedInvalidValue: {
157
+ type: StringConstructor;
158
+ };
159
+ }>> & {
160
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
161
+ }, {
162
+ updateUnchangedValue: boolean;
163
+ }>>;
164
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
165
+ data: {
166
+ type: PropType<AnyObject>;
167
+ default: null;
168
+ };
169
+ }>>, {
170
+ data: AnyObject;
171
+ }>;
172
+ export default _default;
@@ -0,0 +1 @@
1
+ import o from"./condition.vue2.js";import e from"../../../../_virtual/_plugin-vue_export-helper.js";var i=e(o,[["__file","condition.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as l,ref as n,unref as o,openBlock as t,createElementBlock as i,normalizeStyle as a,createElementVNode as u,createVNode as s,Fragment as c,renderList as d,toDisplayString as p,createCommentVNode as r,withDirectives as m,vShow as f}from"vue";import{NIcon as v,NSelect as _,NInput as T,NInputNumber as E}from"naive-ui";import{AddCircleSharp as N,RemoveCircle as O}from"@vicons/ionicons5";import{CUSTOM_INPUT_OPTIONS as U,InjectionFieldList as y,InjectionQueryWordbookData as h,BOOLEAN_OPTIONS as I,UNIT_OPTIONS as k,FIELD_TYPE_LIST as b,SHOWSETTING_OPTIONS as Q,WORDBOOK_OPTIONS as g}from"../constants/index.js";import S from"../../../date-picker/index.js";import{useTheme as V}from"../../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{cloneDeep as L,isArray as x,isFunction as A}from"lodash-es";import"@vue/shared";import"../../../../shared/utils/index.js";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";const D=u("span",{style:{"margin-left":"5px"}},"添加操作",-1),F={class:"condition-wrapper"},j={class:"item-index"},w={class:"sql-expression-wrapper"},R=u("span",null,"筛选器逻辑编辑,不设置默认为AND",-1),H=u("br",null,null,-1),C=u("span",null,"例子 (1 AND 2) OR 3",-1);var B=e({__name:"condition",props:{data:{type:Object,default:null}},setup(e,{expose:B}){const M=e,G=U[0].columnName,J=V(),P=L(l(y)),q=l(h),z=n([]),W=n("");function X(e,l=!1){var n,o;l||(e.compareFieldOptions=[],e.con="",Y(e));const{field_key:t}=e,i=P.find((e=>e.columnName===t));if(!i)return void(e.conOptions=[]);const{fieldType:a,settingObj:u={}}=i;e.fieldType=a;const s=L((null==(n=b.find((e=>e.name===a)))?void 0:n.conList)||[]),{showSetting:c,wordbook:d}=u;(null==c?void 0:c.length)&&s.unshift(...Q),(null==(o=Object.keys(d||{}))?void 0:o.length)&&s.unshift(...g),e.conOptions=s}async function K(e,l=!1){e.compareFieldOptions=[],l||Y(e);const{field_key:n,fieldType:o,con:t}=e,i=P.find((e=>e.columnName===n));if(!i)return void(e.conOptions=[]);const{settingObj:a={}}=i||{},{showSetting:u,wordbook:s}=a,c=[];if(["IN","NEQ","BIG","LESS","BIGEQ","LESSEQ","EQ"].includes(t)){c.push(...U),l||(e.compare_field=G);const t=P.filter((e=>e.fieldType===o&&e.columnName!==n));c.push(...t)}if(g.map((e=>e.name)).includes(t)&&A(q)){const l=await q(s);c.push(...(d=l,p="label",r="value",d.map((e=>({...e,title:e[p],columnName:e[r]}))))),e.multiple=!0}var d,p,r;if(Q.map((e=>e.name)).includes(t)&&(null==u?void 0:u.length)){const l=u.map((e=>({...e,title:e.change_text,columnName:JSON.stringify(e.filter||[])})));c.push(...l),e.multiple=!0}e.compareFieldOptions=c}function Y(e){e.multiple=!1,e.compare_field=null,e.value="",e.numberValue=null,e.dateValue=null,e.unit=null}function Z(e){const{con:l,fieldType:n}=e;return"BOOLEAN"===n&&l&&["EQ","NEQ"].includes(l)}function $(e){const{compare_field:l,con:n,fieldType:o}=e;return!(!n||["CONVERT","QUOTE","QUOTE_NOT"].includes(n))&&(!(!["TEXT","JSONB"].includes(o)||["NULL","NOT_NULL"].includes(n))&&(!["EQ","NEQ"].includes(n)||l===G))}function ee(e){if($(e))return!1;const{compare_field:l,con:n,field_key:o,fieldType:t}=e;return!(!n||["CONVERT","QUOTE","QUOTE_NOT"].includes(n))&&("NUMBER"===t?!["NULL","NOT_NULL"].includes(n)&&l===G:!!["DATE","DATETIME","TIME"].includes(t)&&["L_","N_","IN_THE_PAST","IN_THE_FUTURE","IN_THE_PAST_DI","IN_THE_FUTURE_DI"].includes(n))}function le(e){const{compare_field:l,con:n,field_key:o,fieldType:t}=e;return!!n&&(!!["DATE","DATETIME","TIME"].includes(t)&&["L_","N_","IN_THE_PAST","IN_THE_FUTURE","IN_THE_PAST_DI","IN_THE_FUTURE_DI"].includes(n))}function ne(e){const{compare_field:l,con:n,field_key:o,fieldType:t}=e;return!!n&&(!!["DATE","DATETIME","TIME"].includes(t)&&(["IN","NEQ","BIG","LESS","BIGEQ","LESSEQ"].includes(n)&&l===G))}function oe(e){return["IN","NEQ"].includes(e.con)?"datetimerange":"datetime"}function te(){const e={field_key:P[0].columnName,fieldType:"",con:"",conOptions:[],compare_field:"",compareFieldOptions:[],unit:"",numberValue:null,dateValue:null,multiple:!1};X(e),e.con="",z.value.push(e)}return function(){const{condition:e=[],sqlExpression:l=""}=M.data||{};e.length&&(z.value=e);l&&(W.value=l);z.value.forEach((e=>{X(e,!0),K(e,!0);const{con:l,value:n,start_val:o,end_val:t}=e;"CONVERT"===l&&(e.compare_field=x(n)?n.map((e=>JSON.stringify(e))):n),"QUOTE"!==l&&"QUOTE_NOT"!==l||(e.compare_field=n.split("|#|")),ee(e)&&(e.numberValue=+n),ne(e)&&(oe(e).endsWith("range")?e.dateValue=o&&t?[o,t]:null:e.dateValue=n)}))}(),B({getData:()=>({condition:z.value.map((e=>{const{field_key:l,con:n,value:o,compare_field:t,numberValue:i,dateValue:a,unit:u,fieldType:s,compareFieldOptions:c}=e;let d,p,r,m,f=o,v=t;return"CONVERT"===n&&(f=x(t)?t.map((e=>JSON.parse(e))):t,v=""),"QUOTE"!==n&&"QUOTE_NOT"!==n||(f=x(t)?t.join("|#|"):t,d=c.filter((e=>t.includes(e.columnName))),v=""),ee(e)&&(f=i,v=G),ne(e)&&(oe(e).endsWith("range")?(f="",r=x(a)?a[0]:"",m=x(a)?a[1]:""):f=a),le(e)&&(p=u),$(e)&&e.compareFieldOptions.length>0&&(v=G),{field_key:l,fieldType:s,con:n,value:f,compare_field:v,is_compare_field:!!v,start_val:r,end_val:m,wordbookValueList:d,unit:p}})),sqlExpression:o(W)})}),(e,l)=>(t(),i("div",{class:"c-field-set__condition",style:a(o(J))},[u("span",{class:"opt-btn",onClick:te},[s(o(v),{component:o(N),size:"20",color:"var(--c-primary-color)"},null,8,["component"]),D]),u("section",F,[(t(!0),i(c,null,d(z.value,((e,l)=>(t(),i("div",{class:"condition-wrapper__item",key:l},[u("span",j,p(l+1),1),r(" 选择 field_key "),s(o(_),{value:e.field_key,"onUpdate:value":[l=>e.field_key=l,l=>X(e)],placeholder:"请选择字段名","label-field":"title","value-field":"columnName",clearable:"",options:o(P)},null,8,["value","onUpdate:value","options"]),r(" 选择 关系 "),s(o(_),{value:e.con,"onUpdate:value":[l=>e.con=l,l=>K(e)],"label-field":"text","value-field":"name",options:e.conOptions},null,8,["value","onUpdate:value","options"]),r(" 下拉框展示本列表相同数据类型 "),m(s(o(_),{value:e.compare_field,"onUpdate:value":l=>e.compare_field=l,"label-field":"title","value-field":"columnName",clearable:"",multiple:e.multiple,options:e.compareFieldOptions},null,8,["value","onUpdate:value","multiple","options"]),[[f,e.compareFieldOptions.length>0]]),r(" 布尔值类型字段选择是否相等的值 "),m(s(o(_),{value:e.value,"onUpdate:value":l=>e.value=l,options:o(I)},null,8,["value","onUpdate:value","options"]),[[f,Z(e)]]),r(" 自定义内容 "),m(s(o(T),{value:e.value,"onUpdate:value":l=>e.value=l},null,8,["value","onUpdate:value"]),[[f,$(e)]]),r(" 自定义内容/数字框/日期 "),m(s(o(E),{value:e.numberValue,"onUpdate:value":l=>e.numberValue=l},null,8,["value","onUpdate:value"]),[[f,ee(e)]]),r(" 自定义日期的单位 "),m(s(o(_),{style:{width:"80px"},value:e.unit,"onUpdate:value":l=>e.unit=l,options:o(k)},null,8,["value","onUpdate:value","options"]),[[f,le(e)]]),m(s(o(S),{type:oe(e),"formatted-value":e.dateValue,"onUpdate:formatted-value":l=>e.dateValue=l},null,8,["type","formatted-value","onUpdate:formatted-value"]),[[f,ne(e)]]),s(o(v),{component:o(O),size:"20",color:"red",onClick:()=>function(e){z.value.splice(e,1)}(l)},null,8,["component","onClick"])])))),128))]),m(u("section",w,[R,H,C,s(o(T),{type:"textarea",value:W.value,"onUpdate:value":l[0]||(l[0]=e=>W.value=e)},null,8,["value"])],512),[[f,z.value.length>1]])],4))}});export{B as default};