cnhis-design-vue 3.1.45-beta.9 → 3.1.45-release.1

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 (204) hide show
  1. package/README.md +87 -87
  2. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  3. package/es/components/base-search/index.d.ts +0 -2
  4. package/es/components/base-search/src/index.vue.d.ts +0 -2
  5. package/es/components/base-search/style/index.css +1 -1
  6. package/es/components/classification/index.d.ts +11 -165
  7. package/es/components/classification/src/components/search-filter/index.vue.d.ts +11 -165
  8. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  9. package/es/components/classification/src/components/set-classification/index.vue.d.ts +11 -165
  10. package/es/components/classification/src/index.vue.d.ts +11 -165
  11. package/es/components/fabric-chart/index.d.ts +5 -40
  12. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -40
  13. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  14. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +0 -20
  15. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  16. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  17. package/es/components/fabric-chart/src/hooks/temperature/useRight.js +1 -1
  18. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  19. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -1
  20. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +1 -1
  22. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
  23. package/es/components/fabric-chart/src/interface.d.ts +0 -13
  24. package/es/components/fabric-chart/src/utils/index.d.ts +1 -2
  25. package/es/components/fabric-chart/src/utils/index.js +1 -1
  26. package/es/components/field-set/index.d.ts +38 -157
  27. package/es/components/field-set/src/FieldSet.vue.d.ts +23 -160
  28. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  29. package/es/components/field-set/src/types/index.d.ts +0 -1
  30. package/es/components/field-set/style/index.css +1 -1
  31. package/es/components/form-config/index.d.ts +48 -3561
  32. package/es/components/form-config/src/FormConfig.vue.d.ts +48 -3561
  33. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  34. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -31
  35. package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -1
  36. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -33
  37. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +1 -11
  38. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
  39. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +0 -2
  40. package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -1
  41. package/es/components/form-config/src/constants/index.d.ts +0 -1
  42. package/es/components/form-config/src/constants/index.js +1 -1
  43. package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
  44. package/es/components/form-config/src/types/index.d.ts +0 -2
  45. package/es/components/form-config/style/index.css +1 -1
  46. package/es/components/form-render/index.d.ts +4 -31
  47. package/es/components/form-render/src/FormRender.vue.d.ts +4 -31
  48. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  49. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -31
  50. package/es/components/form-render/src/components/renderer/combination.d.ts +5 -5
  51. package/es/components/form-render/src/components/renderer/combination.js +1 -1
  52. package/es/components/form-render/src/components/renderer/jsonCombination/index.d.ts +5 -5
  53. package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
  54. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  55. package/es/components/form-render/src/constants/index.d.ts +0 -2
  56. package/es/components/form-render/src/constants/index.js +1 -1
  57. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  58. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +1 -1
  59. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -1
  60. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  61. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +1 -3
  62. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +1 -1
  63. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  64. package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -1
  65. package/es/components/form-render/src/types/index.d.ts +0 -2
  66. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  67. package/es/components/index.css +1 -1
  68. package/es/components/info-header/index.d.ts +10 -72
  69. package/es/components/info-header/src/InfoHeader.vue.d.ts +10 -72
  70. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +4 -31
  71. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -31
  72. package/es/components/keyboard/index.d.ts +1 -1
  73. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  74. package/es/components/quick-search/index.d.ts +0 -2
  75. package/es/components/quick-search/src/index.vue.d.ts +0 -2
  76. package/es/components/quick-search/style/index.css +1 -1
  77. package/es/components/recommend-search/index.d.ts +2 -2
  78. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
  79. package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
  80. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
  81. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  82. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  83. package/es/components/search-cascader/index.d.ts +3 -16
  84. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +3 -16
  85. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  86. package/es/components/search-cascader/src/hooks/index.d.ts +1 -0
  87. package/es/components/search-cascader/src/hooks/index.js +1 -0
  88. package/es/components/search-cascader/src/hooks/useCssVariable.d.ts +3 -0
  89. package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -0
  90. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  91. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  92. package/es/components/shortcut-setter/index.d.ts +4 -31
  93. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -31
  94. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +10 -165
  95. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  96. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -16
  97. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  98. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +0 -18
  99. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  100. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +10 -128
  101. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  102. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +0 -1
  103. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
  104. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +10 -163
  105. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +10 -165
  106. package/es/components/table-filter/src/components/render-widget/basicData.d.ts +4 -0
  107. package/es/components/table-filter/src/components/render-widget/basicData.js +1 -0
  108. package/es/components/table-filter/src/components/render-widget/components/{DateOut.vue.d.ts → Date.vue.d.ts} +2 -21
  109. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
  110. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -0
  111. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +5 -99
  112. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  113. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +9 -13
  114. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  115. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +5 -7
  116. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  117. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +5 -6
  118. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
  119. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +25 -15
  120. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  121. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +25 -520
  122. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  123. package/es/components/table-filter/src/components/render-widget/enums.d.ts +3 -10
  124. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  125. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +6 -2
  126. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
  127. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  128. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +24 -548
  129. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  130. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +0 -2
  131. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  132. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  133. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  134. package/es/components/table-filter/src/types/enums.d.ts +0 -2
  135. package/es/components/table-filter/src/types/enums.js +1 -1
  136. package/es/env.d.ts +25 -25
  137. package/es/shared/assets/img/failure.png.js +1 -1
  138. package/es/shared/assets/img/no-permission.png.js +1 -1
  139. package/es/shared/assets/img/nodata.png.js +1 -1
  140. package/es/shared/assets/img/notfound.png.js +1 -1
  141. package/es/shared/assets/img/qr.png.js +1 -1
  142. package/es/shared/assets/img/success.png.js +1 -1
  143. package/es/shared/assets/img/video.png.js +1 -1
  144. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  145. package/es/shared/assets/img/xb_big.png.js +1 -1
  146. package/es/shared/assets/img/xb_small.png.js +1 -1
  147. package/es/shared/hooks/useAsyncQueue.d.ts +1 -3
  148. package/es/shared/hooks/useAsyncQueue.js +1 -1
  149. package/es/shared/package.json.js +1 -1
  150. package/package.json +2 -2
  151. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  152. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  153. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  154. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  155. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.d.ts +0 -2
  156. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.js +0 -1
  157. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +0 -4
  158. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +0 -1
  159. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +0 -4
  160. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +0 -1
  161. package/es/components/field-set/src/components/Row.vue.d.ts +0 -132
  162. package/es/components/field-set/src/components/Row.vue.js +0 -1
  163. package/es/components/field-set/src/components/Row.vue2.js +0 -1
  164. package/es/components/field-set/src/utils/index.d.ts +0 -7
  165. package/es/components/field-set/src/utils/index.js +0 -1
  166. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
  167. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
  168. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
  169. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
  170. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
  171. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
  172. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
  173. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +0 -3
  174. package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
  175. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
  176. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
  177. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
  178. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
  179. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
  180. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic1.vue.d.ts +0 -61
  181. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +0 -218
  182. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +0 -1
  183. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +0 -1
  184. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +0 -1
  185. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +0 -1
  186. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +0 -71
  187. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +0 -1
  188. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +0 -1
  189. package/es/components/table-filter/src/components/render-widget/components/Select1.vue.d.ts +0 -45
  190. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +0 -175
  191. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +0 -1
  192. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +0 -1
  193. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +0 -114
  194. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +0 -1
  195. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +0 -1
  196. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +0 -27
  197. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +0 -1
  198. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +0 -55
  199. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +0 -1
  200. package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +0 -56
  201. package/es/components/table-filter/src/components/render-widget/helpers/enums.js +0 -1
  202. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  203. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  204. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,openBlock as a,createElementBlock as l,createVNode as r,unref as u,isRef as o,createBlock as s,createCommentVNode as p}from"vue";import d from"../../../../../date-picker/index.js";import{NSelect as n}from"naive-ui";import{WidgetTypeEnums as i,WidgetOptionEnums as m,WidgetValEnums as v}from"../../../types/enums.js";import{WidgetDateOptionEnums as f}from"../../render-widget/helpers/enums.js";import{widgetDateValOptions as y}from"../../render-widget/helpers/dateExtraMap.js";import{setDateDisabled as c,setTimeDisabled as b}from"../../render-widget/helpers/dateDisabled.js";const g={style:{display:"flex"}};var w=e({__name:"Date",props:{componentCfg:{type:Object},paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:w}){const C=e,M=t({set(e){w("update:modelValue",e)},get:()=>C.modelValue}),V=t({set(e){w("update:presetVal",e)},get:()=>C.presetVal}),j=t((()=>T.value.toLowerCase()||i.DATE.toLowerCase())),D=t((()=>{let e="";switch(T.value){case i.DATE:e="yyyy-MM-dd";break;case i.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),T=t((()=>C.paramCfg._rawData.type)),h=t((()=>{var e,t;return null==(t=null==(e=C.paramCfg)?void 0:e._rawData)?void 0:t.optionType})),_=t((()=>{var e;const t=h.value||m.ALL;if(T.value&&t){const a=`${T.value}_${t}`,l=f[a];let r=(null!=(e=y[l])?e:[]).map((e=>({label:e.title,value:e.con})));return r.unshift({label:"自定义输入",value:v.CUSTOM}),r}return[]}));function x(e){return c(e,h.value)}function A(e){return b(e,h.value)}return(e,t)=>(a(),l("div",g,[r(u(n),{style:{width:"120px"},class:"form-item",to:"body",value:u(V),"onUpdate:value":t[0]||(t[0]=e=>o(V)?V.value=e:null),options:u(_)},null,8,["value","options"]),u(V)===u(v).CUSTOM?(a(),s(u(d),{key:0,class:"form-item",type:u(j),clearable:"",to:"body","is-date-disabled":x,"is-time-disabled":A,valueFormat:u(D),"formatted-value":u(M),"onUpdate:formatted-value":t[1]||(t[1]=e=>o(M)?M.value=e:null)},null,8,["type","valueFormat","formatted-value"])):p("v-if",!0)]))}});export{w as default};
1
+ import{defineComponent as e,computed as t,openBlock as a,createElementBlock as l,Fragment as r,createVNode as u,unref as o,isRef as p,createBlock as m,createCommentVNode as s}from"vue";import n from"../../../../../date-picker/index.js";import{NSelect as d}from"naive-ui";import{WidgetTypeEnums as i,WidgetValEnums as v}from"../../../types/enums.js";import{generateDefOptionsInApi as f}from"../../../tool/generateDefOptions.js";var y=e({__name:"Date",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:y}){const c=e,g=t({set(e){y("update:modelValue",e)},get:()=>c.modelValue}),T=t({set(e){y("update:presetVal",e)},get:()=>c.presetVal}),C=t((()=>M.value.toLowerCase()||i.DATE.toLowerCase())),D=t((()=>{let e="";switch(M.value){case i.DATE:e="yyyy-MM-dd";break;case i.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),M=t((()=>c.paramCfg._rawData.type)),V=t((()=>{var e;return null==(e=c.paramCfg)?void 0:e.mappingConfig})),b=t((()=>{const e=f(M.value,V.value).slice(0);return M.value!==i.DATE&&M.value!==i.DATE_TIME||e.unshift({label:"自定义输入",value:v.CUSTOM}),e}));return(e,t)=>(a(),l(r,null,[u(o(d),{style:{width:"120px"},class:"form-item",to:"body",value:o(T),"onUpdate:value":t[0]||(t[0]=e=>p(T)?T.value=e:null),options:o(b)},null,8,["value","options"]),o(T)===o(v).CUSTOM?(a(),m(o(n),{key:0,class:"form-item",type:o(C),clearable:"",to:"body",valueFormat:o(D),"formatted-value":o(g),"onUpdate:formatted-value":t[1]||(t[1]=e=>p(g)?g.value=e:null)},null,8,["type","valueFormat","formatted-value"])):s("v-if",!0)],64))}});export{y as default};
@@ -35,15 +35,8 @@ declare const _default: import("vue").DefineComponent<{
35
35
  valueFormat: import("vue").ComputedRef<string>;
36
36
  dateFormat: import("vue").ComputedRef<string>;
37
37
  compType: import("vue").ComputedRef<any>;
38
- optionSetting: import("vue").ComputedRef<any>;
39
- isPastTime: import("vue").ComputedRef<boolean>;
40
- isFutureTime: import("vue").ComputedRef<boolean>;
41
38
  startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
42
39
  endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
43
- startDefault: import("vue").ComputedRef<string>;
44
- endDefault: import("vue").ComputedRef<string>;
45
- startDateFormat: import("vue").ComputedRef<string | null>;
46
- endDateFormat: import("vue").ComputedRef<string | null>;
47
40
  dateType: any;
48
41
  widgetOptions: import("vue").ComputedRef<{
49
42
  label: string;
@@ -52,19 +45,8 @@ declare const _default: import("vue").DefineComponent<{
52
45
  presetValCp: import("vue").WritableComputedRef<string>;
53
46
  handleChange: (val: any, type: 'start' | 'end') => void;
54
47
  isStartDateDisabled: (ts: number) => boolean;
55
- timeStartDisabled: (ts: number) => {
56
- isHourDisabled(hour: number): boolean | 0;
57
- isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
58
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
59
- };
60
48
  isEndDateDisabled: (ts: number) => boolean;
61
- timeEndDisabled: (ts: number) => {
62
- isHourDisabled(hour: number): boolean | 0;
63
- isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
64
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
65
- };
66
49
  NSelect: any;
67
- NPopover: any;
68
50
  CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
69
51
  updateUnchangedValue: {
70
52
  type: BooleanConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,createVNode as i,unref as d,isRef as o,withCtx as s,toDisplayString as v,createCommentVNode as n}from"vue";import{NSelect as m,NPopover as p}from"naive-ui";import f from"../../../../../date-picker/index.js";import c from"moment";import{isString as y}from"lodash-es";import{WidgetOptionEnums as b,WidgetTypeEnums as g,WidgetValEnums as T}from"../../../types/enums.js";import{WidgetDateOptionEnums as h}from"../../render-widget/helpers/enums.js";import{widgetDateValOptions as D}from"../../render-widget/helpers/dateExtraMap.js";import{dateDisabledCollect as M,isStartDateRangeDisabled as E,isTimeStartRangeDisabled as _,isEndDateRangeDisabled as w,isTimeEndRangeDisabled as A}from"../../render-widget/helpers/dateDisabled.js";const V={style:{display:"flex"}},Y={key:0,style:{display:"flex"}},k={key:0},x={key:0};var C=e({__name:"DateRange",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:C}){const U=e,j=a(),F=a(),O=l((()=>{let e="";switch(H.value){case g.DATE:e="yyyy-MM-dd";break;case g.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),S=l((()=>{let e="";switch(H.value){case g.DATE:e="YYYY-MM-DD";break;case g.DATE_TIME:e="YYYY-MM-DD HH:mm:ss"}return e})),H=l((()=>U.paramCfg._rawData.type)),I=l((()=>{var e,a;return null==(a=null==(e=U.paramCfg)?void 0:e._rawData)?void 0:a.optionType})),L=l((()=>I.value===b.PAST_TIME)),$=l((()=>I.value===b.FUTURE_TIME)),R=l((()=>H.value===g.DATE?"初始日期":"初始时间")),N=l((()=>H.value===g.DATE?"截止日期":"截止时间")),G=l((()=>$.value?M.curTime:"00:00:00")),P=l((()=>L.value?M.curTime:"23:59:59")),q=l((()=>j.value?c(j.value).format(S.value):null)),z=l((()=>F.value?c(F.value).format(S.value):null)),B=l((()=>H.value.toLowerCase()||g.DATE.toLowerCase())),J=l((()=>{var e;const a=I.value||b.ALL;if(H.value&&a){const l=`${H.value}_${a}_RANGE`,t=h[l];let u=(null!=(e=D[t])?e:[]).map((e=>({label:e.title,value:e.con})));return u.unshift({label:"自定义输入",value:T.CUSTOM}),u}return[]})),K=l({set(e){C("update:presetVal",e)},get:()=>U.presetVal});function Q(e,a){var l,t;switch(a){case"start":j.value=e;break;case"end":F.value=e}const u=q.value||z.value?`${null!=(l=q.value)?l:""} ~ ${null!=(t=z.value)?t:""}`:"";C("update:modelValue",u)}function W(e){return E(e,I.value,F.value)}function X(e){return _(e,I.value,F.value)}function Z(e){return w(e,I.value,j.value)}function ee(e){return A(e,I.value,j.value)}return t((()=>U.modelValue),(e=>{if(e&&y(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(j.value=c(a.trim()).valueOf()),void(l.trim()&&(F.value=c(l.trim()).valueOf()))}j.value=F.value=null}),{immediate:!0}),(e,a)=>(u(),r("div",V,[i(d(m),{style:{width:"120px"},class:"form-item",to:"body",value:d(K),"onUpdate:value":a[0]||(a[0]=e=>o(K)?K.value=e:null),options:d(J)},null,8,["value","options"]),d(K)===d(T).CUSTOM?(u(),r("div",Y,[i(d(p),{trigger:"hover",disabled:!d(q)},{trigger:s((()=>[i(d(f),{type:d(B),"default-time":d(G),clearable:"",to:"body",valueFormat:d(O),placeholder:d(R),value:j.value,"is-date-disabled":W,"is-time-disabled":X,"onUpdate:value":a[1]||(a[1]=e=>Q(e,"start"))},null,8,["type","default-time","valueFormat","placeholder","value"])])),default:s((()=>[d(q)?(u(),r("span",k,v(d(q)),1)):n("v-if",!0)])),_:1},8,["disabled"]),i(d(p),{trigger:"hover",disabled:!d(z)},{trigger:s((()=>[i(d(f),{style:{"margin-left":"5px"},type:d(B),"default-time":d(P),clearable:"",to:"body",valueFormat:d(O),placeholder:d(N),value:F.value,"is-date-disabled":Z,"is-time-disabled":ee,"onUpdate:value":a[2]||(a[2]=e=>Q(e,"end"))},null,8,["type","default-time","valueFormat","placeholder","value"])])),default:s((()=>[d(z)?(u(),r("span",x,v(d(z)),1)):n("v-if",!0)])),_:1},8,["disabled"])])):n("v-if",!0)]))}});export{C as default};
1
+ import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,Fragment as o,createVNode as s,unref as n,isRef as m,createCommentVNode as i}from"vue";import{NSelect as v}from"naive-ui";import d from"../../../../../date-picker/index.js";import p from"moment";import{cloneDeep as f,isString as c}from"lodash-es";import{WidgetTypeEnums as y,WidgetValEnums as b}from"../../../types/enums.js";import{widgetDateRangeOptions as D}from"../../../tool/baseOptions.js";const M={key:0,style:{display:"flex"}};var T=e({__name:"DateRange",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:T}){const h=e,E=a(),A=a(),V=l((()=>{let e="";switch(g.value){case y.DATE:e="yyyy-MM-dd";break;case y.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),Y=l((()=>{let e="";switch(g.value){case y.DATE:e="YYYY-MM-DD";break;case y.DATE_TIME:e="YYYY-MM-DD HH:mm:ss"}return e})),g=l((()=>h.paramCfg._rawData.type)),w=l((()=>g.value===y.DATE?"初始日期":"初始时间")),C=l((()=>g.value===y.DATE?"截止日期":"截止时间")),O=l((()=>g.value.toLowerCase()||y.DATE.toLowerCase())),k=l((()=>{const e=f(D);return e.unshift({label:"自定义输入",value:b.CUSTOM}),e})),x=l({set(e){T("update:presetVal",e)},get:()=>h.presetVal});function U(e,a){switch(a){case"start":E.value=e;break;case"end":A.value=e}const l=E.value?p(E.value).format(Y.value):null,t=A.value?p(A.value).format(Y.value):null;T("update:modelValue",l||t?`${null!=l?l:""} ~ ${null!=t?t:""}`:"")}function _(e){return!!A.value&&e>A.value}function j(e){return!!E.value&&e<E.value}return t((()=>h.modelValue),(e=>{if(e&&c(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(E.value=p(a.trim()).valueOf()),void(l.trim()&&(A.value=p(l.trim()).valueOf()))}E.value=A.value=null}),{immediate:!0}),(e,a)=>(u(),r(o,null,[s(n(v),{style:{width:"120px"},class:"form-item",to:"body",value:n(x),"onUpdate:value":a[0]||(a[0]=e=>m(x)?x.value=e:null),options:n(k)},null,8,["value","options"]),n(x)===n(b).CUSTOM?(u(),r("div",M,[s(n(d),{type:n(O),"default-time":"00:00:00",clearable:"",to:"body",valueFormat:n(V),placeholder:n(w),value:E.value,"is-date-disabled":_,"onUpdate:value":a[1]||(a[1]=e=>U(e,"start"))},null,8,["type","valueFormat","placeholder","value"]),s(n(d),{style:{"margin-left":"5px"},type:n(O),"default-time":"23:59:59",clearable:"",to:"body",valueFormat:n(V),placeholder:n(C),value:A.value,"is-date-disabled":j,"onUpdate:value":a[2]||(a[2]=e=>U(e,"end"))},null,8,["type","valueFormat","placeholder","value"])])):i("v-if",!0)],64))}});export{T as default};
@@ -1,3 +1,4 @@
1
+ import { SelectOption } from 'naive-ui';
1
2
  declare const _default: import("vue").DefineComponent<{
2
3
  paramCfg: {
3
4
  type: ObjectConstructor;
@@ -8,7 +9,6 @@ declare const _default: import("vue").DefineComponent<{
8
9
  default: null;
9
10
  };
10
11
  }, {
11
- message: import("naive-ui").MessageApi;
12
12
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
13
13
  paramCfg: {
14
14
  type: ObjectConstructor;
@@ -22,145 +22,27 @@ declare const _default: import("vue").DefineComponent<{
22
22
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
23
23
  }>>;
24
24
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
25
+ $attrs: {
26
+ [x: string]: unknown;
27
+ };
25
28
  emit: (event: "update:modelValue", ...args: any[]) => void;
29
+ selectOptions: import("vue").Ref<any[]>;
26
30
  isLoading: import("vue").Ref<boolean>;
27
31
  filterApiConfig: import("../../../../..").AnyObject;
28
- totalPage: import("vue").Ref<number>;
29
- menuProps: {
30
- class: string;
31
- };
32
- curPage: import("vue").Ref<number>;
33
- fieldTitleList: import("vue").Ref<any>;
34
- selectOptions: import("vue").Ref<any[]>;
35
- keywordVal: import("vue").Ref<any>;
32
+ valueCp: import("vue").WritableComputedRef<any>;
36
33
  optionSetting: import("vue").ComputedRef<any>;
37
34
  isMultiple: import("vue").ComputedRef<boolean>;
38
- dynamicOptionInfos: import("vue").ComputedRef<any>;
39
- isLastPage: import("vue").ComputedRef<boolean>;
40
- valueCp: import("vue").ComputedRef<string | number | any[]>;
41
- setOptionActive: (selectIds: string[]) => void;
42
- handleUpdateSelect: (value: string[] | null) => void;
43
- handleUpdatePage: (page: number) => Promise<void>;
44
- getOptionsData: (keyword: string, curPage: number) => Promise<any>;
35
+ searchOptions: (keyword: string) => Promise<any>;
45
36
  _handleSearch: (query: string) => Promise<void>;
46
37
  handleSearch: (query: string) => Promise<void>;
47
38
  handleInitData: () => Promise<void>;
48
- handleClear: () => Promise<void>;
39
+ renderLabel: (option: SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
40
+ [key: string]: any;
41
+ }>;
49
42
  renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
50
43
  [key: string]: any;
51
44
  }>;
52
45
  NSelect: any;
53
- SelectDynamicOption: import("vue").DefineComponent<{
54
- dynamicOptionInfo: {
55
- type: import("vue").PropType<import("../../../../..").AnyObject>;
56
- default: () => {};
57
- };
58
- fieldTitleList: {
59
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
60
- default: () => never[];
61
- };
62
- optionList: {
63
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
64
- default: () => never[];
65
- };
66
- isMultiple: {
67
- type: BooleanConstructor;
68
- default: boolean;
69
- };
70
- curPage: {
71
- type: NumberConstructor;
72
- default: number;
73
- };
74
- isLastPage: {
75
- type: BooleanConstructor;
76
- default: boolean;
77
- };
78
- }, {
79
- selectMinWidth: number;
80
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
81
- dynamicOptionInfo: {
82
- type: import("vue").PropType<import("../../../../..").AnyObject>;
83
- default: () => {};
84
- };
85
- fieldTitleList: {
86
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
87
- default: () => never[];
88
- };
89
- optionList: {
90
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
91
- default: () => never[];
92
- };
93
- isMultiple: {
94
- type: BooleanConstructor;
95
- default: boolean;
96
- };
97
- curPage: {
98
- type: NumberConstructor;
99
- default: number;
100
- };
101
- isLastPage: {
102
- type: BooleanConstructor;
103
- default: boolean;
104
- };
105
- }>> & {
106
- onUpdateSelect?: ((...args: any[]) => any) | undefined;
107
- onUpdatePage?: ((...args: any[]) => any) | undefined;
108
- }>>;
109
- emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
110
- dragEndWidth: import("vue").Ref<number>;
111
- showKeys: import("vue").ComputedRef<any>;
112
- titleList: import("vue").ComputedRef<string[]>;
113
- handleSelect: (option: any) => void;
114
- searchByPage: (onePage: number) => void;
115
- changeWidth: ({ distance }: any) => void;
116
- saveWidth: () => void;
117
- NEmpty: any;
118
- NButtonGroup: any;
119
- NButton: any;
120
- NIcon: any;
121
- NPopover: any;
122
- vFlexibleResize: {
123
- mounted(el: any, { value }: any): void;
124
- beforeUnmount(el: any): void;
125
- };
126
- ArrowBack: 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<{}>>, {}>;
127
- ArrowForward: 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<{}>>, {}>;
128
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
129
- dynamicOptionInfo: {
130
- type: import("vue").PropType<import("../../../../..").AnyObject>;
131
- default: () => {};
132
- };
133
- fieldTitleList: {
134
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
135
- default: () => never[];
136
- };
137
- optionList: {
138
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
139
- default: () => never[];
140
- };
141
- isMultiple: {
142
- type: BooleanConstructor;
143
- default: boolean;
144
- };
145
- curPage: {
146
- type: NumberConstructor;
147
- default: number;
148
- };
149
- isLastPage: {
150
- type: BooleanConstructor;
151
- default: boolean;
152
- };
153
- }>> & {
154
- onUpdateSelect?: ((...args: any[]) => any) | undefined;
155
- onUpdatePage?: ((...args: any[]) => any) | undefined;
156
- }, {
157
- dynamicOptionInfo: import("../../../../..").AnyObject;
158
- fieldTitleList: import("../../../../..").AnyObject[];
159
- optionList: import("../../../../..").AnyObject[];
160
- isMultiple: boolean;
161
- curPage: number;
162
- isLastPage: boolean;
163
- }>;
164
46
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
165
47
  paramCfg: {
166
48
  type: ObjectConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as a,inject as l,computed as t,openBlock as n,createBlock as o,unref as u,isRef as i,withModifiers as r,withCtx as s,createVNode as c,h as p}from"vue";import{useMessage as d,NSelect as v,NTag as m}from"naive-ui";import{WidgetOptionEnums as f}from"../../../types/enums.js";import{useDebounceFn as y}from"@vueuse/core";import g from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as h}from"../../../constants/index.js";import b from"../../render-widget/components/SelectDynamicOption/index.vue.js";var w=e({__name:"SelectDynamic",props:{paramCfg:{type:Object,default:null},modelValue:{type:[Array,String,Number],default:null}},emits:["update:modelValue"],setup(e,{emit:w}){const S=e,V=d(),{handleGetConfigApi:O}=g(),C=a(!1),L=l(h),x=a(0),A={class:"select-dynamic-popover"},P=a(1),j=a(),I=a([]),k=a(),T=t((()=>{var e;return null==(e=S.paramCfg)?void 0:e.optionSetting})),K=t((()=>T.value===f.MULTIPLE)),M=t((()=>{const{dynamicOptionInfo:e={}}=S.paramCfg.optionInfo;return e})),U=t((()=>x.value>0&&P.value>=x.value)),D=t((()=>{var e;if(Array.isArray(S.modelValue)&&S.modelValue.length>0){const e=S.modelValue;if(N(e),!K.value&&1==e.length){const a=I.value.find((a=>a.value===e[0]));return JSON.stringify(a)}return I.value.filter((a=>e.includes(a.value)))}return N([]),null!=(e=S.modelValue)?e:null}));function N(e){I.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function _(e){w("update:modelValue",e)}async function E(e){P.value=e,await J(k.value,P.value)}async function J(e,a){try{if(Object.keys(M.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:n,filterKeys:o,showKeys:u,valueKey:i}=M.value;let r={wordbookId:t,autograph:l,wordbookType:n,fieldKeys:o,page:a};o.length>0&&(r[o[0]]=e),C.value=!0;let s=await O(r,"requestDynamicSelect",{},L);if(s){const{fieldList:e=[],rows:a=[],total:l=0}=s.map,t=a.map((e=>({...e,label:e[u[0]],value:e[i]})));return j.value=null!=e?e:[],I.value=null!=t?t:[],x.value=l,t}}}catch(e){V.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{C.value=!1}}const q=y((async e=>{await async function(e){k.value=e.trim(),P.value=1,await J(k.value,P.value)}(e)}),300);async function G(){Object.keys(M.value).length>0&&L&&await J("",P.value)}async function $(){w("update:modelValue",null),await G()}function z({option:e,handleClose:a}){if(K.value){const l=e.value;return p(m,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(S.modelValue)&&S.modelValue.length>0){const e=S.modelValue,a=e.indexOf(l.value);if(a>-1){const l=e.splice(0,a);w("update:modelValue",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 G(),(e,a)=>(n(),o(u(v),{id:"select-dynamic-popover",style:{width:"200px"},value:u(D),"onUpdate:value":a[0]||(a[0]=e=>i(D)?D.value=e:null),remote:"",clearable:"",filterable:"",maxTagCount:"responsive",loading:C.value,multiple:u(K),menuProps:A,"render-tag":z,onSearch:u(q),onClear:$,onClick:a[1]||(a[1]=r((()=>{}),["stop"]))},{empty:s((()=>[c(b,{dynamicOptionInfo:u(M),fieldTitleList:j.value,optionList:I.value,isMultiple:u(K),curPage:P.value,isLastPage:u(U),onUpdateSelect:_,onUpdatePage:E},null,8,["dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage"])])),_:1},8,["value","loading","multiple","onSearch"]))}});export{w as default};
1
+ import{defineComponent as e,useAttrs as a,ref as t,inject as o,computed as n,openBlock as l,createBlock as i,unref as r,isRef as s,h as u}from"vue";import{NSelect as p,NTag as c}from"naive-ui";import{WidgetOptionEnums as d}from"../../../types/enums.js";import{useDebounceFn as m}from"@vueuse/core";import f from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as y}from"../../../constants/index.js";var g=e({__name:"SelectDynamic",props:{paramCfg:{type:Object,default:null},modelValue:{type:[Array,String,Number],default:null}},emits:["update:modelValue"],setup(e,{emit:g}){const v=e,{handleGetConfigApi:b}=f(),h=a(),w=t([]),C=t(!1),I=o(y),S=n({set(e){g("update:modelValue",e)},get:()=>v.modelValue}),x=n((()=>{var e;return null==(e=v.paramCfg)?void 0:e.optionSetting})),j=n((()=>x.value===d.MULTIPLE));async function K(e){try{const{dynamicOptionInfo:a}=v.paramCfg.optionInfo;if(a){const{autograph:t,dataSourceId:o,dataSourceType:n,filterKeys:l,showKeys:i,valueKey:r}=a;let s={wordbookId:o,autograph:t,wordbookType:n,fieldKeys:l,page:1};l.length>0&&(s[l[0]]=e),C.value=!0;let u=await b(s,"requestDynamicSelect",{},I);if(u){const{fieldList:e=[],rows:a=[]}=u,t=a.map((e=>({...e,label:e[i[0]],value:e[r]})));return w.value=t,t}}}catch(e){console.log(e)}finally{C.value=!1}}const O=m((async e=>{await async function(e){const{manualMapping:a}=h;if(!a){const a=e.trim();await K(a)}}(e)}),300);async function k(){const{dynamicOptionInfo:e}=v.paramCfg.optionInfo;Object.keys(e).length>0&&I&&await K("")}function T(e){const{dynamicOptionInfo:a}=v.paramCfg.optionInfo,{showKeys:t=[]}=a;return a&&t.length>0?u("div",{class:"select-widget-dynamic-option"},t.map((a=>u("span",{class:"select-widget-dynamic-item"},e[a])))):u("div",e.label)}function V({option:e,handleClose:a}){return j.value?u(c,{style:{padding:"0 8px"},closable:!0,onClose:e=>{e.stopPropagation(),a()}},{default:()=>u("div",e.label)}):u("div",e.label)}return k(),(e,a)=>(l(),i(r(p),{to:"body",value:r(S),"onUpdate:value":a[0]||(a[0]=e=>s(S)?S.value=e:null),loading:C.value,options:w.value,remote:!0,"render-label":T,"render-tag":V,multiple:r(j),clearable:"",filterable:"",maxTagCount:"responsive",style:{width:"200px"},onSearch:r(O),onClear:k},null,8,["value","loading","options","multiple","onSearch"]))}});export{g as default};
@@ -10,7 +10,6 @@ declare const _default: import("vue").DefineComponent<{
10
10
  };
11
11
  }, {
12
12
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
13
- message: import("naive-ui").MessageApi;
14
13
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
15
14
  paramCfg: {
16
15
  type: ObjectConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,inject as t,computed as a,openBlock as o,createBlock as u,unref as s,isRef as r}from"vue";import{useMessage as i,NSelect as n}from"naive-ui";import p from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as m}from"../../../constants/index.js";var f=e({__name:"SelectLabel",props:{paramCfg:{type:Object,default:null},modelValue:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:f}){const c=e,{handleGetConfigApi:d}=p(),h=i(),v=l([]),b=t(m),y=a({set(e){const l=e?e.join("|#|"):e;f("update:modelValue",l)},get:()=>c.modelValue?c.modelValue.split("|#|"):[]}),x=a((()=>{if(v.value&&v.value.length>0){let e=[],l=[];return v.value.forEach((t=>{t.labelList.forEach((t=>{e.includes(t.labelShowText)||(e.push(t.labelShowText),l.push({label:t.labelShowText,value:t.labelShowText}))}))})),l}return[]}));return(async()=>{try{const{defaultValue:e={}}=c.paramCfg._rawData,{classifyStr:l=""}=e;let t=await d({classifyStr:l},"requestListByClassify",{},b);if(t){const{list:e=[]}=t;v.value=e}}catch(e){h.error(`获取标签数据请求失败:${e}`),console.log(e)}})(),(e,l)=>(o(),u(s(n),{to:"body",multiple:"",clearable:"",filterable:"",maxTagCount:"responsive",value:s(y),"onUpdate:value":l[0]||(l[0]=e=>r(y)?y.value=e:null),options:s(x),style:{width:"200px"}},null,8,["value","options"]))}});export{f as default};
1
+ import{defineComponent as e,ref as l,inject as t,computed as a,openBlock as o,createBlock as u,unref as s,isRef as i}from"vue";import{NSelect as n}from"naive-ui";import r from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as p}from"../../../constants/index.js";var m=e({__name:"SelectLabel",props:{paramCfg:{type:Object,default:null},modelValue:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:m}){const f=e,{handleGetConfigApi:d}=r(),c=l([]),h=t(p),v=a({set(e){const l=e?e.join("|#|"):e;m("update:modelValue",l)},get:()=>f.modelValue?f.modelValue.split("|#|"):[]}),b=a((()=>{if(c.value&&c.value.length>0){let e=[],l=[];return c.value.forEach((t=>{t.labelList.forEach((t=>{e.includes(t.labelShowText)||(e.push(t.labelShowText),l.push({label:t.labelShowText,value:t.labelShowText}))}))})),l}return[]}));return(async()=>{try{const{defaultValue:e={}}=f.paramCfg._rawData,{classifyStr:l=""}=e;let t=await d({classifyStr:l},"requestListByClassify",{},h);if(t){const{data:e}=t,{list:l=[]}=e;c.value=l}}catch(e){console.log(e)}})(),(e,l)=>(o(),u(s(n),{to:"body",multiple:"",clearable:"",filterable:"",maxTagCount:"responsive",value:s(v),"onUpdate:value":l[0]||(l[0]=e=>i(v)?v.value=e:null),options:s(b),style:{width:"200px"}},null,8,["value","options"]))}});export{m as default};
@@ -1,7 +1,4 @@
1
1
  declare const Date: import("vue").DefineComponent<{
2
- componentCfg: {
3
- type: ObjectConstructor;
4
- };
5
2
  paramCfg: {
6
3
  type: ObjectConstructor;
7
4
  default: null;
@@ -16,9 +13,6 @@ declare const Date: import("vue").DefineComponent<{
16
13
  };
17
14
  }, {
18
15
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
19
- componentCfg: {
20
- type: ObjectConstructor;
21
- };
22
16
  paramCfg: {
23
17
  type: ObjectConstructor;
24
18
  default: null;
@@ -41,17 +35,11 @@ declare const Date: import("vue").DefineComponent<{
41
35
  dateType: any;
42
36
  valueFormat: import("vue").ComputedRef<string>;
43
37
  compType: import("vue").ComputedRef<any>;
44
- optionSetting: import("vue").ComputedRef<any>;
38
+ mappingConfig: import("vue").ComputedRef<any>;
45
39
  widgetOptions: import("vue").ComputedRef<{
46
40
  label: string;
47
41
  value: string;
48
42
  }[]>;
49
- isDateDisabled: (ts: number) => boolean;
50
- timeDisabled: (ts: number) => {
51
- isHourDisabled(hour: number): boolean | undefined;
52
- isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
53
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
54
- };
55
43
  CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
56
44
  updateUnchangedValue: {
57
45
  type: BooleanConstructor;
@@ -123,9 +111,6 @@ declare const Date: import("vue").DefineComponent<{
123
111
  LAST_YEAR: string;
124
112
  };
125
113
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
126
- componentCfg: {
127
- type: ObjectConstructor;
128
- };
129
114
  paramCfg: {
130
115
  type: ObjectConstructor;
131
116
  default: null;
@@ -277,7 +262,6 @@ declare const SelectDynamic: import("vue").DefineComponent<{
277
262
  default: null;
278
263
  };
279
264
  }, {
280
- message: import("naive-ui").MessageApi;
281
265
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
282
266
  paramCfg: {
283
267
  type: ObjectConstructor;
@@ -291,145 +275,27 @@ declare const SelectDynamic: import("vue").DefineComponent<{
291
275
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
292
276
  }>>;
293
277
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
278
+ $attrs: {
279
+ [x: string]: unknown;
280
+ };
294
281
  emit: (event: "update:modelValue", ...args: any[]) => void;
282
+ selectOptions: import("vue").Ref<any[]>;
295
283
  isLoading: import("vue").Ref<boolean>;
296
284
  filterApiConfig: import("../../../../..").AnyObject;
297
- totalPage: import("vue").Ref<number>;
298
- menuProps: {
299
- class: string;
300
- };
301
- curPage: import("vue").Ref<number>;
302
- fieldTitleList: import("vue").Ref<any>;
303
- selectOptions: import("vue").Ref<any[]>;
304
- keywordVal: import("vue").Ref<any>;
285
+ valueCp: import("vue").WritableComputedRef<any>;
305
286
  optionSetting: import("vue").ComputedRef<any>;
306
287
  isMultiple: import("vue").ComputedRef<boolean>;
307
- dynamicOptionInfos: import("vue").ComputedRef<any>;
308
- isLastPage: import("vue").ComputedRef<boolean>;
309
- valueCp: import("vue").ComputedRef<string | number | any[]>;
310
- setOptionActive: (selectIds: string[]) => void;
311
- handleUpdateSelect: (value: string[] | null) => void;
312
- handleUpdatePage: (page: number) => Promise<void>;
313
- getOptionsData: (keyword: string, curPage: number) => Promise<any>;
288
+ searchOptions: (keyword: string) => Promise<any>;
314
289
  _handleSearch: (query: string) => Promise<void>;
315
290
  handleSearch: (query: string) => Promise<void>;
316
291
  handleInitData: () => Promise<void>;
317
- handleClear: () => Promise<void>;
292
+ renderLabel: (option: import("naive-ui").SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
293
+ [key: string]: any;
294
+ }>;
318
295
  renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
319
296
  [key: string]: any;
320
297
  }>;
321
298
  NSelect: any;
322
- SelectDynamicOption: import("vue").DefineComponent<{
323
- dynamicOptionInfo: {
324
- type: import("vue").PropType<import("../../../../..").AnyObject>;
325
- default: () => {};
326
- };
327
- fieldTitleList: {
328
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
329
- default: () => never[];
330
- };
331
- optionList: {
332
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
333
- default: () => never[];
334
- };
335
- isMultiple: {
336
- type: BooleanConstructor;
337
- default: boolean;
338
- };
339
- curPage: {
340
- type: NumberConstructor;
341
- default: number;
342
- };
343
- isLastPage: {
344
- type: BooleanConstructor;
345
- default: boolean;
346
- };
347
- }, {
348
- selectMinWidth: number;
349
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
350
- dynamicOptionInfo: {
351
- type: import("vue").PropType<import("../../../../..").AnyObject>;
352
- default: () => {};
353
- };
354
- fieldTitleList: {
355
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
356
- default: () => never[];
357
- };
358
- optionList: {
359
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
360
- default: () => never[];
361
- };
362
- isMultiple: {
363
- type: BooleanConstructor;
364
- default: boolean;
365
- };
366
- curPage: {
367
- type: NumberConstructor;
368
- default: number;
369
- };
370
- isLastPage: {
371
- type: BooleanConstructor;
372
- default: boolean;
373
- };
374
- }>> & {
375
- onUpdateSelect?: ((...args: any[]) => any) | undefined;
376
- onUpdatePage?: ((...args: any[]) => any) | undefined;
377
- }>>;
378
- emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
379
- dragEndWidth: import("vue").Ref<number>;
380
- showKeys: import("vue").ComputedRef<any>;
381
- titleList: import("vue").ComputedRef<string[]>;
382
- handleSelect: (option: any) => void;
383
- searchByPage: (onePage: number) => void;
384
- changeWidth: ({ distance }: any) => void;
385
- saveWidth: () => void;
386
- NEmpty: any;
387
- NButtonGroup: any;
388
- NButton: any;
389
- NIcon: any;
390
- NPopover: any;
391
- vFlexibleResize: {
392
- mounted(el: any, { value }: any): void;
393
- beforeUnmount(el: any): void;
394
- };
395
- ArrowBack: 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<{}>>, {}>;
396
- ArrowForward: 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<{}>>, {}>;
397
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
398
- dynamicOptionInfo: {
399
- type: import("vue").PropType<import("../../../../..").AnyObject>;
400
- default: () => {};
401
- };
402
- fieldTitleList: {
403
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
404
- default: () => never[];
405
- };
406
- optionList: {
407
- type: import("vue").PropType<import("../../../../..").AnyObject[]>;
408
- default: () => never[];
409
- };
410
- isMultiple: {
411
- type: BooleanConstructor;
412
- default: boolean;
413
- };
414
- curPage: {
415
- type: NumberConstructor;
416
- default: number;
417
- };
418
- isLastPage: {
419
- type: BooleanConstructor;
420
- default: boolean;
421
- };
422
- }>> & {
423
- onUpdateSelect?: ((...args: any[]) => any) | undefined;
424
- onUpdatePage?: ((...args: any[]) => any) | undefined;
425
- }, {
426
- dynamicOptionInfo: import("../../../../..").AnyObject;
427
- fieldTitleList: import("../../../../..").AnyObject[];
428
- optionList: import("../../../../..").AnyObject[];
429
- isMultiple: boolean;
430
- curPage: number;
431
- isLastPage: boolean;
432
- }>;
433
299
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
434
300
  paramCfg: {
435
301
  type: ObjectConstructor;
@@ -535,15 +401,8 @@ declare const DateRange: import("vue").DefineComponent<{
535
401
  valueFormat: import("vue").ComputedRef<string>;
536
402
  dateFormat: import("vue").ComputedRef<string>;
537
403
  compType: import("vue").ComputedRef<any>;
538
- optionSetting: import("vue").ComputedRef<any>;
539
- isPastTime: import("vue").ComputedRef<boolean>;
540
- isFutureTime: import("vue").ComputedRef<boolean>;
541
404
  startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
542
405
  endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
543
- startDefault: import("vue").ComputedRef<string>;
544
- endDefault: import("vue").ComputedRef<string>;
545
- startDateFormat: import("vue").ComputedRef<string | null>;
546
- endDateFormat: import("vue").ComputedRef<string | null>;
547
406
  dateType: any;
548
407
  widgetOptions: import("vue").ComputedRef<{
549
408
  label: string;
@@ -552,19 +411,8 @@ declare const DateRange: import("vue").DefineComponent<{
552
411
  presetValCp: import("vue").WritableComputedRef<string>;
553
412
  handleChange: (val: any, type: "end" | "start") => void;
554
413
  isStartDateDisabled: (ts: number) => boolean;
555
- timeStartDisabled: (ts: number) => {
556
- isHourDisabled(hour: number): boolean | 0;
557
- isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
558
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
559
- };
560
414
  isEndDateDisabled: (ts: number) => boolean;
561
- timeEndDisabled: (ts: number) => {
562
- isHourDisabled(hour: number): boolean | 0;
563
- isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
564
- isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
565
- };
566
415
  NSelect: any;
567
- NPopover: any;
568
416
  CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
569
417
  updateUnchangedValue: {
570
418
  type: BooleanConstructor;
@@ -666,7 +514,6 @@ declare const SelectLabel: import("vue").DefineComponent<{
666
514
  };
667
515
  }, {
668
516
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
669
- message: import("naive-ui").MessageApi;
670
517
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
671
518
  paramCfg: {
672
519
  type: ObjectConstructor;