cnhis-design-vue 3.2.7-beta.1 → 3.2.7-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/README.md +87 -87
  2. package/es/components/classification/index.d.ts +39 -0
  3. package/es/components/classification/src/components/search-filter/index.vue.d.ts +39 -0
  4. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  5. package/es/components/classification/src/components/set-classification/index.vue.d.ts +39 -0
  6. package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
  7. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
  8. package/es/components/classification/src/index.vue.d.ts +39 -0
  9. package/es/components/date-picker/index.d.ts +13 -0
  10. package/es/components/date-picker/src/DatePicker.vue.d.ts +13 -0
  11. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  12. package/es/components/fabric-chart/src/constants/index.d.ts +3 -1
  13. package/es/components/fabric-chart/src/constants/index.js +1 -1
  14. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  15. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +8 -3
  16. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  17. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +9 -6
  18. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  19. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
  20. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.d.ts +0 -2
  21. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +8 -3
  23. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  24. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  25. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  26. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +8 -3
  27. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  28. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
  29. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
  30. package/es/components/fabric-chart/src/interface.d.ts +11 -1
  31. package/es/components/field-set/src/FieldColor.vue.d.ts +26 -0
  32. package/es/components/field-set/src/components/condition.vue.d.ts +13 -0
  33. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +26 -0
  34. package/es/components/field-set/src/components/edit-filter.vue.d.ts +13 -0
  35. package/es/components/form-config/index.d.ts +3 -3
  36. package/es/components/form-config/src/FormConfig.vue.d.ts +3 -3
  37. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
  38. package/es/components/form-render/src/components/renderer/combination/tableCombination.js +1 -1
  39. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  40. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  41. package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
  42. package/es/components/form-render/src/utils/schema.d.ts +1 -1
  43. package/es/components/form-render/src/utils/schema.js +1 -1
  44. package/es/components/iho-chat/index.d.ts +160 -45
  45. package/es/components/iho-chat/src/Index.vue.d.ts +160 -45
  46. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  47. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +25 -10
  48. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  49. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +29 -10
  50. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  51. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +39 -11
  52. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
  53. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +21 -5
  54. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  55. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +13 -0
  56. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
  57. package/es/components/iho-chat/src/components/ContextMenu.d.ts +15 -2
  58. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  59. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +25 -10
  60. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
  61. package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
  62. package/es/components/iho-chat/src/hooks/useScrollLoading.d.ts +1 -1
  63. package/es/components/iho-chat/src/hooks/useScrollLoading.js +1 -1
  64. package/es/components/iho-chat/src/hooks/useState.js +1 -1
  65. package/es/components/iho-chat/style/index.css +1 -1
  66. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +13 -0
  67. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +13 -0
  68. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +20 -2
  69. package/es/components/index.css +1 -1
  70. package/es/components/quick-search/src/index.vue2.js +1 -1
  71. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  72. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  73. package/es/components/shortcut-setter/index.d.ts +1 -1
  74. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
  75. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
  76. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -1
  77. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +13 -0
  78. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +13 -0
  79. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +13 -0
  80. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +13 -0
  81. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +26 -0
  82. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +13 -0
  83. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +13 -0
  84. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  85. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +26 -0
  86. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +26 -0
  87. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +13 -0
  88. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +13 -0
  89. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +13 -0
  90. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -0
  91. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  92. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  93. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  94. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +52 -0
  95. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +52 -0
  96. package/es/components/time-picker/index.d.ts +20 -2
  97. package/es/components/time-picker/src/TimePicker.vue.d.ts +21 -2
  98. package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
  99. package/es/env.d.ts +25 -25
  100. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  101. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  102. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  103. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  104. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  105. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  106. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  107. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  108. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  109. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  110. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  111. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  112. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  113. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  114. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  115. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  116. package/es/shared/assets/img/failure.png.js +1 -1
  117. package/es/shared/assets/img/no-permission.png.js +1 -1
  118. package/es/shared/assets/img/nodata.png.js +1 -1
  119. package/es/shared/assets/img/notfound.png.js +1 -1
  120. package/es/shared/assets/img/qr.png.js +1 -1
  121. package/es/shared/assets/img/success.png.js +1 -1
  122. package/es/shared/assets/img/table_style_2.png.js +1 -1
  123. package/es/shared/assets/img/video.png.js +1 -1
  124. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  125. package/es/shared/assets/img/xb_big.png.js +1 -1
  126. package/es/shared/assets/img/xb_small.png.js +1 -1
  127. package/es/shared/package.json.js +1 -1
  128. package/es/shared/utils/business.js +1 -1
  129. package/package.json +2 -2
  130. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  131. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  132. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  133. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  134. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  135. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  136. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -235,6 +235,10 @@ declare const _default: import("vue").DefineComponent<{
235
235
  allowedInvalidValue: {
236
236
  type: StringConstructor;
237
237
  };
238
+ to: {
239
+ type: PropType<string | false | HTMLElement>;
240
+ default: string;
241
+ };
238
242
  }, {
239
243
  attrs: {
240
244
  [x: string]: unknown;
@@ -255,6 +259,10 @@ declare const _default: import("vue").DefineComponent<{
255
259
  allowedInvalidValue: {
256
260
  type: StringConstructor;
257
261
  };
262
+ to: {
263
+ type: PropType<string | false | HTMLElement>;
264
+ default: string;
265
+ };
258
266
  }>> & {
259
267
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
260
268
  }>>;
@@ -291,10 +299,15 @@ declare const _default: import("vue").DefineComponent<{
291
299
  allowedInvalidValue: {
292
300
  type: StringConstructor;
293
301
  };
302
+ to: {
303
+ type: PropType<string | false | HTMLElement>;
304
+ default: string;
305
+ };
294
306
  }>> & {
295
307
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
296
308
  }, {
297
309
  updateUnchangedValue: boolean;
310
+ to: string | false | HTMLElement;
298
311
  }>>;
299
312
  NSelect: any;
300
313
  WidgetValEnums: {
@@ -868,6 +881,10 @@ declare const _default: import("vue").DefineComponent<{
868
881
  allowedInvalidValue: {
869
882
  type: StringConstructor;
870
883
  };
884
+ to: {
885
+ type: PropType<string | false | HTMLElement>;
886
+ default: string;
887
+ };
871
888
  }, {
872
889
  attrs: {
873
890
  [x: string]: unknown;
@@ -888,6 +905,10 @@ declare const _default: import("vue").DefineComponent<{
888
905
  allowedInvalidValue: {
889
906
  type: StringConstructor;
890
907
  };
908
+ to: {
909
+ type: PropType<string | false | HTMLElement>;
910
+ default: string;
911
+ };
891
912
  }>> & {
892
913
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
893
914
  }>>;
@@ -924,10 +945,15 @@ declare const _default: import("vue").DefineComponent<{
924
945
  allowedInvalidValue: {
925
946
  type: StringConstructor;
926
947
  };
948
+ to: {
949
+ type: PropType<string | false | HTMLElement>;
950
+ default: string;
951
+ };
927
952
  }>> & {
928
953
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
929
954
  }, {
930
955
  updateUnchangedValue: boolean;
956
+ to: string | false | HTMLElement;
931
957
  }>>;
932
958
  WidgetValEnums: {
933
959
  CUSTOM: string;
@@ -99,6 +99,10 @@ declare const _default: import("vue").DefineComponent<{
99
99
  allowedInvalidValue: {
100
100
  type: StringConstructor;
101
101
  };
102
+ to: {
103
+ type: PropType<string | false | HTMLElement>;
104
+ default: string;
105
+ };
102
106
  }, {
103
107
  attrs: {
104
108
  [x: string]: unknown;
@@ -119,6 +123,10 @@ declare const _default: import("vue").DefineComponent<{
119
123
  allowedInvalidValue: {
120
124
  type: StringConstructor;
121
125
  };
126
+ to: {
127
+ type: PropType<string | false | HTMLElement>;
128
+ default: string;
129
+ };
122
130
  }>> & {
123
131
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
124
132
  }>>;
@@ -155,10 +163,15 @@ declare const _default: import("vue").DefineComponent<{
155
163
  allowedInvalidValue: {
156
164
  type: StringConstructor;
157
165
  };
166
+ to: {
167
+ type: PropType<string | false | HTMLElement>;
168
+ default: string;
169
+ };
158
170
  }>> & {
159
171
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
160
172
  }, {
161
173
  updateUnchangedValue: boolean;
174
+ to: string | false | HTMLElement;
162
175
  }>>;
163
176
  DateQuickBtn: import("vue").DefineComponent<{
164
177
  componentCfg: {
@@ -82,6 +82,10 @@ declare const _default: import("vue").DefineComponent<{
82
82
  allowedInvalidValue: {
83
83
  type: StringConstructor;
84
84
  };
85
+ to: {
86
+ type: PropType<string | false | HTMLElement>;
87
+ default: string;
88
+ };
85
89
  }, {
86
90
  attrs: {
87
91
  [x: string]: unknown;
@@ -102,6 +106,10 @@ declare const _default: import("vue").DefineComponent<{
102
106
  allowedInvalidValue: {
103
107
  type: StringConstructor;
104
108
  };
109
+ to: {
110
+ type: PropType<string | false | HTMLElement>;
111
+ default: string;
112
+ };
105
113
  }>> & {
106
114
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
107
115
  }>>;
@@ -138,10 +146,15 @@ declare const _default: import("vue").DefineComponent<{
138
146
  allowedInvalidValue: {
139
147
  type: StringConstructor;
140
148
  };
149
+ to: {
150
+ type: PropType<string | false | HTMLElement>;
151
+ default: string;
152
+ };
141
153
  }>> & {
142
154
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
143
155
  }, {
144
156
  updateUnchangedValue: boolean;
157
+ to: string | false | HTMLElement;
145
158
  }>>;
146
159
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
147
160
  componentCfg: {
@@ -117,6 +117,10 @@ declare const _default: import("vue").DefineComponent<{
117
117
  allowedInvalidValue: {
118
118
  type: StringConstructor;
119
119
  };
120
+ to: {
121
+ type: PropType<string | false | HTMLElement>;
122
+ default: string;
123
+ };
120
124
  }, {
121
125
  attrs: {
122
126
  [x: string]: unknown;
@@ -137,6 +141,10 @@ declare const _default: import("vue").DefineComponent<{
137
141
  allowedInvalidValue: {
138
142
  type: StringConstructor;
139
143
  };
144
+ to: {
145
+ type: PropType<string | false | HTMLElement>;
146
+ default: string;
147
+ };
140
148
  }>> & {
141
149
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
142
150
  }>>;
@@ -173,10 +181,15 @@ declare const _default: import("vue").DefineComponent<{
173
181
  allowedInvalidValue: {
174
182
  type: StringConstructor;
175
183
  };
184
+ to: {
185
+ type: PropType<string | false | HTMLElement>;
186
+ default: string;
187
+ };
176
188
  }>> & {
177
189
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
178
190
  }, {
179
191
  updateUnchangedValue: boolean;
192
+ to: string | false | HTMLElement;
180
193
  }>>;
181
194
  DateQuickBtn: import("vue").DefineComponent<{
182
195
  componentCfg: {
@@ -84,6 +84,10 @@ declare const _default: import("vue").DefineComponent<{
84
84
  allowedInvalidValue: {
85
85
  type: StringConstructor;
86
86
  };
87
+ to: {
88
+ type: PropType<string | false | HTMLElement>;
89
+ default: string;
90
+ };
87
91
  }, {
88
92
  attrs: {
89
93
  [x: string]: unknown;
@@ -104,6 +108,10 @@ declare const _default: import("vue").DefineComponent<{
104
108
  allowedInvalidValue: {
105
109
  type: StringConstructor;
106
110
  };
111
+ to: {
112
+ type: PropType<string | false | HTMLElement>;
113
+ default: string;
114
+ };
107
115
  }>> & {
108
116
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
109
117
  }>>;
@@ -140,10 +148,15 @@ declare const _default: import("vue").DefineComponent<{
140
148
  allowedInvalidValue: {
141
149
  type: StringConstructor;
142
150
  };
151
+ to: {
152
+ type: PropType<string | false | HTMLElement>;
153
+ default: string;
154
+ };
143
155
  }>> & {
144
156
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
145
157
  }, {
146
158
  updateUnchangedValue: boolean;
159
+ to: string | false | HTMLElement;
147
160
  }>>;
148
161
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
149
162
  type: {
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as t,computed as r,openBlock as u,createBlock as o,unref as n,mergeProps as a}from"vue";import{NSelect as i}from"naive-ui";import{WholeSelectObj as l}from"../helpers/selectExtraMap.js";import{WidgetValEnums as p}from"../../../types/enums.js";var s=e({__name:"Select",props:{value:{type:[Array,String,Number]},componentCfg:{type:Object}},emits:["update:value"],setup(e,{emit:s}){const m=e,v=t(),f=r((()=>m.value)),c=r((()=>v.multiple)),d=r((()=>{const{widgetCfg:e}=m.componentCfg,{showWholeOption:t=!1}=e;return t})),g=r((()=>{const{widgetCfg:e}=m.componentCfg,{valueList:t=[]}=e;if(d.value){return[JSON.parse(JSON.stringify(l)),...t]}return t}));function y(e){if(d.value&&c.value&&Array.isArray(e)&&e.includes(p.WHOLE)){const t=e.slice(-1);if(t.includes(p.WHOLE))return void s("update:value",t);const r=e.filter((e=>e!==p.WHOLE));s("update:value",r)}else s("update:value",e)}return(e,t)=>(u(),o(n(i),a(n(v),{options:n(g),value:n(f),"onUpdate:value":y}),null,16,["options","value"]))}});export{s as default};
1
+ import{defineComponent as e,useAttrs as t,computed as r,openBlock as o,createBlock as u,unref as n,mergeProps as a}from"vue";import{NSelect as i}from"naive-ui";import{WholeSelectObj as l}from"../helpers/selectExtraMap.js";import{WidgetValEnums as p}from"../../../types/enums.js";var s=e({__name:"Select",props:{value:{type:[Array,String,Number]},componentCfg:{type:Object}},emits:["update:value"],setup(e,{emit:s}){const m=e,v=t(),f=r((()=>m.value)),c=r((()=>v.multiple)),d=r((()=>{const{widgetCfg:e}=m.componentCfg,{showWholeOption:t=!1}=e;return t})),g=r((()=>{const{widgetCfg:e}=m.componentCfg,{valueList:t=[]}=e;if(d.value){return[JSON.parse(JSON.stringify(l)),...t]}return t}));function y(e){if(d.value&&c.value&&Array.isArray(e)&&e.includes(p.WHOLE)){const t=e.slice(-1);if(t.includes(p.WHOLE))return void s("update:value",t);const r=e.filter((e=>e!==p.WHOLE));s("update:value",r)}else s("update:value",e)}return(e,t)=>(o(),u(n(i),a({to:"body"},n(v),{options:n(g),value:n(f),"onUpdate:value":y}),null,16,["options","value"]))}});export{s as default};
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as a,ref as l,inject as t,computed as u,nextTick as n,openBlock as o,createBlock as i,unref as s,mergeProps as r,isRef as v,withCtx as c,createVNode as f,h as p}from"vue";import{useMessage as d,NSelect as m,NTag as y}from"naive-ui";import{useDebounceFn as g}from"@vueuse/core";import h from"../../../hooks/useAsyncData.js";import{judgmentVariable as w}from"../helpers/setDefaultValue.js";import{WholeSelectObj as S}from"../helpers/selectExtraMap.js";import{WidgetValEnums as O}from"../../../types/enums.js";import{InjectionFilterApiConfig as b,InjectionFilterSearchConfig as j}from"../../../constants/index.js";import k from"./SelectDynamicOption/index.vue.js";import{isEqual as C,cloneDeep as N}from"lodash-es";var A=e({__name:"SelectDynamic",props:{value:{type:[Array,String,Number]},componentCfg:{type:Object}},emits:["update:value"],setup(e,{emit:A}){const L=e,P=d(),D="SQL",J="API",{getDynamicSelectData:x}=h(),I=a(),E=l(null),K=l(!1),T=t(b),$=t(j),U=l(1),W=l(),_=l([JSON.parse(JSON.stringify(S))]),M=l([]),F=l(),H=l(0),Q={class:"select-dynamic-popover"},R=u((()=>I.multiple)),V=u((()=>{const{widgetCfg:e}=L.componentCfg,{dynamicOptionInfo:a={}}=e;return a})),q=u((()=>{const{widgetCfg:e}=L.componentCfg,{showWholeOption:a=!1}=e;return a&&1===U.value})),z=u((()=>H.value>0&&U.value>=H.value)),B=u((()=>{var e;if(Array.isArray(L.value)&&L.value.length>0){const e=L.value;if(X(e),e.includes(S.value)){const e=_.value.find((e=>e.value===S.value)),a=e||S;return R.value?[a]:JSON.stringify(a)}if(!R.value&&1==e.length){const a=_.value.find((a=>a.value===e[0]));return a?JSON.stringify(a):{label:e[0].includes("&")?e[0].split("&")[0]:e[0],value:e[0]}}const a=_.value.filter((a=>e.includes(a.value))),l=a.map((e=>e.value)),t=e.filter((e=>!l.includes(e))).map((e=>({label:e.includes("&")?e.split("&")[0]:e,value:e})));return[...a,...t]}return X([]),null!=(e=L.value)?e:null})),G=u((()=>{if(Object.keys(V.value).length>0){const{defaultParams:e=[]}=V.value;return w(e)&&!L.value}return!1}));function X(e){_.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function Y(e){const{widgetCfg:a}=L.componentCfg,{linkageFieldKeys:l=[]}=a;C(L.value,e)||(l.forEach((e=>{const a=$.value.find((a=>a.columnName===e));a&&a.value&&(a.value=null)})),A("update:value",e))}async function Z(e){var a;U.value=e,null==(a=null==E?void 0:E.value)||a.focus(),await ee(F.value,U.value)}async function ee(e,a){try{if(K.value=!0,Object.keys(V.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:u,filterKeys:n,defaultParams:o=[],showKeys:i,valueKey:s,tableDataType:r}=V.value;let v={wordbookId:t,autograph:l,wordbookType:u,fieldKeys:n,page:a};switch(r){case D:v.keyword=e;break;case J:n.length>0&&(v[n[0]]=e)}if(w(o)){const e=o.map((e=>e.value)).filter((e=>e.includes("${")));e.map((e=>e.match(/\$\{(.+?)\}/)[1])).forEach((e=>{const a=$.value.find((a=>a.columnName===e));a&&a.value&&a.value!==O.WHOLE&&(v[e]=a.value)}))}let c=await x(v,T);if(c){const{fieldList:e=[],rows:a=[],total:l=0}=c.map,t=a.map((e=>({...e,label:e[i[0]],value:`${e[i[0]]}&${e[s]}`}))),u=N(t);q.value&&t.unshift(JSON.parse(JSON.stringify(S))),W.value=null!=e?e:[],_.value=null!=t?t:[],M.value=u,H.value=l}}}catch(e){P.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{K.value=!1}}const ae=g((async e=>{await async function(e){F.value=e.trim(),U.value=1,await ee(F.value,U.value)}(e)}),300);async function le(){Object.keys(V.value).length>0&&T&&await ee("",U.value)}async function te(){A("update:value",null),await le()}function ue(e){F.value="",e&&(U.value=1,le())}function ne({option:e,handleClose:a}){if(R.value){const l=e.value;return p(y,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(L.value)&&L.value.length>0){const e=L.value,a=e.indexOf(l.value);if(a>-1){const l=e.splice(0,a);A("update:value",l.length>0?l:null)}}}},{default:()=>p("div",l.label)})}const l=e.value?JSON.parse(e.value):{label:""};return p("div",l.label)}return n((()=>{G.value||le()})),(e,a)=>(o(),i(s(m),r({ref_key:"selectDynamicRef",ref:E},s(I),{value:s(B),"onUpdate:value":a[0]||(a[0]=e=>v(B)?B.value=e:null),remote:"",loading:K.value,"render-tag":ne,"menu-props":Q,onSearch:s(ae),onClear:te,"onUpdate:show":ue}),{empty:c((()=>[f(k,r(s(I),{loading:K.value,dynamicOptionInfo:s(V),fieldTitleList:W.value,optionList:_.value,isMultiple:s(R),curPage:U.value,isLastPage:s(z),isShowWhole:s(q),onUpdateSelect:Y,onUpdatePage:Z}),null,16,["loading","dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage","isShowWhole"])])),_:1},16,["value","loading","onSearch"]))}});export{A as default};
1
+ import{defineComponent as e,useAttrs as a,ref as l,inject as t,computed as u,nextTick as n,openBlock as o,createBlock as i,unref as s,mergeProps as r,isRef as v,withCtx as c,createVNode as f,h as p}from"vue";import{useMessage as d,NSelect as m,NTag as y}from"naive-ui";import{useDebounceFn as g}from"@vueuse/core";import h from"../../../hooks/useAsyncData.js";import{judgmentVariable as w}from"../helpers/setDefaultValue.js";import{WholeSelectObj as S}from"../helpers/selectExtraMap.js";import{WidgetValEnums as O}from"../../../types/enums.js";import{InjectionFilterApiConfig as b,InjectionFilterSearchConfig as j}from"../../../constants/index.js";import k from"./SelectDynamicOption/index.vue.js";import{isEqual as C,cloneDeep as N}from"lodash-es";var A=e({__name:"SelectDynamic",props:{value:{type:[Array,String,Number]},componentCfg:{type:Object}},emits:["update:value"],setup(e,{emit:A}){const L=e,P=d(),D="SQL",J="API",{getDynamicSelectData:x}=h(),I=a(),E=l(null),K=l(!1),T=t(b),$=t(j),U=l(1),W=l(),_=l([JSON.parse(JSON.stringify(S))]),M=l([]),F=l(),H=l(0),Q={class:"select-dynamic-popover"},R=u((()=>I.multiple)),V=u((()=>{const{widgetCfg:e}=L.componentCfg,{dynamicOptionInfo:a={}}=e;return a})),q=u((()=>{const{widgetCfg:e}=L.componentCfg,{showWholeOption:a=!1}=e;return a&&1===U.value})),z=u((()=>H.value>0&&U.value>=H.value)),B=u((()=>{var e;if(Array.isArray(L.value)&&L.value.length>0){const e=L.value;if(X(e),e.includes(S.value)){const e=_.value.find((e=>e.value===S.value)),a=e||S;return R.value?[a]:JSON.stringify(a)}if(!R.value&&1==e.length){const a=_.value.find((a=>a.value===e[0]));return a?JSON.stringify(a):{label:e[0].includes("&")?e[0].split("&")[0]:e[0],value:e[0]}}const a=_.value.filter((a=>e.includes(a.value))),l=a.map((e=>e.value)),t=e.filter((e=>!l.includes(e))).map((e=>({label:e.includes("&")?e.split("&")[0]:e,value:e})));return[...a,...t]}return X([]),null!=(e=L.value)?e:null})),G=u((()=>{if(Object.keys(V.value).length>0){const{defaultParams:e=[]}=V.value;return w(e)&&!L.value}return!1}));function X(e){_.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function Y(e){const{widgetCfg:a}=L.componentCfg,{linkageFieldKeys:l=[]}=a;C(L.value,e)||(l.forEach((e=>{const a=$.value.find((a=>a.columnName===e));a&&a.value&&(a.value=null)})),A("update:value",e))}async function Z(e){var a;U.value=e,null==(a=null==E?void 0:E.value)||a.focus(),await ee(F.value,U.value)}async function ee(e,a){try{if(K.value=!0,Object.keys(V.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:u,filterKeys:n,defaultParams:o=[],showKeys:i,valueKey:s,tableDataType:r}=V.value;let v={wordbookId:t,autograph:l,wordbookType:u,fieldKeys:n,page:a};switch(r){case D:v.keyword=e;break;case J:n.length>0&&(v[n[0]]=e)}if(w(o)){const e=o.map((e=>e.value)).filter((e=>e.includes("${")));e.map((e=>e.match(/\$\{(.+?)\}/)[1])).forEach((e=>{const a=$.value.find((a=>a.columnName===e));a&&a.value&&a.value!==O.WHOLE&&(v[e]=a.value)}))}let c=await x(v,T);if(c){const{fieldList:e=[],rows:a=[],total:l=0}=c.map,t=a.map((e=>({...e,label:e[i[0]],value:`${e[i[0]]}&${e[s]}`}))),u=N(t);q.value&&t.unshift(JSON.parse(JSON.stringify(S))),W.value=null!=e?e:[],_.value=null!=t?t:[],M.value=u,H.value=l}}}catch(e){P.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{K.value=!1}}const ae=g((async e=>{await async function(e){F.value=e.trim(),U.value=1,await ee(F.value,U.value)}(e)}),300);async function le(){Object.keys(V.value).length>0&&T&&await ee("",U.value)}async function te(){A("update:value",null),await le()}function ue(e){F.value="",e&&(U.value=1,le())}function ne({option:e,handleClose:a}){if(R.value){const l=e.value;return p(y,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(L.value)&&L.value.length>0){const e=L.value,a=e.indexOf(l.value);if(a>-1){const l=e.splice(0,a);A("update:value",l.length>0?l:null)}}}},{default:()=>p("div",l.label)})}const l=e.value?JSON.parse(e.value):{label:""};return p("div",l.label)}return n((()=>{G.value||le()})),(e,a)=>(o(),i(s(m),r({ref_key:"selectDynamicRef",ref:E},s(I),{value:s(B),"onUpdate:value":a[0]||(a[0]=e=>v(B)?B.value=e:null),remote:"",loading:K.value,"render-tag":ne,"menu-props":Q,to:"body",onSearch:s(ae),onClear:te,"onUpdate:show":ue}),{empty:c((()=>[f(k,r(s(I),{loading:K.value,dynamicOptionInfo:s(V),fieldTitleList:W.value,optionList:_.value,isMultiple:s(R),curPage:U.value,isLastPage:s(z),isShowWhole:s(q),onUpdateSelect:Y,onUpdatePage:Z}),null,16,["loading","dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage","isShowWhole"])])),_:1},16,["value","loading","onSearch"]))}});export{A as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as i,withDirectives as a,openBlock as l,createElementBlock as n,normalizeStyle as o,createBlock as s,unref as c,Fragment as d,renderList as u,toDisplayString as r,createCommentVNode as p,createElementVNode as v,normalizeClass as m,withCtx as f,createTextVNode as y,createVNode as h}from"vue";import{NEmpty as g,NPopover as k,NButtonGroup as L,NButton as b,NIcon as E}from"naive-ui";import{vFlexibleResize as P}from"../../../../../../../shared/directive/flexibleResize.js";import{WidgetValEnums as x}from"../../../../types/enums.js";import{ArrowBack as M,ArrowForward as O}from"@vicons/ionicons5";import{WholeSelectObj as W}from"../../helpers/selectExtraMap.js";const _={key:0,class:"dynamic-header"},S={class:"dynamic-content"},j=["onClick"],w={key:0,class:"content"},B={class:"content"},C={class:"dynamic-pagination"};var z=e({__name:"index",props:{dynamicOptionInfo:{type:Object,default:()=>({})},fieldTitleList:{type:Array,default:()=>[]},optionList:{type:Array,default:()=>[]},isMultiple:{type:Boolean,default:!1},curPage:{type:Number,default:1},isLastPage:{type:Boolean,default:!1},isShowWhole:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["updateSelect","updatePage"],setup(e,{emit:z}){const H=e,A=t(200),I=i((()=>{var e,t;return null!=(t=null==(e=H.dynamicOptionInfo)?void 0:e.showKeys)?t:[]})),N=i((()=>I.value&&I.value.length>0?I.value.map((e=>{let t="";return H.fieldTitleList.forEach((i=>{i.columnName===e&&(t=i.title)})),t})):[])),R=i((()=>!H.optionList.filter((e=>e.label!=W.label)).length));function T(e){const t=H.curPage+e;z("updatePage",t)}function K({distance:e}){const t=A.value+e;A.value=Math.min(Math.max(t,200),1e3)}function V(){}return(t,i)=>a((l(),n("div",{class:"select-dynamic-options",style:o({minWidth:A.value+"px",position:"relative"})},[e.loading?(l(),s(c(g),{key:0,"show-icon":!1,description:"加载中..."})):(l(),n(d,{key:1},[c(R)?(l(),s(c(g),{key:0,description:"无数据"})):(l(),n(d,{key:1},[c(N)&&c(N).length>1?(l(),n("div",_,[(l(!0),n(d,null,u(c(N),(e=>(l(),n("span",{key:e,class:"name"},r(e),1)))),128))])):p("v-if",!0),v("ul",S,[(l(!0),n(d,null,u(e.optionList,(t=>(l(),n("li",{class:m(t.actived?"actived":""),key:t.value,onClick:e=>function(e){var t,i,a;if(!H.isMultiple||e.value===x.WHOLE)return null==(t=H.optionList)||t.forEach((e=>{e.actived=!1})),e.actived=!0,void z("updateSelect",[e.value]);null==(i=H.optionList)||i.forEach((e=>{e.value===x.WHOLE&&(e.actived=!1)})),e.actived?e.actived=!1:e.actived=!0;const l=null==(a=H.optionList)?void 0:a.filter((e=>e.actived)).map((e=>e.value));z("updateSelect",l)}(t)},[e.isShowWhole&&t.value===c(x).WHOLE?(l(),n("span",w,r(t.label),1)):(l(!0),n(d,{key:1},u(c(I),(e=>(l(),s(c(k),{key:e,trigger:"hover",duration:0},{trigger:f((()=>[v("span",B,r(t[e]),1)])),default:f((()=>[y(" "+r(t[e]),1)])),_:2},1024)))),128))],10,j)))),128))]),v("div",C,[h(c(L),null,{default:f((()=>[h(c(b),{onClick:i[0]||(i[0]=e=>T(-1)),disabled:e.curPage<=1},{icon:f((()=>[h(c(E),{component:c(M),size:"16"},null,8,["component"])])),default:f((()=>[y(" 上一页 ")])),_:1},8,["disabled"]),h(c(b),{"icon-placement":"right",onClick:i[1]||(i[1]=e=>T(1)),disabled:e.isLastPage},{icon:f((()=>[h(c(E),{component:c(O),size:"16"},null,8,["component"])])),default:f((()=>[y(" 下一页 ")])),_:1},8,["disabled"])])),_:1})])],64))],64))],4)),[[c(P),{mode:"VR",onMove:K,onEnd:V}]])}});export{z as default};
1
+ import{defineComponent as e,ref as t,computed as i,withDirectives as a,openBlock as l,createElementBlock as n,normalizeStyle as o,createBlock as s,unref as c,Fragment as d,renderList as u,toDisplayString as r,createCommentVNode as p,createElementVNode as v,normalizeClass as m,withCtx as f,createTextVNode as y,createVNode as h}from"vue";import{NEmpty as g,NPopover as k,NButtonGroup as L,NButton as b,NIcon as E}from"naive-ui";import{vFlexibleResize as P}from"../../../../../../../shared/directive/flexibleResize.js";import{WidgetValEnums as x}from"../../../../types/enums.js";import{ArrowBack as M,ArrowForward as O}from"@vicons/ionicons5";import{WholeSelectObj as W}from"../../helpers/selectExtraMap.js";const _={key:0,class:"dynamic-header"},S={class:"dynamic-content"},j=["onClick"],w={key:0,class:"content"},B={class:"content"},C={class:"dynamic-pagination"};var z=e({__name:"index",props:{dynamicOptionInfo:{type:Object,default:()=>({})},fieldTitleList:{type:Array,default:()=>[]},optionList:{type:Array,default:()=>[]},isMultiple:{type:Boolean,default:!1},curPage:{type:Number,default:1},isLastPage:{type:Boolean,default:!1},isShowWhole:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["updateSelect","updatePage"],setup(e,{emit:z}){const H=e,A=t(200),I=i((()=>{var e,t;return null!=(t=null==(e=H.dynamicOptionInfo)?void 0:e.showKeys)?t:[]})),N=i((()=>I.value&&I.value.length>0?I.value.map((e=>{let t="";return H.fieldTitleList.forEach((i=>{i.columnName===e&&(t=i.title)})),t})):[])),R=i((()=>!H.optionList.filter((e=>e.label!=W.label)).length));function T(e){const t=H.curPage+e;z("updatePage",t)}function K({distance:e}){const t=A.value+e;A.value=Math.min(Math.max(t,200),1e3)}function V(){}return(t,i)=>a((l(),n("div",{class:"select-dynamic-options",style:o({minWidth:A.value+"px",position:"relative"})},[e.loading?(l(),s(c(g),{key:0,"show-icon":!1,description:"加载中..."})):(l(),n(d,{key:1},[c(R)?(l(),s(c(g),{key:0,description:"无数据"})):(l(),n(d,{key:1},[c(N)&&c(N).length>1?(l(),n("div",_,[(l(!0),n(d,null,u(c(N),(e=>(l(),n("span",{key:e,class:"name"},r(e),1)))),128))])):p("v-if",!0),v("ul",S,[(l(!0),n(d,null,u(e.optionList,(t=>(l(),n("li",{class:m(t.actived?"actived":""),key:t.value,onClick:e=>function(e){var t,i,a;if(!H.isMultiple||e.value===x.WHOLE)return null==(t=H.optionList)||t.forEach((e=>{e.actived=!1})),e.actived=!0,void z("updateSelect",[e.value]);null==(i=H.optionList)||i.forEach((e=>{e.value===x.WHOLE&&(e.actived=!1)})),e.actived?e.actived=!1:e.actived=!0;const l=null==(a=H.optionList)?void 0:a.filter((e=>e.actived)).map((e=>e.value));z("updateSelect",l)}(t)},[e.isShowWhole&&t.value===c(x).WHOLE?(l(),n("span",w,r(t.label),1)):(l(!0),n(d,{key:1},u(c(I),(e=>(l(),s(c(k),{key:e,trigger:"hover",to:"body",duration:0},{trigger:f((()=>[v("span",B,r(t[e]),1)])),default:f((()=>[y(" "+r(t[e]),1)])),_:2},1024)))),128))],10,j)))),128))]),v("div",C,[h(c(L),null,{default:f((()=>[h(c(b),{onClick:i[0]||(i[0]=e=>T(-1)),disabled:e.curPage<=1},{icon:f((()=>[h(c(E),{component:c(M),size:"16"},null,8,["component"])])),default:f((()=>[y(" 上一页 ")])),_:1},8,["disabled"]),h(c(b),{"icon-placement":"right",onClick:i[1]||(i[1]=e=>T(1)),disabled:e.isLastPage},{icon:f((()=>[h(c(E),{component:c(O),size:"16"},null,8,["component"])])),default:f((()=>[y(" 下一页 ")])),_:1},8,["disabled"])])),_:1})])],64))],64))],4)),[[c(P),{mode:"VR",onMove:K,onEnd:V}]])}});export{z as default};
@@ -204,6 +204,10 @@ declare const DateInner: import("vue").DefineComponent<{
204
204
  allowedInvalidValue: {
205
205
  type: StringConstructor;
206
206
  };
207
+ to: {
208
+ type: import("vue").PropType<string | false | HTMLElement>;
209
+ default: string;
210
+ };
207
211
  }, {
208
212
  attrs: {
209
213
  [x: string]: unknown;
@@ -224,6 +228,10 @@ declare const DateInner: import("vue").DefineComponent<{
224
228
  allowedInvalidValue: {
225
229
  type: StringConstructor;
226
230
  };
231
+ to: {
232
+ type: import("vue").PropType<string | false | HTMLElement>;
233
+ default: string;
234
+ };
227
235
  }>> & {
228
236
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
229
237
  }>>;
@@ -260,10 +268,15 @@ declare const DateInner: import("vue").DefineComponent<{
260
268
  allowedInvalidValue: {
261
269
  type: StringConstructor;
262
270
  };
271
+ to: {
272
+ type: import("vue").PropType<string | false | HTMLElement>;
273
+ default: string;
274
+ };
263
275
  }>> & {
264
276
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
265
277
  }, {
266
278
  updateUnchangedValue: boolean;
279
+ to: string | false | HTMLElement;
267
280
  }>>;
268
281
  DateQuickBtn: import("vue").DefineComponent<{
269
282
  componentCfg: {
@@ -452,6 +465,10 @@ declare const DateOut: import("vue").DefineComponent<{
452
465
  allowedInvalidValue: {
453
466
  type: StringConstructor;
454
467
  };
468
+ to: {
469
+ type: import("vue").PropType<string | false | HTMLElement>;
470
+ default: string;
471
+ };
455
472
  }, {
456
473
  attrs: {
457
474
  [x: string]: unknown;
@@ -472,6 +489,10 @@ declare const DateOut: import("vue").DefineComponent<{
472
489
  allowedInvalidValue: {
473
490
  type: StringConstructor;
474
491
  };
492
+ to: {
493
+ type: import("vue").PropType<string | false | HTMLElement>;
494
+ default: string;
495
+ };
475
496
  }>> & {
476
497
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
477
498
  }>>;
@@ -508,10 +529,15 @@ declare const DateOut: import("vue").DefineComponent<{
508
529
  allowedInvalidValue: {
509
530
  type: StringConstructor;
510
531
  };
532
+ to: {
533
+ type: import("vue").PropType<string | false | HTMLElement>;
534
+ default: string;
535
+ };
511
536
  }>> & {
512
537
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
513
538
  }, {
514
539
  updateUnchangedValue: boolean;
540
+ to: string | false | HTMLElement;
515
541
  }>>;
516
542
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
517
543
  componentCfg: {
@@ -662,6 +688,10 @@ declare const DateRangeInner: import("vue").DefineComponent<{
662
688
  allowedInvalidValue: {
663
689
  type: StringConstructor;
664
690
  };
691
+ to: {
692
+ type: import("vue").PropType<string | false | HTMLElement>;
693
+ default: string;
694
+ };
665
695
  }, {
666
696
  attrs: {
667
697
  [x: string]: unknown;
@@ -682,6 +712,10 @@ declare const DateRangeInner: import("vue").DefineComponent<{
682
712
  allowedInvalidValue: {
683
713
  type: StringConstructor;
684
714
  };
715
+ to: {
716
+ type: import("vue").PropType<string | false | HTMLElement>;
717
+ default: string;
718
+ };
685
719
  }>> & {
686
720
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
687
721
  }>>;
@@ -718,10 +752,15 @@ declare const DateRangeInner: import("vue").DefineComponent<{
718
752
  allowedInvalidValue: {
719
753
  type: StringConstructor;
720
754
  };
755
+ to: {
756
+ type: import("vue").PropType<string | false | HTMLElement>;
757
+ default: string;
758
+ };
721
759
  }>> & {
722
760
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
723
761
  }, {
724
762
  updateUnchangedValue: boolean;
763
+ to: string | false | HTMLElement;
725
764
  }>>;
726
765
  DateQuickBtn: import("vue").DefineComponent<{
727
766
  componentCfg: {
@@ -917,6 +956,10 @@ declare const DateRangeOut: import("vue").DefineComponent<{
917
956
  allowedInvalidValue: {
918
957
  type: StringConstructor;
919
958
  };
959
+ to: {
960
+ type: import("vue").PropType<string | false | HTMLElement>;
961
+ default: string;
962
+ };
920
963
  }, {
921
964
  attrs: {
922
965
  [x: string]: unknown;
@@ -937,6 +980,10 @@ declare const DateRangeOut: import("vue").DefineComponent<{
937
980
  allowedInvalidValue: {
938
981
  type: StringConstructor;
939
982
  };
983
+ to: {
984
+ type: import("vue").PropType<string | false | HTMLElement>;
985
+ default: string;
986
+ };
940
987
  }>> & {
941
988
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
942
989
  }>>;
@@ -973,10 +1020,15 @@ declare const DateRangeOut: import("vue").DefineComponent<{
973
1020
  allowedInvalidValue: {
974
1021
  type: StringConstructor;
975
1022
  };
1023
+ to: {
1024
+ type: import("vue").PropType<string | false | HTMLElement>;
1025
+ default: string;
1026
+ };
976
1027
  }>> & {
977
1028
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
978
1029
  }, {
979
1030
  updateUnchangedValue: boolean;
1031
+ to: string | false | HTMLElement;
980
1032
  }>>;
981
1033
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
982
1034
  type: {
@@ -504,6 +504,10 @@ export declare const WidgetCfgMaps: Map<string, {
504
504
  allowedInvalidValue: {
505
505
  type: StringConstructor;
506
506
  };
507
+ to: {
508
+ type: import("vue").PropType<string | false | HTMLElement>;
509
+ default: string;
510
+ };
507
511
  }, {
508
512
  attrs: {
509
513
  [x: string]: unknown;
@@ -524,6 +528,10 @@ export declare const WidgetCfgMaps: Map<string, {
524
528
  allowedInvalidValue: {
525
529
  type: StringConstructor;
526
530
  };
531
+ to: {
532
+ type: import("vue").PropType<string | false | HTMLElement>;
533
+ default: string;
534
+ };
527
535
  }>> & {
528
536
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
529
537
  }>>;
@@ -560,10 +568,15 @@ export declare const WidgetCfgMaps: Map<string, {
560
568
  allowedInvalidValue: {
561
569
  type: StringConstructor;
562
570
  };
571
+ to: {
572
+ type: import("vue").PropType<string | false | HTMLElement>;
573
+ default: string;
574
+ };
563
575
  }>> & {
564
576
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
565
577
  }, {
566
578
  updateUnchangedValue: boolean;
579
+ to: string | false | HTMLElement;
567
580
  }>>;
568
581
  DateQuickBtn: import("vue").DefineComponent<{
569
582
  componentCfg: {
@@ -766,6 +779,10 @@ export declare const WidgetCfgMaps: Map<string, {
766
779
  allowedInvalidValue: {
767
780
  type: StringConstructor;
768
781
  };
782
+ to: {
783
+ type: import("vue").PropType<string | false | HTMLElement>;
784
+ default: string;
785
+ };
769
786
  }, {
770
787
  attrs: {
771
788
  [x: string]: unknown;
@@ -786,6 +803,10 @@ export declare const WidgetCfgMaps: Map<string, {
786
803
  allowedInvalidValue: {
787
804
  type: StringConstructor;
788
805
  };
806
+ to: {
807
+ type: import("vue").PropType<string | false | HTMLElement>;
808
+ default: string;
809
+ };
789
810
  }>> & {
790
811
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
791
812
  }>>;
@@ -822,10 +843,15 @@ export declare const WidgetCfgMaps: Map<string, {
822
843
  allowedInvalidValue: {
823
844
  type: StringConstructor;
824
845
  };
846
+ to: {
847
+ type: import("vue").PropType<string | false | HTMLElement>;
848
+ default: string;
849
+ };
825
850
  }>> & {
826
851
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
827
852
  }, {
828
853
  updateUnchangedValue: boolean;
854
+ to: string | false | HTMLElement;
829
855
  }>>;
830
856
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
831
857
  componentCfg: {
@@ -990,6 +1016,10 @@ export declare const WidgetCfgMaps: Map<string, {
990
1016
  allowedInvalidValue: {
991
1017
  type: StringConstructor;
992
1018
  };
1019
+ to: {
1020
+ type: import("vue").PropType<string | false | HTMLElement>;
1021
+ default: string;
1022
+ };
993
1023
  }, {
994
1024
  attrs: {
995
1025
  [x: string]: unknown;
@@ -1010,6 +1040,10 @@ export declare const WidgetCfgMaps: Map<string, {
1010
1040
  allowedInvalidValue: {
1011
1041
  type: StringConstructor;
1012
1042
  };
1043
+ to: {
1044
+ type: import("vue").PropType<string | false | HTMLElement>;
1045
+ default: string;
1046
+ };
1013
1047
  }>> & {
1014
1048
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1015
1049
  }>>;
@@ -1046,10 +1080,15 @@ export declare const WidgetCfgMaps: Map<string, {
1046
1080
  allowedInvalidValue: {
1047
1081
  type: StringConstructor;
1048
1082
  };
1083
+ to: {
1084
+ type: import("vue").PropType<string | false | HTMLElement>;
1085
+ default: string;
1086
+ };
1049
1087
  }>> & {
1050
1088
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1051
1089
  }, {
1052
1090
  updateUnchangedValue: boolean;
1091
+ to: string | false | HTMLElement;
1053
1092
  }>>;
1054
1093
  DateQuickBtn: import("vue").DefineComponent<{
1055
1094
  componentCfg: {
@@ -1259,6 +1298,10 @@ export declare const WidgetCfgMaps: Map<string, {
1259
1298
  allowedInvalidValue: {
1260
1299
  type: StringConstructor;
1261
1300
  };
1301
+ to: {
1302
+ type: import("vue").PropType<string | false | HTMLElement>;
1303
+ default: string;
1304
+ };
1262
1305
  }, {
1263
1306
  attrs: {
1264
1307
  [x: string]: unknown;
@@ -1279,6 +1322,10 @@ export declare const WidgetCfgMaps: Map<string, {
1279
1322
  allowedInvalidValue: {
1280
1323
  type: StringConstructor;
1281
1324
  };
1325
+ to: {
1326
+ type: import("vue").PropType<string | false | HTMLElement>;
1327
+ default: string;
1328
+ };
1282
1329
  }>> & {
1283
1330
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1284
1331
  }>>;
@@ -1315,10 +1362,15 @@ export declare const WidgetCfgMaps: Map<string, {
1315
1362
  allowedInvalidValue: {
1316
1363
  type: StringConstructor;
1317
1364
  };
1365
+ to: {
1366
+ type: import("vue").PropType<string | false | HTMLElement>;
1367
+ default: string;
1368
+ };
1318
1369
  }>> & {
1319
1370
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1320
1371
  }, {
1321
1372
  updateUnchangedValue: boolean;
1373
+ to: string | false | HTMLElement;
1322
1374
  }>>;
1323
1375
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1324
1376
  type: {
@@ -1,12 +1,30 @@
1
1
  import { SFCWithInstall } from '../../shared/types';
2
- declare const TimePicker: SFCWithInstall<import("vue").DefineComponent<{}, {
2
+ declare const TimePicker: SFCWithInstall<import("vue").DefineComponent<{
3
+ to: {
4
+ type: import("vue").PropType<string | false | HTMLElement>;
5
+ default: string;
6
+ };
7
+ }, {
3
8
  attrs: {
4
9
  [x: string]: unknown;
5
10
  };
11
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
12
+ to: {
13
+ type: import("vue").PropType<string | false | HTMLElement>;
14
+ default: string;
15
+ };
16
+ }>> & {}>>;
6
17
  timePickerRef: import("vue").Ref<import("../../shared/types").AnyObject | null>;
7
18
  formatRef: import("vue").ComputedRef<string>;
8
19
  focus: () => any;
9
20
  blur: () => any;
10
21
  NTimePicker: any;
11
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
22
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ to: {
24
+ type: import("vue").PropType<string | false | HTMLElement>;
25
+ default: string;
26
+ };
27
+ }>>, {
28
+ to: string | false | HTMLElement;
29
+ }>>;
12
30
  export default TimePicker;
@@ -1,12 +1,31 @@
1
+ import { PropType } from 'vue';
1
2
  import { AnyObject } from '../../../shared/types';
2
- declare const _default: import("vue").DefineComponent<{}, {
3
+ declare const _default: import("vue").DefineComponent<{
4
+ to: {
5
+ type: PropType<string | false | HTMLElement>;
6
+ default: string;
7
+ };
8
+ }, {
3
9
  attrs: {
4
10
  [x: string]: unknown;
5
11
  };
12
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
13
+ to: {
14
+ type: PropType<string | false | HTMLElement>;
15
+ default: string;
16
+ };
17
+ }>> & {}>>;
6
18
  timePickerRef: import("vue").Ref<AnyObject | null>;
7
19
  formatRef: import("vue").ComputedRef<string>;
8
20
  focus: () => any;
9
21
  blur: () => any;
10
22
  NTimePicker: any;
11
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
23
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
+ to: {
25
+ type: PropType<string | false | HTMLElement>;
26
+ default: string;
27
+ };
28
+ }>>, {
29
+ to: string | false | HTMLElement;
30
+ }>;
12
31
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as o,ref as r,computed as s,openBlock as t,createBlock as i,unref as m,createSlots as a,renderList as u,withCtx as f,renderSlot as n}from"vue";import{NTimePicker as p}from"naive-ui";import"../../../shared/utils/index.js";import{useDateTime as c}from"../../../shared/hooks/useDateTime.js";import"lodash-es";import"@vue/shared";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";var l=e({__name:"TimePicker",setup(e,{expose:l}){const h=o(),d=r(null),k=s((()=>Reflect.get(h,"format")?h.format:"HH:mm:ss")),{focus:v,blur:_}=c(d,{formatRef:k,attrs:h});return l({$timePicker:d,focus:v,blur:_}),(e,o)=>(t(),i(m(p),{ref_key:"timePickerRef",ref:d},a({_:2},[u(e.$slots,((o,r)=>({name:r,fn:f((()=>[n(e.$slots,r)]))})))]),1536))}});export{l as default};
1
+ import{defineComponent as e,useAttrs as o,ref as t,computed as r,openBlock as s,createBlock as i,unref as m,createSlots as a,renderList as u,withCtx as f,renderSlot as n}from"vue";import{NTimePicker as p}from"naive-ui";import"../../../shared/utils/index.js";import{useDateTime as l}from"../../../shared/hooks/useDateTime.js";import"lodash-es";import"@vue/shared";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";var c=e({__name:"TimePicker",props:{to:{type:[Object,String,Boolean],default:"body"}},setup(e,{expose:c}){const d=o(),h=t(null),k=r((()=>Reflect.get(d,"format")?d.format:"HH:mm:ss")),{focus:v,blur:b}=l(h,{formatRef:k,attrs:d});return c({$timePicker:h,focus:v,blur:b}),(o,t)=>(s(),i(m(p),{ref_key:"timePickerRef",ref:h,to:e.to},a({_:2},[u(o.$slots,((e,t)=>({name:t,fn:f((()=>[n(o.$slots,t)]))})))]),1032,["to"]))}});export{c as default};