cnhis-design-vue 3.1.42-release.0 → 3.1.42-release.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/README.md +87 -87
  2. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  3. package/es/components/annotation-edit/src/type.d.ts +3 -0
  4. package/es/components/annotation-edit/style/index.css +1 -1
  5. package/es/components/base-search/index.d.ts +271 -0
  6. package/es/components/base-search/index.js +1 -0
  7. package/es/components/{table-filter/src/base-search-com/BaseSearch.vue.d.ts → base-search/src/index.vue.d.ts} +26 -113
  8. package/es/components/base-search/src/index.vue.js +1 -0
  9. package/es/components/base-search/style/iconfont.ttf +0 -0
  10. package/es/components/base-search/style/index.css +1 -0
  11. package/es/components/big-table/style/index.css +1 -1
  12. package/es/components/button-print/index.d.ts +3 -2
  13. package/es/components/button-print/src/ButtonPrint.vue.d.ts +3 -2
  14. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  15. package/es/components/button-print/src/api.d.ts +3 -0
  16. package/es/components/button-print/src/api.js +1 -0
  17. package/es/components/button-print/src/utils/print.js +1 -1
  18. package/es/components/classification/index.d.ts +995 -0
  19. package/es/components/classification/index.js +1 -0
  20. package/es/components/{table-filter → classification}/src/components/search-filter/index.vue.d.ts +10 -93
  21. package/es/components/classification/src/components/search-filter/index.vue.js +1 -0
  22. package/es/components/{table-filter → classification}/src/components/set-classification/index.vue.d.ts +5 -130
  23. package/es/components/classification/src/components/set-classification/index.vue.js +1 -0
  24. package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.d.ts +0 -42
  25. package/es/components/classification/src/components/table-modal/index.vue.js +1 -0
  26. package/es/components/classification/src/const/index.d.ts +2 -0
  27. package/es/components/classification/src/const/index.js +1 -0
  28. package/es/components/{table-filter/src/classification/Classification-com.vue.d.ts → classification/src/index.vue.d.ts} +57 -291
  29. package/es/components/classification/src/index.vue.js +1 -0
  30. package/es/components/classification/style/iconfont.ttf +0 -0
  31. package/es/components/classification/style/index.css +1 -0
  32. package/es/components/config-provider/index.d.ts +14 -0
  33. package/es/components/config-provider/index.js +1 -0
  34. package/es/components/config-provider/src/ConfigProvider.d.ts +14 -0
  35. package/es/components/config-provider/src/ConfigProvider.js +1 -0
  36. package/es/components/config-provider/src/interface.d.ts +19 -0
  37. package/es/components/config-provider/src/interface.js +1 -0
  38. package/es/components/config-provider/src/utils/index.d.ts +2 -0
  39. package/es/components/config-provider/src/utils/index.js +1 -0
  40. package/es/components/date-picker/index.d.ts +12 -0
  41. package/es/components/date-picker/index.js +1 -0
  42. package/es/components/date-picker/src/DatePicker.vue.d.ts +12 -0
  43. package/es/components/date-picker/src/DatePicker.vue.js +1 -0
  44. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  45. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  46. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  47. package/es/components/fabric-chart/src/hooks/useRight.js +1 -1
  48. package/es/components/field-set/index.d.ts +82 -13
  49. package/es/components/field-set/src/FieldSet.vue.d.ts +78 -27
  50. package/es/components/field-set/src/types/index.d.ts +18 -0
  51. package/es/components/field-set/src/types/index.js +1 -0
  52. package/es/components/form-config/index.d.ts +36 -27
  53. package/es/components/form-config/src/FormConfig.vue.d.ts +36 -27
  54. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  55. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +11 -11
  56. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +14 -14
  57. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +9 -1
  58. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
  59. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +33 -6
  60. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  61. package/es/components/form-config/style/index.css +1 -1
  62. package/es/components/form-render/index.d.ts +11 -11
  63. package/es/components/form-render/index.js +1 -1
  64. package/es/components/form-render/src/FormRender.vue.d.ts +11 -11
  65. package/es/components/form-render/src/FormRender.vue.js +1 -1
  66. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +11 -11
  67. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  68. package/es/components/form-render/src/components/renderer/date.js +1 -1
  69. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  70. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  71. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  72. package/es/components/form-render/src/components/renderer/select.js +1 -1
  73. package/es/components/form-render/src/hooks/index.d.ts +1 -1
  74. package/es/components/form-render/src/hooks/index.js +1 -1
  75. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  76. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  77. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
  78. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
  79. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  80. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -2
  81. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  82. package/es/components/form-render/src/types/index.d.ts +2 -1
  83. package/es/components/form-render/style/index.css +1 -1
  84. package/es/components/iho-table/index.d.ts +1526 -0
  85. package/es/components/iho-table/src/IhoTable.vue.d.ts +1526 -0
  86. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  87. package/es/components/iho-table/src/constants/index.d.ts +6 -5
  88. package/es/components/iho-table/src/constants/index.js +1 -1
  89. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
  90. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  91. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -1
  92. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
  93. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  94. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  95. package/es/components/iho-table/src/plugins/index.js +1 -1
  96. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  97. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +12 -7
  98. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  99. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  100. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  101. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
  102. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  103. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +12 -1
  104. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  105. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
  106. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
  107. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
  108. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -0
  109. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -0
  110. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  111. package/es/components/iho-table/src/types/index.d.ts +2 -0
  112. package/es/components/iho-table/src/types/pluginType.d.ts +3 -1
  113. package/es/components/iho-table/src/utils/index.d.ts +2 -0
  114. package/es/components/iho-table/src/utils/index.js +1 -1
  115. package/es/components/iho-table/style/index.css +1 -1
  116. package/es/components/index.css +1 -1
  117. package/es/components/index.d.ts +9 -2
  118. package/es/components/index.js +1 -1
  119. package/es/components/info-header/index.d.ts +3800 -157
  120. package/es/components/info-header/src/InfoHeader.vue.d.ts +3801 -157
  121. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  122. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1842 -0
  123. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -0
  124. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1972 -0
  125. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -0
  126. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
  127. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2669 -139
  128. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  129. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +745 -0
  130. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  131. package/es/components/info-header/src/constants/index.d.ts +4 -0
  132. package/es/components/info-header/src/constants/index.js +1 -0
  133. package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +4 -0
  134. package/es/components/info-header/src/hooks/useThemeOverrides.js +1 -0
  135. package/es/components/info-header/src/types/index.d.ts +17 -3
  136. package/es/components/info-header/style/index.css +1 -1
  137. package/es/components/keyboard/index.d.ts +3 -1
  138. package/es/components/keyboard/src/Keyboard.vue.d.ts +3 -1
  139. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  140. package/es/components/keyboard/src/constants/index.d.ts +2 -0
  141. package/es/components/keyboard/src/constants/index.js +1 -0
  142. package/es/components/keyboard/style/index.css +1 -1
  143. package/es/components/quick-search/index.d.ts +713 -0
  144. package/es/components/quick-search/index.js +1 -0
  145. package/es/components/{table-filter/src/quick-search/QuickSearch.vue.d.ts → quick-search/src/index.vue.d.ts} +31 -120
  146. package/es/components/quick-search/src/index.vue.js +1 -0
  147. package/es/components/quick-search/style/index.css +1 -0
  148. package/es/components/recommend-search/index.d.ts +2 -2
  149. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
  150. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  151. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  152. package/es/components/scale-view/src/components/formitem/sign-com.d.ts +1 -1
  153. package/es/components/scale-view/src/hooks/use-component.d.ts +69 -116
  154. package/es/components/search-cascader/index.d.ts +2 -2
  155. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +2 -2
  156. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  157. package/es/components/select-label/index.d.ts +70 -169
  158. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -53
  159. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  160. package/es/components/select-label/src/SelectLabel.vue.d.ts +70 -116
  161. package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
  162. package/es/components/select-label/src/components/label-classify.vue.js +1 -1
  163. package/es/components/select-label/style/iconfont.ttf +0 -0
  164. package/es/components/select-label/style/index.css +1 -1
  165. package/es/components/shortcut-setter/index.d.ts +12 -12
  166. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -12
  167. package/es/components/steps-wheel/index.d.ts +1 -0
  168. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -0
  169. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  170. package/es/components/steps-wheel/src/constants/index.d.ts +2 -0
  171. package/es/components/steps-wheel/src/constants/index.js +1 -0
  172. package/es/components/steps-wheel/style/index.css +1 -1
  173. package/es/components/table-filter/index.d.ts +0 -2386
  174. package/es/components/table-filter/index.js +1 -1
  175. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -0
  176. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
  177. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -42
  178. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  179. package/es/components/table-filter/src/components/render-widget/enums.d.ts +0 -8
  180. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  181. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +2 -1
  182. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  183. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  184. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +4 -1
  185. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  186. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -54
  187. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  188. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  189. package/es/components/table-filter/src/tool/baseOptions.d.ts +8 -0
  190. package/es/components/table-filter/src/tool/baseOptions.js +1 -0
  191. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
  192. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  193. package/es/components/table-filter/src/tool/transformData.d.ts +1 -37
  194. package/es/components/table-filter/src/tool/transformData.js +1 -1
  195. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  196. package/es/components/table-filter/src/types/enums.js +1 -1
  197. package/es/components/table-filter/src/types/index.d.ts +13 -243
  198. package/es/components/time-picker/index.d.ts +12 -0
  199. package/es/components/time-picker/index.js +1 -0
  200. package/es/components/time-picker/src/TimePicker.vue.d.ts +12 -0
  201. package/es/components/time-picker/src/TimePicker.vue.js +1 -0
  202. package/es/env.d.ts +24 -24
  203. package/es/shared/hooks/index.d.ts +3 -0
  204. package/es/shared/hooks/index.js +1 -0
  205. package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
  206. package/es/shared/hooks/useAsyncQueue.js +1 -0
  207. package/es/shared/hooks/useDateTime.d.ts +6 -0
  208. package/es/shared/hooks/useDateTime.js +1 -0
  209. package/es/shared/hooks/useTheme.d.ts +3 -0
  210. package/es/shared/hooks/useTheme.js +1 -0
  211. package/es/shared/utils/index.d.ts +1 -0
  212. package/es/shared/utils/index.js +1 -1
  213. package/package.json +2 -2
  214. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  215. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  216. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  217. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  218. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  219. package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
  220. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.d.ts +0 -2
  221. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.js +0 -1
  222. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
  223. package/es/components/table-filter/src/classification/Classification-com.vue.js +0 -1
  224. package/es/components/table-filter/src/components/search-filter/index.vue.js +0 -1
  225. package/es/components/table-filter/src/components/set-classification/index.vue.js +0 -1
  226. package/es/components/table-filter/src/components/table-modal/index.vue.js +0 -1
  227. package/es/components/table-filter/src/const/index.d.ts +0 -5
  228. package/es/components/table-filter/src/const/index.js +0 -1
  229. package/es/components/table-filter/src/directive/resize.d.ts +0 -4
  230. package/es/components/table-filter/src/directive/resize.js +0 -1
  231. package/es/components/table-filter/src/hooks/export.d.ts +0 -1
  232. package/es/components/table-filter/src/hooks/export.js +0 -1
  233. package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +0 -8
  234. package/es/components/table-filter/src/hooks/useTableSearchCon.js +0 -1
  235. package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +0 -12
  236. package/es/components/table-filter/src/hooks/useWordBookutils.js +0 -1
  237. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
  238. package/es/components/table-filter/src/tool/getWidgetType.d.ts +0 -1
  239. package/es/components/table-filter/src/tool/getWidgetType.js +0 -1
  240. package/es/components/table-filter/src/tool/options.d.ts +0 -18
  241. package/es/components/table-filter/src/tool/options.js +0 -1
  242. package/es/components/table-filter/src/tool/resizeSensor.d.ts +0 -16
  243. package/es/components/table-filter/src/tool/resizeSensor.js +0 -1
  244. package/es/components/table-filter/src/tool/time-domain.d.ts +0 -39
  245. package/es/components/table-filter/src/tool/time-domain.js +0 -1
  246. package/es/components/table-filter/src/tool/utils.d.ts +0 -4
  247. package/es/components/table-filter/src/tool/utils.js +0 -1
  248. package/es/components/table-filter/style/index.css +0 -1
  249. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  250. package/es/shared/utils/colorLog.d.ts +0 -31
  251. package/es/shared/utils/colorLog.js +0 -1
  252. package/es/shared/utils/tapable/index.d.ts +0 -139
  253. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.d.ts +0 -0
  254. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
@@ -1 +0,0 @@
1
- import{uuidGenerator as s}from"../../../../shared/utils/index.js";import{cloneDeep as e,isFunction as t}from"lodash-es";import{unref as r}from"vue";import"../../index.js";import{useCommonLog as i}from"./useCommonLog.js";import{useFormRequest as o}from"./useFormRequest.js";class a{constructor(s,e,t){this.item=s,this.key=e,this.state=0,this.callback=t}}class c{constructor(s){this._list=s?Array.from(s):[]}enqueue(s){this._list.push(s)}dequeue(){return this._list.shift()}}class n{constructor({name:s,processor:e,getKey:t,parallelism:r}){this._queued=new c,this._entries=new Map,this._activeTasks=0,this._processingLock=!1,this._stopped=!1,this.name=s,this.processor=e,this.getKey=t,this.parallelism=r||100}add(s,t){if(this._stopped)return t(new Error("Queue was stopped"));const r=this.getKey(s);if(this._entries.has(r)){const s=this._entries.get(r);return void(1===s.state?setTimeout((()=>{t&&t(e(s.error),e(s.result))})):s.callbacks?s.callbacks.push(t):s.callbacks=[t])}const i=new a(s,r,t);this._entries.set(r,i),this._queued.enqueue(i),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}addAsync(s){return new Promise(((e,t)=>{this.add(s,((s,r)=>{s&&t(s),e(r)}))}))}_ensureProcessing(){for(;this._activeTasks<this.parallelism;){const s=this._queued.dequeue();if(!s)break;this._activeTasks++,s.state=0,this._startProcess(s)}this._processingLock=!1}_startProcess(s){this.processor(s.item,((e,t)=>{e?this._handlerResult(s,e):this._handlerResult(s,e,t)}),(()=>this._entries.delete(s.key)))}_handlerResult(s,t,r){const i=s.callback;s.state=1,s.callback=void 0,s.result=e(r),s.error=e(t),this._activeTasks--,i&&i(t,r),s.callbacks&&s.callbacks.forEach((s=>s(t,r))),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}}function h(e){const{getHttpInstance:a}=o();return{create:function(o=3,c){return new n({name:"FormRenderAsyncQueue",parallelism:o,async processor({key:s,method:o="post",cache:n,params:h,url:l},u,p){var m,d;const _=null!=(m=r(e))?m:a();if(!_)return i().invalidHttpInstanceLog(),u(),void p();try{c&&t(c.beforeRequest)&&(h=null!=(d=c.beforeRequest(s,h))?d:{});let e=await _[o](l,h);c&&t(c.afterRequest)&&(e=c.afterRequest(s,e)),u(void 0,Array.isArray(e)?e:[]),!n&&p()}catch(s){u(new Error(`Request error => ${s}`)),p()}},getKey:({url:e,method:t="post",cache:r,params:i})=>r?e+t+JSON.stringify(i||{}):s()})}}}export{n as AsyncQueue,h as useAsyncQueue};
@@ -1,2 +0,0 @@
1
- export declare function getFormatTime(time: string, valueFormat: string): string | undefined;
2
- export declare function isValidTime(time: string, valueFormat: string): boolean;
@@ -1 +0,0 @@
1
- function t(t,d){if(!t)return"";return d.includes(":")?((t,d)=>{const n=new RegExp("\\w{1,"+d+"}","g"),e=t.match(n);return null==e?void 0:e.join(":")})(t,2):t}function d(t,d){if(/^(0\d{1}|1\d{1}|2[0-3]):([0-5]\d{1})$/.test(t)&&"HH:mm"===d||/^(0\d{1}|1\d{1}):([0-5]\d{1})$/.test(t)&&"hh:mm"===d||/^(0\d{1}|1\d{1}|2[0-3]):[0-5]\d{1}:([0-5]\d{1})$/.test(t)&&"HH:mm:ss"===d||/^(0\d{1}|1\d{1}):[0-5]\d{1}:([0-5]\d{1})$/.test(t)&&"hh:mm:ss"===d){const d=t.split(":");return 60*+d[0]*60+60*+d[1]+(d[3]?+d[3]:0)<86400}return!1}export{t as getFormatTime,d as isValidTime};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,computed as i,watch as a,openBlock as l,createElementBlock as n,createElementVNode as r,withDirectives as o,renderSlot as u,unref as s,createVNode as c,withCtx as f,createTextVNode as d,toDisplayString as m,createCommentVNode as v,Fragment as h,renderList as p}from"vue";import g from"xe-utils";import"moment";import y from"../directive/resize.js";import S from"../components/render-widget/index.vue.js";import x from"../hooks/useMixins.js";import b from"../hooks/useAdvanced.js";import k from"../hooks/useRenderWidget.js";import{NButton as j,NIcon as I}from"naive-ui";import{Search as _}from"@vicons/ionicons5";import C from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import{cloneDeep as R}from"lodash-es";import q from"../../../../_virtual/plugin-vue_export-helper.js";const V={class:"base-search-block"},A={class:"base-container"},O={class:"base-ul"},Q={key:1,class:"baseli"},z={key:2,class:"baseli"};var F=q(e({__name:"BaseSearch",props:{showSettings:{type:Object,default:()=>({})},searchFieldList:{type:Array,default:()=>[]},classificationIndex:{type:Number},qqConObjCount:{type:Number,default:0}},emits:["foldQuickSearch","onSave","handleReset","outSearchInit","getParam"],setup(e,{emit:q}){const F=e,{outQuickSearchFn:L}=x(),{isRender:W,getRenderSearchConObj:w,isExistDefValByRenderWidget:B,resetRenderWidgetValue:D}=k(),{transformData:E}=b(),N=t(null),P=t(null),U=t(0),$=t(0),M=t(0),T=t(0),G=t(!1),H=t(!1),J=t([]),K=i((()=>{var e;return e="hideQuickSearch",0==F.showSettings[e]}));function X(e){var t;if(H.value)return;let i=N.value;if(!i)return;H.value=!0,U.value=i.clientWidth,$.value=2===F.classificationIndex?160:0,M.value=(null==(t=P.value)?void 0:t.clientWidth)||0;let a=$.value+M.value,l=U.value-a;T.value=l,e.type&&"resize"===e.type&&function(){if(J.value.length>0)return;H.value=!1}()}function Y(){g.debounce(X({type:"resize"}),300)}function Z(){q("foldQuickSearch",!0)}function ee(e={}){!function(e,t=!1,i={}){let a=[];J.value.length>0&&(a=R(J.value));q("onSave",e,t,a,i)}(te()||[],!0,e)}function te(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let i=0;i<e.length;i++){let a=e[i];const l=w(a);l&&t.push(l)}return t.filter((e=>e.value))}(J.value)}function ie(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{D(e)})),L.handlerInitSearchItem(e)}(J.value),q("handleReset",{targetType:"outQuickSearchReset"})}return a((()=>F.searchFieldList),(e=>{e&&e.length>0&&function(e={}){J.value=[];let t=R(E(F.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));J.value=t,L.handlerInitSearchItem(J.value),J.value.some((e=>W(e)?B(e):!!e.explicitDefaultVal))&&(q("outSearchInit"),"reset"!=(null==e?void 0:e.type)&&ee({type:"outSearchInit"}))}()}),{immediate:!0,deep:!0}),a((()=>J),(()=>{const e=te()||[];q("getParam",e),G.value=!!e.length}),{immediate:!0,deep:!0}),(t,i)=>(l(),n("div",V,[r("div",A,[o((l(),n("div",{class:"bease-left",ref_key:"baseLeft",ref:N},[r("ul",O,[u(t.$slots,"classification"),s(K)?(l(),n("li",{key:0,class:"baseli",ref_key:"quickSearchLi",ref:P},[c(s(j),{class:"search-default",type:"default",onClick:Z},{default:f((()=>[c(s(C),{"icon-class":"anniushaixuan",style:{color:"inherit","margin-right":"6px"}}),d(" 筛选 "+m(e.qqConObjCount?`(${e.qqConObjCount})`:""),1)])),_:1})],512)):v("v-if",!0),v(" start--筛选外显--start "),(l(!0),n(h,null,p(J.value,(e=>(l(),n(h,null,[e.isRender?(l(),n("li",{class:"baseli outQuickSearch-li",key:e._frontId},[c(S,{style:{margin:"0 8px 8px 0"},cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:ee},null,8,["cfg","modelValue","onUpdate:modelValue"])])):v("v-if",!0)],64)))),256)),v(" end--筛选外显--end "),v(" 查询按钮 "),J.value&&J.value.length>0?(l(),n("li",Q,[c(s(j),{type:"primary",onClick:ee,style:{margin:"0 8px 8px 0"}},{default:f((()=>[c(s(I),{component:s(_),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),d(" 查询 ")])),_:1})])):v("v-if",!0),v(" 重置按钮 "),G.value?(l(),n("li",z,[c(s(j),{onClick:ie,style:{margin:"0 8px 8px 0"}},{default:f((()=>[c(s(C),{"icon-class":"xitongtubiaoliebiaocaozuoanniushanchu",style:{"margin-right":"6px"}}),d(" 重置 ")])),_:1})])):v("v-if",!0)])])),[[s(y),Y]])])]))}}),[["__file","BaseSearch.vue"]]);export{F as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,useAttrs as i,ref as n,provide as t,computed as l,onActivated as a,onBeforeMount as s,onMounted as o,nextTick as d,watch as c,openBlock as r,createElementBlock as p,normalizeClass as u,unref as h,normalizeStyle as f,withDirectives as g,createVNode as m,createTextVNode as y,toDisplayString as v,createCommentVNode as C,createElementVNode as k,Fragment as b,renderList as S,createBlock as x,withCtx as _,renderSlot as w}from"vue";import{NIcon as I,NTooltip as O}from"naive-ui";import{Repeat as L,SettingsOutline as T,ChevronDown as M,ChevronForward as N,Checkmark as j,Close as z,ChevronUp as B}from"@vicons/ionicons5";import P from"../components/set-classification/index.vue.js";import A from"../directive/flexibleResize.js";import{root_isShowResetButton as E}from"../const/index.js";import J from"../hooks/useMixins.js";import R from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import F from"../../../../_virtual/plugin-vue_export-helper.js";const D={key:0,class:"header"},W={class:"tree"},$=["onClick"],q={key:0,class:"digital-span"},G=["onClick"],Q={key:0,class:"digital-span"},V=["onClick"],H={class:"child-item-name"},K={key:0,class:"digital-span"},U={key:1,class:"tree-type-footer"},X={class:"selected-num"},Y={key:0,class:"tile-type classify-1"},Z={key:0,class:"header"},ee={class:"right-setting"},ie=["onClick"],ne={key:0,class:"digital-span"},te={class:"parent ellips"},le={class:"children"},ae=["onClick"],se={key:0,class:"digital-span"},oe={key:1,class:"selected-list"},de={class:"selected-num"},ce={key:0,class:"digital-span"},re={key:0,class:"digital-span"},pe={class:"name"},ue={class:"name"},he={key:0,class:"main-wrapper"},fe=["onClick"],ge={key:0,class:"digital-span"},me={class:"tree-footer"},ye=["onClick"],ve=["onClick"],Ce={key:0,class:"digital-span"},ke={key:0,class:"select-type-footer"},be={class:"selected-num"};var Se=F(e({__name:"Classification-com",props:{tableId:{type:String,default:""},conditionSid:{type:Array,default:()=>[]},curClassificationIndex:{type:Number},curClassificationWidth:{type:Number},conditionType:{type:String,default:""},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:0},countCondition:{type:Number,default:0},countTabCondition:{type:Number,default:0},isShowResetButton:{type:Boolean,default:!0},conditionMap:{type:Object,default:()=>{}},filterApiConfig:{type:Object,default:()=>({})},searchFieldList:{type:Array,default:()=>[]}},emits:["changeSearch","setCurTreeData","setClassificationIndex","getClassification","reloadList","getQuickSearchListObj","setConditionMap","setClassifyModal"],setup(e,{emit:F}){const Se=e,{handleGetConfigApi:xe}=J(),_e=i(),we=n(null);let Ie=n(150),Oe=n(!1),Le=n([]),Te=n([]),Me=n([]),Ne=n(2),je=n(""),ze=n({name:"全部数据",sid:"all_data"}),Be=n([]),Pe=n([]),Ae=n(""),Ee=n(!1),Je=n("全部数据");t(E,n(Se.isShowResetButton));let Re=l((()=>0===Ne.value?{marginRight:"8px"}:2===Ne.value?{display:"inline-block"}:{})),Fe=l((()=>{let e=Te.value.filter((e=>-1!==Se.conditionSid.indexOf(e.sid)));if(-1!==Se.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),De=l((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:t}=e;return si(n,t)+i})),We=l((()=>1===Se.countCondition||1===Se.countTabCondition));function $e(e){e.open?e.open=!1:e.open=!0}function qe(e,i,n){if(Je.value=e.name,!e.digital&&1===Se.countCondition)return!1;let t=function(e,i,n){let t=JSON.parse(JSON.stringify(i));if("all_data"===e)t=["all_data"];else if("keyword"===Se.conditionType){let i=t.findIndex((e=>"all_data"===e));-1!==i&&t.splice(i,1);let l=t.findIndex((i=>i===e));-1!==l?(t.splice(l,1),0===t.length&&(t=["all_data"])):(n.children&&n.children.length>0&&(l=t.findIndex((e=>-1!==n.children.findIndex((i=>i.sid===e))))),-1!==l&&t.splice(l,1),t.push(e))}else t=-1!==t.indexOf(e)?["all_data"]:[e];return t}(e.sid,Se.conditionSid,n),l=function(e){let i=[];return Le.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(t);Ke(!1),F("changeSearch","all_data"===e.sid?"all":"",e,n,l)}function Ge(){F("setCurTreeData",Le.value);let e="";if(2===Ne.value)e=0;else{let i=Ne.value;e=++i}Ie.value=150,Qe(e)}async function Qe(e,i){let n={tableId:Se.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await xe(n,"requestSaveListPersonaSetting",{},Se.filterApiConfig)&&F("setClassificationIndex",e)}catch(e){console.log(e)}}function Ve(){Ee.value=!0,Ke(!1)}function He(e){F("setClassifyModal",e),Ee.value=e}function Ke(e){Oe.value=void 0===e?!Oe.value:e}function Ue(e){var i;if((void 0!==e&&"delete"===e.type&&-1!==Se.conditionSid.indexOf(e.item.sid)&&F("changeSearch","all",{name:"全部数据",sid:"all_data",selected:!0}),Se.tableId)&&Object.keys(Se.conditionMap).length>0){Le.value=[];let{displayCategoryList:e=[],conditionList:n=[]}=Se.conditionMap;Me.value=JSON.parse(JSON.stringify(n)),Pe.value=e||[],Te.value=JSON.parse(JSON.stringify(n));const t={name:"全部数据",sid:"all_data"};Te.value.unshift(t);let l=[];0===e.length&&(e=["未分类"]),e.forEach((e=>{let i={name:e,children:[]};n.forEach((n=>{(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid)&&(-1!==Se.conditionSid.indexOf(n.sid)&&(n.selected=!0,i.open=!0),n.isShow&&i.children.push(n))})),i.children.length>0&&l.push(i)})),l.unshift({name:"全部数据",sid:"all_data"}),Le.value=l,0===Ne.value&&(i=!0,Le.value.forEach((e=>{e.children&&e.children.length&&(e.open=i)})))}}async function Xe(e){try{await Ue(e)}catch(e){console.log(e)}}function Ye({distance:e}){const i=Ie.value+e;Ie.value=Math.min(Math.max(i,50),650)}function Ze(){Qe(Ne.value,Ie.value)}async function ei(){await li(Se.tableId),ni()}async function ii(e){await li(Se.tableId),ti(),F("getClassification",e)}function ni(e){ti(e).then((e=>{F("reloadList",e)}))}function ti(e,i={}){if(!Se.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:Se.conditionMap;return new Promise(((i,t)=>{var l,a,s,o,d,c;if(Object.keys(n).length>0){Be.value=n.conditionList||[],Pe.value=n.displayCategoryList||[];let t={conditionList:Be.value,displayCategoryList:Pe.value};F("getQuickSearchListObj",t),Ae.value=n.settingId;const r=Be.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(a=null==(l=_e.tableOptions)?void 0:l.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(o=null==(s=_e.tableOptions)?void 0:s.filterCondition)?void 0:o.name,sid:null==(c=null==(d=_e.tableOptions)?void 0:d.filterCondition)?void 0:c.displayCategory}),i(r)}else i({})}))}async function li(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await xe(i,"requestTableCondiTionList",{},Se.filterApiConfig);return F("setConditionMap",n),Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function ai(e){return 1===Se.countCondition&&(e.digital||0===e.digital)}function si(e,i){return e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{Xe({})})),s((()=>{Xe({})})),o((()=>{document.addEventListener("click",(e=>{d((()=>{let i=e.composedPath&&e.composedPath();we&&i.includes(we.value)||Ke(!1)}))}))})),c((()=>Se.tableId),(e=>{e&&(ni(!0),je.value!==e&&(je.value=e))}),{immediate:!0,deep:!0}),c((()=>Se.curClassificationIndex),(e=>{void 0!==e&&(Ne.value=e)}),{immediate:!0,deep:!0}),c((()=>Se.curClassificationWidth),(e=>{e&&(Ie.value=Number(e)||150)}),{immediate:!0}),(i,n)=>(r(),p("div",{class:u(["classification-block","classificationIndex-"+h(Ne)]),style:f(h(Re))},[0===h(Ne)?g((r(),p("div",{key:0,class:"tree-type classify-0",style:f({width:h(Ie)+"px",paddingBottom:"keyword"===e.conditionType?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),p("div",D,[1!=e.hideConditionChangeBtn?(r(),p("span",{key:0,class:"header-1",onClick:Ge},[m(h(I),{component:h(L),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),p("span",{key:1,class:"header-1",onClick:Ve},[m(h(I),{component:h(T),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])):C("v-if",!0),k("ul",W,[(r(!0),p(b,null,S(h(Le),((i,n)=>(r(),p(b,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),p("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),p(b,{key:1},[k("span",{class:u(["parent",{open:i.open}]),onClick:e=>$e(i)},[k("span",null,[y(v(i.name)+" ",1),ai(i)?(r(),p("span",Q," ("+v(i.digital||0)+") ",1)):C("v-if",!0)]),m(h(I),{component:i.open?h(M):h(N)},null,8,["component"])],10,G),i.open?(r(!0),p(b,{key:0},S(i.children.filter((e=>e.isShow)),((e,n)=>(r(),p("div",{class:"children",key:n},[e.isShow?(r(),x(h(O),{key:0,trigger:"hover",placement:"right"},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected,disabled:!e.digital&&h(We)}]),onClick:n=>qe(e,0,i)},[k("span",H,v(e.name||si(e.isPublic)),1),ai(e)?(r(),p("span",K," ("+v(e.digital||0)+") ",1)):C("v-if",!0),e.selected?(r(),x(h(I),{key:1,component:h(j),size:"20"},null,8,["component"])):C("v-if",!0)],10,V)])),default:_((()=>[k("span",null,v(h(De)(e)),1)])),_:2},1024)):C("v-if",!0)])))),128)):C("v-if",!0)],64)):(r(),p("span",{key:0,class:u(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>qe(i)},[y(v(i.name)+" ",1),ai(i)?(r(),p("span",q," ("+v(i.digital||0)+") ",1)):C("v-if",!0)],10,$))],2)):C("v-if",!0)],64)))),256))]),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),p("div",U,[k("div",X,"已选择"+v(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>qe({sid:"all_data",name:"全部数据",digital:h(ze).digital}))},[m(h(R),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)],4)),[[h(A),{mode:"VR",onMove:Ye,onEnd:Ze}]]):C("v-if",!0),1===h(Ne)?(r(),p(b,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||h(Me).filter((e=>e.isShow)).length>0?(r(),p("div",Y,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),p("div",Z,[k("span",{class:u(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>qe({sid:"all_data",name:"全部数据",digital:h(ze).digital}))},[y(" 全部数据 "),h(ze).digital||0===h(ze).digital?(r(),p(b,{key:0},[y(" ("+v(h(ze).digital||0)+") ",1)],64)):C("v-if",!0)],2),k("div",ee,[1!=e.hideConditionChangeBtn?(r(),p("span",{key:0,class:"setting-1",onClick:Ge,style:{"margin-right":"30px"}},[m(h(I),{component:h(L),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),p("span",{key:1,class:"setting-1",onClick:Ve},[m(h(I),{component:h(T),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])])):C("v-if",!0),k("ul",{class:"tile",style:f({borderBottom:"keyword"===e.conditionType&&1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(r(!0),p(b,null,S(h(Le).slice(1),((e,i)=>(r(),p(b,null,[e.children&&e.children.length>0?(r(),p("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(r(),p(b,{key:1},[k("span",te,v(e.name),1),k("div",le,[(r(!0),p(b,null,S(e.children,((i,n)=>(r(),p(b,null,[i.isShow?(r(),p("span",{key:n,class:u(["child-item",{selected:i.selected,disabled:!i.digital&&h(We)}]),onClick:n=>qe(i,0,e)},[y(v(i.name||si(i.isPublic))+" ",1),ai(i)?(r(),p("span",se," ("+v(i.digital||0)+") ",1)):C("v-if",!0)],10,ae)):C("v-if",!0)],64)))),256))])],64)):(r(),p("span",{key:0,class:u(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>qe(e)},[y(v(e.name)+" "+v(e.digital)+" ",1),ai(e)?(r(),p("span",ne," ("+v(e.digital||0)+") ",1)):C("v-if",!0)],10,ie))])):C("v-if",!0)],64)))),256))],4),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),p("div",oe,[k("div",de,"已选择"+v(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(r(!0),p(b,null,S(h(Le).slice(1),((e,i)=>(r(),p(b,null,[e.children&&0!==e.children.length?(r(!0),p(b,{key:1},S(e.children,((i,n)=>(r(),p(b,null,[i.selected?(r(),p("div",{class:"selected-item",key:i.sid},[y(v(i.name)+" ",1),ai(i)?(r(),p("span",re," ("+v(i.digital||0)+") ",1)):C("v-if",!0),m(h(I),{component:h(z),onClick:n=>qe(i,0,e)},null,8,["component","onClick"])])):C("v-if",!0)],64)))),256)):(r(),p("div",{class:"selected-item",key:e.sid},[y(v(e.name)+" ",1),ai(e)?(r(),p("span",ce," ("+v(e.digital||0)+") ",1)):C("v-if",!0),m(h(I),{component:h(z),onClick:i=>qe(e)},null,8,["component","onClick"])]))],64)))),256)),k("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>qe({sid:"all_data",name:"全部数据",digital:h(ze).digital}))},[m(h(R),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],64)):C("v-if",!0),2===h(Ne)?(r(),p("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:we},[k("span",{class:"title",onClick:n[3]||(n[3]=()=>Ke())},[m(h(O),{trigger:"hover",placement:"top"},{trigger:_((()=>[k("span",pe,v(h(Fe)),1)])),default:_((()=>[k("span",ue,v(h(Fe)),1)])),_:1}),m(h(I),{component:h(Oe)?h(B):h(M)},null,8,["component"])]),h(Oe)?(r(),p("div",he,[k("ul",{class:"tree",style:f({padding:"keyword"===e.conditionType?"40px 0":"40px 0 0"})},[(r(!0),p(b,null,S(h(Le),((i,n)=>(r(),p(b,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),p("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),p(b,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(r(),p("span",{key:0,class:u(["parent",{open:i.open}]),onClick:e=>$e(i)},[y(v(i.name)+v(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),m(h(I),{component:i.open?h(M):h(N)},null,8,["component"])],10,ye)):C("v-if",!0),i.open?(r(!0),p(b,{key:1},S(i.children.filter((e=>e.isShow)),((e,n)=>(r(),p("div",{class:"children",key:n},[e.isShow?(r(),x(h(O),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected,disabled:!e.digital&&h(We)}]),onClick:n=>qe(e,0,i)},[k("span",null,[y(v(e.name||si(null==e?void 0:e.isPublic))+" ",1),ai(e)?(r(),p("span",Ce," ("+v(e.digital||0)+") ",1)):C("v-if",!0)]),e.selected?(r(),x(h(I),{key:0,component:h(j),size:"20"},null,8,["component"])):C("v-if",!0)],10,ve)])),default:_((()=>[k("span",null,v(h(De)(e)),1)])),_:2},1024)):C("v-if",!0)])))),128)):C("v-if",!0)],64)):(r(),p(b,{key:0},[k("span",{class:u(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>qe(i)},[y(v(i.name)+" ",1),ai(i)?(r(),p("span",ge," ("+v(i.digital||0)+") ",1)):C("v-if",!0)],10,fe),k("div",me,[1!=e.hideConditionChangeBtn?(r(),p("span",{key:0,class:"tree-footer-icon",onClick:Ge},[m(h(I),{component:h(L),size:"16"},null,8,["component"]),y(" "+v("切换"))])):C("v-if",!0),1!=e.hideConditionChangeSetting?(r(),p("span",{key:1,class:"tree-footer-icon",onClick:Ve},[m(h(I),{component:h(T),size:"16"},null,8,["component"]),y(" "+v("设置"))])):C("v-if",!0)])],64))],2)):C("v-if",!0)],64)))),256))],4),"keyword"===e.conditionType&&1!=e.hideClearConditionChange?(r(),p("div",ke,[k("div",be,"已选择"+v(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>qe({sid:"all_data",name:"全部数据",digital:h(ze).digital}))},[m(h(R),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),y(" 清空筛选 ")])])):C("v-if",!0)])):C("v-if",!0)],512)):C("v-if",!0),C(" 弹出弹窗 "),m(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:h(Be),displayCategoryList:h(Pe),settingId:h(Ae),tableId:e.tableId,classifyModal:h(Ee),filterApiConfig:e.filterApiConfig,onSaveGetTableCondiTionList:ii,onCondiTionListInit:ei,onSetClassifyModal:He},{searchCondition:_((({...e})=>[w(i.$slots,"searchCondition",{attrs:e})])),_:3},8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","Classification-com.vue"]]);export{Se as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as a,onBeforeUnmount as i,watch as t,openBlock as l,createBlock as o,unref as n,normalizeClass as u,withCtx as d,createVNode as s,normalizeStyle as c,createElementVNode as r,createTextVNode as v,mergeProps as h}from"vue";import{NModal as p,NCard as f,NButton as m}from"naive-ui";import x from"../classify-filter/index.vue.js";import g from"../../../../../shared/components/SvgIcon/SvgIcon.vue.js";import b from"../../../../../_virtual/plugin-vue_export-helper.js";const y={class:"svg-wrap"},_={class:"flex_right"};var w=b(e({__name:"index",props:{visible:{type:Boolean,default:!1},modalTitle:{type:String,default:"设置分类"},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]},filterApiConfig:{type:Object,default:()=>({})}},emits:["cancelSaveAdd"],setup(e,{expose:b,emit:w}){const k=e,A=a(k.visible),C=a(!1),S=a("860px");let L=a({maxHeight:"496px",height:"496px",overflowY:"auto"}),H=a(null),j=null;function F(){T(),j=setTimeout((()=>{H&&H.value.handleInitConditions()}),30)}function T(){j&&clearTimeout(j)}function z(){H&&H.value.saveAdd()}function I(){A.value=!1,w("cancelSaveAdd"),S.value="860px",L.value={height:"496px",maxHeight:"496px",overflowY:"auto"},C.value=!1,H&&H.value.cancelSaveAdd()}function $(){C.value=!C.value;let e=document.body.clientHeight;"860px"===S.value?(S.value="100%",L.value.maxHeight=`${e}px`,L.value.height=`${e}px`):(S.value="860px",L.value.maxHeight="496px",L.value.height="")}return i((()=>{T()})),t((()=>k.visible),(e=>{A.value=e,e&&F()})),b({cancelSaveAdd:I}),(e,a)=>(l(),o(n(p),{class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":C.value}]),show:A.value,"onUpdate:show":a[0]||(a[0]=e=>A.value=e),maskClosable:!1,width:S.value,bodyStyle:n(L),closable:!1,centered:"",onPositiveClick:z,onNegativeClick:I},{default:d((()=>[s(n(f),{style:c({width:S.value,...n(L)}),title:k.modalTitle,bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":d((()=>[r("div",y,[s(n(g),{onClick:$,"icon-class":C.value?"xitongtubiaodaohangtubiaozuixiaohua":"xitongtubiaodaohangtubiaozuidahua"},null,8,["icon-class"]),s(n(g),{"icon-class":"xitongtubiaodaohangtubiaoguanbi",onClick:I})])])),footer:d((()=>[r("div",_,[s(n(m),{onClick:I},{default:d((()=>[v("取消")])),_:1}),s(n(m),{type:"info",onClick:z},{default:d((()=>[v("保存")])),_:1})])])),default:d((()=>[s(x,h(e.$attrs,{ref_key:"conditionApiRef",ref:H,searchFieldList:k.searchFieldList,conditionList:k.conditionList}),null,16,["searchFieldList","conditionList"])])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}}),[["__file","index.vue"]]);export{w as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as o,openBlock as a,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f,renderSlot as u}from"vue";import{useMessage as p,NButton as v}from"naive-ui";import C from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import y from"../../hooks/useMixins.js";import h from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=h(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:h}){const b=e,A=p(),{handleGetConfigApi:L}=y();let I=i(b.conditionList),T=i(),S=i(!1),_=i({}),F=i([]),j=i(!1);const O=i(null),x=t();async function k(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await L(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(h("CondiTionListInit"),E(!1))}catch(e){console.log(e)}}function w(){E(!1),I.value.forEach((e=>{e.checked=!1}))}function G(){S.value=!0}function M(e,i){S.value=!0,_.value=Object.assign(e,{from:"edit"})}function q(e,i){S.value=!0,_.value=Object.assign(e,{from:"copy"})}async function H(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(I.value)}),j.value=!0,!await L(e,"requestSaveTableCondiTion",{},b.filterApiConfig))return;O&&O.value.cancelSaveAdd(),h("saveGetTableCondiTionList"),S.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){S.value=!1,_.value={}}function $(e,i){I.value=e,T.value=i}async function D(e,i){if(e)try{let i={id:e.sid};if(!await L(i,"requestDeleteTableCondiTion",{},b.filterApiConfig))return;A.success("删除成功"),h("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else A.info("请选择行")}function E(e){h("setClassifyModal",e)}async function K(){try{let e={id:b.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await L(e,"requestResetDefaultSetting",{},b.filterApiConfig)&&(h("CondiTionListInit"),E(!1))}catch(e){console.log(e)}}let N=n((()=>b.classifyModal));return o((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),o((()=>b.searchFieldList),(e=>{e&&e.length>0&&(F.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),o((()=>S),(e=>{e||(_.value={})})),(i,t)=>(a(),l("div",m,[s(C,r({dataSource:c(I),visibleIn:c(N)},i.$attrs,{onHandleOk:k,onClose:w,onChangeData:$,onResetPopconfirm:K,edit:M,copy:q,delItem:D,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(v),{type:"info",onClick:G},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),u(i.$slots,"searchCondition",{attrs:{...i.$attrs,visible:c(S),loading:c(j),conditionList:c(I),actionList_prop:c(_),searchFieldList:e.searchFieldList,isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,saveAdd:H,cancelSaveAdd:R},ref_key:"searchFilter",ref:O},(()=>[s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(S),loading:c(j),conditionList:c(I),actionList_prop:c(_),searchFieldList:c(F),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:H,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))]))}}),[["__file","index.vue"]]);export{b as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,useAttrs as t,computed as i,ref as l,inject as a,watch as n,openBlock as o,createBlock as s,unref as r,normalizeClass as u,withCtx as c,createVNode as d,normalizeStyle as p,createSlots as m,createElementVNode as v,createElementBlock as h,createCommentVNode as f,withDirectives as g,vShow as y,createTextVNode as C,toDisplayString as w,withModifiers as k,renderSlot as x}from"vue";import{useMessage as b,useDialog as S,NModal as _,NCard as z,NTooltip as D,NIcon as I,NSwitch as E,NPopconfirm as M,NButton as P}from"naive-ui";import{ReorderTwo as U,Brush as N,DocumentOutline as V}from"@vicons/ionicons5";import O from"../../../../../shared/components/SvgIcon/SvgIcon.vue.js";import F from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as j}from"../../const/index.js";import B from"axios";import A from"../../../../../_virtual/plugin-vue_export-helper.js";const H={class:"svg-wrap"},R={class:"flex_between"},$={key:0},J={class:"table-modal-list"},T={class:"list-title"},Y=v("span",{class:"list-title-item",style:{width:"6%"}},null,-1),q=v("span",{class:"list-title-item"}," 名称 ",-1),G=v("span",{class:"list-title-item"}," 父类名称 ",-1),K=v("span",{class:"list-title-item"}," 是否显示 ",-1),L=v("span",{class:"list-title-item"}," 设置为默认 ",-1),Q={class:"list-title-item"},W=v("span",{class:"list-title-item"}," 操作 ",-1),X=["onClick"],Z={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},ee=["title"],te=["title"],ie={class:"list-content-item list-content-switch"},le={class:"list-content-item list-content-radio"},ae={class:"list-content-item"},ne={class:"list-content-item"},oe={key:0},se=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),re={key:1},ue=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var ce=A(e({__name:"index",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>{}},copy:{type:Function,defdault:()=>{}},delItem:{type:Function,defdault:()=>{}},dataSource:{type:Array,default:()=>[]},type:{type:String},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","changeData","resetPopconfirm","finishSubmit"],setup(e,{emit:A}){const ce=e,de=B.create({}),pe=t(),me=b(),ve=S(),he=i((()=>(null==pe?void 0:pe.isOrgAdmin)||!1)),fe=l(ce.dataSource),ge=l(ce.visibleIn),ye=l(!1),Ce=l("other"==ce.type?"100%":"860px"),we=l("654px"),ke=a(j);function xe(){ce.type&&(_e(),A("handleOk",function(e){if("search"==e||"other"==e)return{id:"",tableId:"",setting:JSON.stringify(fe.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))};if("mananger"==e){let e={};return fe.value.forEach(((t,i)=>{const l=(null==t?void 0:t.id)||"";e[l]={id:l,index:i,default:t.isDefault?1:0,isHide:t.isShow?0:1}})),{type:"HOMEPAGE",tableId:"10001",setting:JSON.stringify({pageConfig:e})}}return}(ce.type)))}function be(){Se()}function Se(){ge.value=!1,_e(),A("close")}function _e(){Ce.value="860px",we.value="654px",ye.value=!1}function ze(){A("changeData",fe.value)}function De(){ye.value=!ye.value;let e=document.body.clientHeight;Ce.value="860px"===Ce.value?"100%":"860px",we.value="654px"===we.value?`${e}px`:"654px"}function Ie(e){A("resetPopconfirm",e)}function Ee(e,t,i){const l=ce[e];l&&l(t,i)}return n((()=>ce.visibleIn),(e=>{ge.value=e})),n((()=>ce.dataSource),(e=>{fe.value=e}),{immediate:!0,deep:!0}),(t,i)=>(o(),s(r(_),{show:ge.value,bodyStyle:{height:we.value,overflowY:"auto"},width:Ce.value,maskClosable:!1,class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":ye.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",onPositiveClick:xe,onNegativeClick:Se},{default:c((()=>[d(r(z),{style:p({width:Ce.value,height:we.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},m({"header-extra":c((()=>[v("div",H,[d(r(O),{onClick:De,"icon-class":ye.value?"xitongtubiaodaohangtubiaozuixiaohua":"xitongtubiaodaohangtubiaozuidahua"},null,8,["icon-class"]),d(r(O),{"icon-class":"xitongtubiaodaohangtubiaoguanbi",onClick:Se})])])),default:c((()=>[r(he)&&"mananger"==e.type?(o(),h("p",$,[v("span",{onClick:be}," 添加首页 ")])):f("v-if",!0),v("div",J,[v("div",T,[Y,q,G,K,L,g(v("span",Q," 设置公共首页 ",512),[[y,r(he)&&"mananger"==e.type]]),W]),d(r(F),{class:"list-content",tag:"ul",list:fe.value,"item-key":"sid",onEnd:ze,animation:"300"},{item:c((({element:t})=>[g(v("li",{class:u({checked:t.checked}),onClick:e=>{return i=t,fe.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1})),void A("changeData",fe.value,i);var i}},[v("span",Z,[d(r(D),{mouseEnterDelay:1},{trigger:c((()=>[d(r(I),{component:r(U),size:"24"},null,8,["component"])])),default:c((()=>[C(" 拖拽调整顺序 ")])),_:1})]),v("span",{title:t.displayCategory,class:"list-content-item"},w(t.name),9,ee),v("span",{title:t.name,class:"list-content-item"},w(t.displayCategory),9,te),v("span",ie,[d(r(E),{"onUpdate:value":e=>{return i=t,void fe.value.forEach((e=>{e.sid==i.sid&&(e.isShow=!e.isShow,e.isShow||(i.isDefault=!1))}));var i},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),v("span",le,[d(r(E),{"onUpdate:value":e=>{var i;(i=t).isShow&&fe.value.forEach((e=>{e.sid==i.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),g(v("span",ae,[d(r(E),{"onUpdate:value":e=>function(e){function t(e){let t="";for(const i in e)t+=encodeURIComponent(i)+"="+encodeURIComponent(e[i])+"&";return t=t.slice(0,-1),t}ve.warning({title:`是否确定${e.isCommon?"取消":"设置"}公共首页?`,positiveText:"确定",negativeText:"取消",maskClosable:!1,onPositiveClick:()=>{let i={id:e.id,setCommon:!e.isCommon};de({url:"homePage/updateCommon",method:"post",data:i,transformRequest:[t]}).then((t=>{"SUCCESS"===t.data.result?(me.success(t.data.resultMsg),e.isCommon=!e.isCommon,A("finishSubmit")):me.error(t.data.resultMsg)})).catch((e=>{console.log(e)}))},onNegativeClick:()=>{}})}(t),size:"small",value:t.isCommon},null,8,["onUpdate:value","value"])],512),[[y,r(he)&&"mananger"==e.type]]),v("span",ne,["mananger"==e.type&&r(he)?(o(),h("span",oe,[d(r(M),{onPositiveClick:e=>Ee("confirm",t)},{trigger:c((()=>[d(r(I),null,{default:c((()=>[se])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0),f(" 编辑 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(I),{component:r(N),onClick:k((e=>Ee("edit",t,"编辑")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 编辑 ")])),_:2},1024)],512),[[y,"other"==e.type||"search"==e.type&&t.isEdit||"mananger"==e.type&&r(he)]]),f(" 复制 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(I),{component:r(V),onClick:k((e=>Ee("copy",t,"复制")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 复制 ")])),_:2},1024)],512),[[y,"search"==e.type||"other"==e.type]]),f(" 删除 "),t.isEdit?(o(),h("span",re,[d(r(M),{onPositiveClick:e=>Ee("delItem",t,"删除")},{trigger:c((()=>[d(r(I),null,{default:c((()=>[ue])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,X),[[y,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:c((()=>[v("div",R,[v("div",null,[r(ke)?(o(),s(r(M),{key:0,placement:"top-start","positive-text":"确认","negative-text":"取消",onPositiveClick:Ie},{trigger:c((()=>[d(r(P),null,{default:c((()=>[C("恢复默认设置")])),_:1})])),default:c((()=>[C(" 确认要恢复系统默认设置吗? ")])),_:1})):f("v-if",!0)]),v("div",null,[d(r(P),{onClick:Se},{default:c((()=>[C("取消")])),_:1}),x(t.$slots,"add"),d(r(P),{type:"info",onClick:xe},{default:c((()=>[C("保存")])),_:1})])])])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}}),[["__file","index.vue"]]);export{ce as default};
@@ -1,5 +0,0 @@
1
- import { Ref, InjectionKey } from 'vue';
2
- import { IeditTableWrapperItem } from '../types';
3
- export declare const GROUP_TITLE_KEY = "group-show-title";
4
- export declare const root_isShowResetButton: InjectionKey<Ref<boolean>>;
5
- export declare const InjecteditTableWrapper: InjectionKey<Ref<IeditTableWrapperItem>>;
@@ -1 +0,0 @@
1
- const o="group-show-title",t=Symbol("root_isShowResetButton"),e=Symbol("editTableWrapper");export{o as GROUP_TITLE_KEY,e as InjecteditTableWrapper,t as root_isShowResetButton};
@@ -1,4 +0,0 @@
1
- declare const Resize: {
2
- mounted(el: any, binding: any): void;
3
- };
4
- export default Resize;
@@ -1 +0,0 @@
1
- import o from"../tool/resizeSensor.js";import{useDebounceFn as e}from"@vueuse/core";const r={mounted(r,t){const s=t.value,m=e(s,10);new o(r,m)}};export{r as default};
@@ -1 +0,0 @@
1
- export * from './useAdvanced';
@@ -1 +0,0 @@
1
- import"./useAdvanced.js";
@@ -1,8 +0,0 @@
1
- import moment from 'moment';
2
- import 'moment/locale/zh-cn';
3
- import { ISearchType } from '../../../../../es/components/table-filter/src/types';
4
- export default function (): {
5
- validConObj: (conObj: any, fieldList: ISearchType[], fieldSearchLimit: any) => any;
6
- getSearchDefValueByLimit: (field: ISearchType, searchLimit?: any) => "" | moment.Moment[];
7
- formatSearchLimit: (limitList: any, freeze?: boolean) => any;
8
- };
@@ -1 +0,0 @@
1
- import e from"moment";import"moment/locale/zh-cn";import{useMessage as t}from"naive-ui";const n=t();function r(){function t(e){e=Number(e)||0;const t=Math.floor(e/12),n=e%12;return(t?`${t}年`:"")+(n?6==n?"半"+(t?"":"年"):`${n}个月`:"")}return{validConObj:function(r,o,i){if(!i||!(null==r?void 0:r.length)||!(null==o?void 0:o.length))return!0;const u=o.reduce(((e,t,n)=>(e[t.columnName]=n,e)),{});return r.every((r=>{const c=r.field_key,l=o[u[c]],a=i[c];return!l||!a||("time"!==a.type||((r,o,i)=>{let u=i.value,c=0;const l=u;if(!u)return!0;const a={TODAY:1/30,TOMORROW:1/30,YESTERDAY:1/30,THIS_WEEK:7/30,NEXT_WEEK:7/30,LAST_WEEK:7/30,THIS_MONTH:1,NEXT_MONTH:1,LAST_MONTH:1,THIS_SEASON:3,NEXT_SEASON:3,LAST_SEASON:3,THIS_YEAR:12,NEXT_YEAR:12,LAST_YEAR:12},f={HOUR:1/24/30,DAY:1/30,WEEK:7/30,MONTH:1,QUARTER:3,YEAR:12},E=r.con;if("IN"===E){const{start_val:t,end_val:i}=r;if(!t&&i||t&&!i)return void n.warning(`请选择${o.title}${t?"截止":"起始"}日期`);t&&i&&(c=e(i).valueOf(),u=e(t).add(l,"month").valueOf())}else if(a[E])c=a[E];else if(",IN_THE_PAST,IN_THE_FUTURE,".includes(`,${E},`)){const{value:e,unit:t}=r,n=f[t]||1;c=Math.floor(Number(e)*Number(n)*100)/100}else if(",IN_THE_PAST_DI,IN_THE_FUTURE_DI,".includes(`,${E},`)){const{unit:e}=r;c=f[e]||0}const T=c<=u;if(!T){const e=o.title||"";n.warning(`${e}最大查询跨度${t(i.value)}`)}return T})(r,l,a))}))},getSearchDefValueByLimit:function(t,n){if(n){const r=n[t.columnName];if(r&&"time"===r.type){const{way:t,defValue:n}=r,o=1==t,i=e(),u=i.clone().add("month",n*(o?-1:1));return o?[u,i]:[i,u]}}return""},formatSearchLimit:function(e,n=!0){const r={time(e){const{value:n,defValue:r}=e;return`默认查询${t(r)},最大查询跨度${t(n)}`}},o=e.reduce(((e,t)=>{const{key:n}=t;if(n){const o=r[t.type]?r[t.type](t):"";e[n]={...t,tips:o}}return e}),{});return n?Object.freeze(o):o}}}export{r as default};
@@ -1,12 +0,0 @@
1
- import { ISearchType } from '../../../../../es/components/table-filter/src/types';
2
- export default function (): {
3
- wordBookutils: {
4
- hasArray: (arr: ISearchType[]) => boolean;
5
- handleWordbookData(item: any, data: any, params: any): {
6
- rows: never[];
7
- hasFieldList: boolean;
8
- searchPageConfig: {};
9
- };
10
- getTitleHeader(fieldList: ISearchType[], renderKey: any): any;
11
- };
12
- };
@@ -1 +0,0 @@
1
- import e from"xe-utils";import"moment";function t(){const t="<&=&>",a={hasArray:e=>Array.isArray(e)&&e.length>0,handleWordbookData(o,s,r){const{setting:n={}}=o,{showKeys:i=[],defaultValue:l,defaultValueTitle:u}=n.wordbook||{};let h=null,d=[],m=!1,c={};if(l&&u&&(h={myName:l,showKeys:u}),s&&s.result){const n=(null==s?void 0:s.reqParams)||{},{page:l,hasNextPage:u,fieldList:y}=s.map;c=Object.assign(o.searchPageConfig,{page:l,hasNextPage:u,isRequest:!0,keyword:(null==r?void 0:r.keyword)||void 0,asyncCount:(null==n?void 0:n.asyncCount)||void 0});const g=s.map.rows.map((a=>{const s=[];i.forEach((t=>{const o=e.stringToValue(a[t],"change_text");s.push(o)}));const r=e.stringToValue(a[o.setting.wordbook.field_key],"value");return Object.assign(a,{myName:r,showKeys:s.join(t),_show_title:s.join(" ")})})),f={};if(d=g.reduce(((e,t)=>(!f[t.myName]&&(f[t.myName]=e.push(t)),e)),[]),h&&d.unshift(h),a.hasArray(y)&&a.hasArray(i)&&i.length>1){const e=a.getTitleHeader(y,i);d.unshift({myName:e,showKeys:e,sid:Math.random()}),m=!0}}return{rows:d,hasFieldList:m,searchPageConfig:c}},getTitleHeader(e,a){const o=[];let s=[];s=Array.isArray(a)?[...a]:[a],s.forEach((t=>{for(let a=0;a<e.length;a++)if(t===e[a].columnName){o.push(`${e[a].title}`);break}}));return o.join(t)}};return{wordBookutils:a}}export{t as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,useAttrs as l,ref as a,computed as t,watch as i,openBlock as n,createElementBlock as o,createElementVNode as u,normalizeClass as s,Fragment as c,renderList as r,unref as d,createCommentVNode as v,toDisplayString as f,createBlock as m,createVNode as p,withCtx as h,createTextVNode as g,withDirectives as k,vShow as b,isRef as y}from"vue";import{useMessage as C,NModal as S,NCard as x,NIcon as q,NButton as _,NForm as T,NFormItem as j,NInput as w}from"naive-ui";import{CloseOutline as L,AddOutline as A}from"@vicons/ionicons5";import O from"../hooks/useMixins.js";import I from"../hooks/useRenderWidget.js";import E from"../hooks/useAdvanced.js";import"moment/locale/zh-cn";import{cloneDeep as Q}from"lodash-es";import R from"../components/render-widget/index.vue.js";import U from"../../../../_virtual/plugin-vue_export-helper.js";const V={class:"quick-row"},z={class:"svg-wrap"},M={class:"flex_right"},B={class:"class-filter-content"},D={class:"quickSearch-content"},F=u("span",{class:"label"},"父类名称:",-1),N=["onDblclick","onClick"],P={key:0,class:"s-content"};var W=U(e({__name:"QuickSearch",props:{searchFieldList:{type:Array,default:()=>[]},tableId:{type:String,default:""},source:{type:String,default:"editTable"},quickSearchListObj:{type:Object,default:()=>({})},filterApiConfig:{type:Object}},emits:["filterCountChange","onSave","closeModal","updateTableCondiTion","clearQuickSearchConfig","getParam"],setup(e,{expose:U,emit:W}){const G=e,J={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},H=l(),K=C(),{handleGetConfigApi:X,outQuickSearchFn:Y}=O(),{initRenderWidgetCfg:Z,getRenderSearchConObj:$,resetRenderWidgetValue:ee}=I(),{transformData:le}=E();a(new Map);const ae=a(null),te=a({classname:""});let ie=a(!1),ne=a([]),oe=a(!1),ue=a("700px"),se=a("60vh"),ce=a([]),re=a(!1),de=a(""),ve=t((()=>!!ce.value.length&&ce.value.some((e=>e.isAdd)))),fe=t((()=>(e,l="name")=>e.alias||e[l]));function me(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=$(t);i&&l.push(i)}return l.filter((e=>e.value))}(ne.value)||[]}function pe(){ue.value="700px",se.value="60vh",oe.value=!1}function he(){var e;null==(e=ae.value)||e.validate((e=>{var l;if(e)return;let a=me();a.length||(a=[]);let t=null==(l=ce.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await X(e,"requestSaveTableCondiTion",{},G.filterApiConfig))return;ie.value=!1,null==(l=ae.value)||l.restoreValidation(),te.value.classname="",ce.value=[],W("updateTableCondiTion"),Ce(),pe(),W("closeModal")}catch(e){console.log(e)}}({tableId:G.tableId||"",setting:JSON.stringify({displayCategory:t,name:te.value.classname,conObj:a}),conditionList:"[]"})}))}function ge(e){var l;const a=null==(l=null==e?void 0:e.target)?void 0:l.nextElementSibling;setTimeout((()=>{a&&a.focus()})),re.value=!0}function ke(){re.value=!1,de.value&&(ce.value.forEach((e=>e.selected=!1)),ce.value.push({disabled:!0,value:de.value,selected:!0,isAdd:!0}),de.value="")}function be(e,l){!function(e,l){let{conditionList:a=[]}=G.quickSearchListObj||{};if(!a||a&&0===(null==a?void 0:a.length))return void ce.value.splice(e,1);let t=a.filter((e=>e.displayCategory===l.value));if(!t||!t.length)return void ce.value.splice(e,1);K.error("该分类下有已有数据,请删除该分类下的筛选集后重试!")}(e,l)}function ye(){ie.value=!1}function Ce(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{ee(e)})),Y.handlerInitSearchItem(ne.value)}(ne.value),"editTable"!==G.source?null==H||H.clearQuickSearchConfig():W("clearQuickSearchConfig")}return i((()=>G.searchFieldList),(e=>{e&&e.length>0&&function(){let e=Q(le(G.searchFieldList)).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];setTimeout((()=>{ne.value=e||[],Y.handlerInitSearchItem(ne.value)}))}()}),{immediate:!0,deep:!0}),i((()=>G.quickSearchListObj),(e=>{e&&Object.keys(e).length?function(){let e=[],{displayCategoryList:l=[]}=G.quickSearchListObj;l&&l.length?(l.forEach((l=>{"未分类"!==l&&e.push({disabled:!0,selected:!1,value:l})})),ce.value=e):ce.value=[]}():ce.value=[]}),{immediate:!0,deep:!0}),i((()=>ne),(()=>{const e=me()||[];W("filterCountChange",e.length),W("getParam",e)}),{deep:!0}),U({openSaveToCalss:function(){let e=me();e&&(e.length>0?ie.value=!0:K.warning("请设置搜索条件"))},clearData:Ce,onSave:function(){let e=me()||[];return pe(),W("onSave",e),ne.value}}),(l,a)=>(n(),o("div",null,[u("div",{class:s(["quick-search-block",{"quick-search-table":"editTable"===e.source}])},[(n(!0),o(c,null,r(d(ne),(l=>(n(),o("div",{class:s(["quick-item",{"quick-block":l._isBlock}]),key:l.sid||l.columnName},[u("div",V,[v(" title "),u("div",{class:s(["quick-item-title",{"quick-item-title-default":"editTable"!==e.source}])},[u("span",null,f(d(fe)(l,"title"))+"  ",1)],2),v(" content "),u("div",{class:s(["quick-item-col",{"quick-item-col-default":"editTable"!==e.source}])},[v(" 直接渲染组件 "),l.isRender?(n(),m(R,{key:0,cfg:l,modelValue:l.value,"onUpdate:modelValue":e=>l.value=e},null,8,["cfg","modelValue","onUpdate:modelValue"])):v("v-if",!0)],2)])],2)))),128))],2),v(" 保存到分类的弹窗 "),p(d(S),{show:d(ie),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:he,onNegativeClick:ye,class:"classification-modal-block"},{default:h((()=>[p(d(x),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":h((()=>[u("div",z,[p(d(q),{component:d(L),size:"24",onClick:ye},null,8,["component"])])])),footer:h((()=>[u("div",M,[p(d(_),{onClick:ye},{default:h((()=>[g("取消")])),_:1}),p(d(_),{type:"info",onClick:he},{default:h((()=>[g("确认")])),_:1})])])),default:h((()=>[u("div",B,[p(d(T),{ref_key:"formRef",ref:ae,"label-placement":"left",rules:J,model:te.value},{default:h((()=>[p(d(j),{label:"筛选集名称",path:"classname"},{default:h((()=>[p(d(w),{value:te.value.classname,"onUpdate:value":a[0]||(a[0]=e=>te.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),u("div",D,[F,(n(!0),o(c,null,r(d(ce),((e,l)=>(n(),o("div",{class:s(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}]),key:l,onDblclick:l=>function(e,l){l.disabled=!1,setTimeout((()=>{var l;null==(l=e.target)||l.focus()}),0)}(l,e),onClick:a=>function(e,l){e.disabled&&(ce.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(n(),o("div",P,[u("span",null,f(e.value),1)])):(n(),m(d(w),{key:1,style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxLength:10},null,8,["value","onUpdate:value","disabled","onBlur"])),p(d(q),{component:d(L),class:"anticon-close",size:"20",onClick:a=>be(l,e)},null,8,["component","onClick"])],42,N)))),128)),d(ve)?v("v-if",!0):(n(),o(c,{key:0},[k(p(d(_),{dashed:"",icon:"plus",class:"ant-btn",onClick:ge},{default:h((()=>[p(d(q),{component:d(A),size:"20"},null,8,["component"]),g("添加分类 ")])),_:1},512),[[b,!d(re)]]),k(p(d(w),{style:{width:"100px"},class:"edit-tag",value:d(de),"onUpdate:value":a[1]||(a[1]=e=>y(de)?de.value=e:de=e),valueModifiers:{trim:!0},onBlur:ke,maxLength:10},null,8,["value"]),[[b,d(re)]])],64))])])])),_:1})])),_:1},8,["show"])]))}}),[["__file","QuickSearch.vue"]]);export{W as default};
@@ -1 +0,0 @@
1
- export declare const getWidgetTypeInSql: (fieldType: string, mappingConfig?: any) => string;
@@ -1 +0,0 @@
1
- import{WidgetTypeEnums as e,FieldTypeEnums as t}from"../types/enums.js";const r=(r,E={mappingMethod:null,mapping:[]})=>{switch(r){case t.NUMBER:return E.mappingMethod?e.SELECT:e.INPUT_NUMBER;case t.TEXT:return E.mappingMethod?e.SELECT:e.INPUT;case t.DATE_TIME:return e.DATE_TIME;case t.DATE:return e.DATE;default:return e.INPUT}};export{r as getWidgetTypeInSql};
@@ -1,18 +0,0 @@
1
- export declare const widgetTypeOptions: {
2
- label: string;
3
- value: string;
4
- }[];
5
- export declare const widgetCfgOptions: {
6
- [x: string]: {
7
- label: string;
8
- value: string;
9
- }[];
10
- };
11
- export declare const widgetValOptions: {
12
- [x: string]: {
13
- [x: string]: {
14
- label: string;
15
- value: string;
16
- }[];
17
- };
18
- };
@@ -1 +0,0 @@
1
- import{WidgetTypeEnums as l,WidgetOptionEnums as e,DataTypeEnums as a,WidgetValEnums as T}from"../types/enums.js";const E=[{label:"数字框",value:l.INPUT_NUMBER},{label:"文本框",value:l.INPUT},{label:"下拉框",value:l.SELECT},{label:"日期框",value:l.DATE},{label:"日期时间框",value:l.DATE_TIME}],u={[l.SELECT]:[{label:"单选",value:e.RADIO},{label:"多选",value:e.MULTIPLE}],[l.DATE_TIME]:[{label:"全部",value:e.ALL},{label:"选择时间",value:e.SELECT_TIME},{label:"过去时间",value:e.PAST_TIME},{label:"未来时间",value:e.FUTURE_TIME}]},b={[a.API]:{[l.DATE]:[{label:"今天",value:T.TODAY},{label:"明天",value:T.TOMORROW},{label:"昨天",value:T.YESTERDAY},{label:"本周初",value:T.WEEK_START},{label:"本周末",value:T.WEEK_END},{label:"本月初",value:T.MONTH_START},{label:"本月末",value:T.MONTH_END}],[l.DATE_TIME]:[{label:"当前时间",value:T.NOW},{label:"今天初",value:T.TODAY_START},{label:"今天末",value:T.TODAY_END},{label:"昨天初",value:T.YESTERDAY_START},{label:"昨天末",value:T.YESTERDAY_END},{label:"明天初",value:T.TOMORROW_START},{label:"明天末",value:T.TOMORROW_END},{label:"本周初",value:T.WEEK_START},{label:"本周末",value:T.WEEK_END},{label:"本月初",value:T.MONTH_START},{label:"本月末",value:T.MONTH_END}]},[a.SQL]:{[l.DATE_TIME]:[{label:"今天",value:T.TODAY},{label:"明天",value:T.TOMORROW},{label:"昨天",value:T.YESTERDAY},{label:"本周",value:T.THIS_WEEK},{label:"下周",value:T.NEXT_WEEK},{label:"上周",value:T.LAST_WEEK},{label:"本月",value:T.THIS_MONTH},{label:"下月",value:T.NEXT_MONTH},{label:"上月",value:T.LAST_MONTH},{label:"本季度",value:T.THIS_QUARTER},{label:"下季度",value:T.NEXT_QUARTER},{label:"上季度",value:T.LAST_QUARTER},{label:"本年",value:T.THIS_YEAR},{label:"下年",value:T.NEXT_YEAR},{label:"上年",value:T.LAST_YEAR}]}};export{u as widgetCfgOptions,E as widgetTypeOptions,b as widgetValOptions};
@@ -1,16 +0,0 @@
1
- /**
2
- * Class for dimension change detection.
3
- *
4
- * @param {Element|Element[]} element
5
- * @param {Function} callback
6
- *
7
- * @constructor
8
- */
9
- declare class ResizeSensor {
10
- _isCollectionTyped: boolean;
11
- _element: any;
12
- constructor(element: any, callback: any);
13
- static detach(element: any): void;
14
- detach(): void;
15
- }
16
- export default ResizeSensor;
@@ -1 +0,0 @@
1
- const e=window.requestAnimationFrame||function(e){return window.setTimeout(e,20)};class t{constructor(e){let t;this.q=[],this.add=function(e){this.q.push(e)},this.call=function(){for(t=0;t<this.q.length;t++)this.q[t].call(this,e)}}}function s(s,i){if(s.resizedAttached){if(s.resizedAttached)return void s.resizedAttached.add(i)}else s.resizedAttached=new t(s),s.resizedAttached.add(i);s.resizeSensor=document.createElement("div"),s.resizeSensor.className="resize-sensor";const o="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden; opacity: 0;direction: ltr;",n="position: absolute; left: 0; top: 0; transition: 0s;";s.resizeSensor.style.cssText=o,s.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+o+'"><div style="'+n+'"></div></div><div class="resize-sensor-shrink" style="'+o+'"><div style="'+n+' width: 200%; height: 200%"></div></div>',s.appendChild(s.resizeSensor),"static"==function(e,t){return e.currentStyle?e.currentStyle[t]:window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(t):e.style[t]}(s,"position")&&(s.style.position="relative");const l=s.resizeSensor.childNodes[0],r=l.childNodes[0],d=s.resizeSensor.childNodes[1],c=function(){r.style.width="100000px",r.style.height="100000px",l.scrollLeft=1e5,l.scrollTop=1e5,d.scrollLeft=1e5,d.scrollTop=1e5};c();let h=!1;const a=function(){s.resizedAttached&&(h&&(s.resizedAttached.call(),h=!1),e(a))};let u,f,p,z;e(a);const y=function(){(p=s.offsetWidth)==u&&(z=s.offsetHeight)==f||(h=!0,u=p,f=z),c()},v=function(e,t,s){e.attachEvent?e.attachEvent("on"+t,s):e.addEventListener(t,s)};v(l,"scroll",y),v(d,"scroll",y)}class i{constructor(e,t){const i=Object.prototype.toString.call(e);if(this._isCollectionTyped="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i,this._element=e,this._isCollectionTyped)for(let i=0;i<e.length;i++)s(e[i],t);else s(e,t)}static detach(e){e.resizeSensor&&(e.removeChild(e.resizeSensor),delete e.resizeSensor,delete e.resizedAttached)}detach(){const e=this._isCollectionTyped,t=this._element;if(e)for(let e=0;e<t.length;e++)i.detach(t[e]);else i.detach(t)}}export{i as default};
@@ -1,39 +0,0 @@
1
- import moment from 'moment';
2
- declare const timeDomain: {
3
- TODAY(): moment.Moment[];
4
- TOMORROW(): moment.Moment[];
5
- YESTERDAY(): moment.Moment[];
6
- THIS_WEEK(): moment.Moment[];
7
- NEXT_WEEK(): moment.Moment[];
8
- UP_WEEK(): moment.Moment[];
9
- THIS_MONTH(): moment.Moment[];
10
- NEXT_MONTH(): moment.Moment[];
11
- UP_MONTH(): moment.Moment[];
12
- THIS_SEASON(): moment.Moment[];
13
- NEXT_SEASON(): moment.Moment[];
14
- UP_SEASON(): moment.Moment[];
15
- THIS_YEAR(): moment.Moment[];
16
- UP_YEAR(): moment.Moment[];
17
- NEXT_YEAR(): moment.Moment[];
18
- getMonth(difference?: number): moment.Moment[];
19
- getQuarter(difference?: number): moment.Moment[];
20
- getYear(difference?: number): moment.Moment[];
21
- /**
22
- * 获取前 i 周的周一和周日日期,并以数组的方式返回。
23
- * 当 i=1,获取的是上周一和上周日的日期;
24
- * 当 i=2,获取的是上上周一和上上周日的日期
25
- * ...以此类推
26
- * @param i
27
- */
28
- getLastWeek(i: number): moment.Moment[];
29
- /**
30
- * 获取后 i 周的周一和周日日期,并以数组的方式返回。
31
- * 当 i=1,获取的是下周一和下周日的日期;
32
- * 当 i=2,获取的是下下周一和下下周日的日期
33
- * ...以此类推
34
- * @param i
35
- */
36
- getNextWeek(i: number): moment.Moment[];
37
- getTimeDomain(type: string, format?: string): any;
38
- };
39
- export default timeDomain;
@@ -1 +0,0 @@
1
- import t from"moment";const e={TODAY:()=>[t().startOf("day"),t().endOf("day")],TOMORROW:()=>[t().add(1,"days").startOf("days"),t().add(1,"days").endOf("days")],YESTERDAY:()=>[t().subtract(1,"days").startOf("days"),t().subtract(1,"days").endOf("days")],THIS_WEEK:()=>[t().startOf("week"),t().endOf("week")],NEXT_WEEK:()=>e.getNextWeek(1),UP_WEEK:()=>e.getLastWeek(1),THIS_MONTH:()=>e.getMonth(0),NEXT_MONTH:()=>e.getMonth(1),UP_MONTH:()=>e.getMonth(-1),THIS_SEASON:()=>e.getQuarter(0),NEXT_SEASON:()=>e.getQuarter(1),UP_SEASON:()=>e.getQuarter(-1),THIS_YEAR:()=>e.getYear(0),UP_YEAR:()=>e.getYear(-1),NEXT_YEAR:()=>e.getYear(1),getMonth(e=0){const a=t().month()+e;return[t().month(a).startOf("month"),t().month(a).endOf("month")]},getQuarter(e=0){const a=t().quarter()+e;return[t().quarter(a).startOf("quarter"),t().quarter(a).endOf("quarter")]},getYear(e=0){const a=t().year()+e;return[t().year(a).startOf("year"),t().year(a).endOf("year")]},getLastWeek(e){const a=parseInt(t().format("E"));return[t().subtract(a+7*e-1,"days").startOf("days"),t().subtract(a+7*(e-1),"days").endOf("days")]},getNextWeek(e){const a=parseInt(t().format("E"));return[t().add(7-a+7*(e-1)+1,"days").startOf("days"),t().add(7-a+7*e,"days").endOf("days")]},getTimeDomain(t,a){if(e[t]){const r=e[t]();return"string"==typeof a?r.map((e=>e.format(t))):r}return[]}};export{e as default};
@@ -1,4 +0,0 @@
1
- export declare const isString: (val: any) => boolean;
2
- export declare const isEmpty: (obj: any) => boolean;
3
- export declare const paramsToPrintValue: (item: any) => any;
4
- export declare const isNil: (val: any) => boolean;
@@ -1 +0,0 @@
1
- const t=Object.prototype.toString,r=r=>"[object String]"===t.call(r),e=t=>{for(const r in t)return!1;return!0},n=t=>{if(!e(t))return Object.keys(t).forEach((e=>{if(r(t[e])){if(t[e]&&t[e].startsWith("###{")){const r=JSON.parse(t[e].replace("###",""));t[e]=r.change_text}t[e]&&t[e].startsWith("{")&&JSON.parse(t[e]).objs&&(t[e]=JSON.parse(t[e]).objStr)}})),t},o=t=>null==t||null==t;export{e as isEmpty,o as isNil,r as isString,n as paramsToPrintValue};
@@ -1 +0,0 @@
1
- .classification-modal-block .n-card-header .svg-wrap .svg-icon{cursor:pointer;font-size:14px}.classification-modal-block .n-card-header .svg-wrap .svg-icon+svg{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex;flex-wrap:wrap}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-action{cursor:pointer;float:right;font-size:16px;margin-top:6px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.base-search-block .base-container{display:flex;justify-content:space-between;text-align:left}.base-search-block .base-container .bease-left{align-items:flex-start;display:flex;flex:1;justify-content:flex-start}.base-search-block .base-container .bease-left .base-ul{align-items:center;display:flex;flex-wrap:wrap;margin-top:8px}.base-search-block .base-container .bease-left .base-ul .baseli{display:flex}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px}.quick-search-block .quick-item .quick-row{align-items:center;display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{line-height:32px;min-width:80px;padding-left:12px;text-align:right}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 12px}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block}.classification-block .tree-type{border:1px solid #d5d5d5;border-radius:4px;height:100%;line-height:32px;margin-top:8px;padding-bottom:80px;width:150px}.classification-block .tree-type .header{border-bottom:1px solid #e6eaef;display:flex;font-size:14px;justify-content:space-between;padding:0 10px}.classification-block .tree-type .header .header-1{align-items:center;cursor:pointer;display:flex}.classification-block .tree-type .tree{height:calc(100% - 32px);line-height:32px;margin:0;overflow:auto;padding-left:0}.classification-block .tree-type .tree::-webkit-scrollbar{width:5px}.classification-block .tree-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer}.classification-block .tree-type .tree .tree-item.tree-header{box-sizing:border-box;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .tree-type .tree .tree-item .header-item{box-sizing:border-box;line-height:1.4}.classification-block .tree-type .tree .tree-item .header-item.selected,.classification-block .tree-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children{align-items:center;display:flex;height:32px;padding-left:23px;padding-right:10px}.classification-block .tree-type .tree .tree-item .children .child-item{align-items:center;border-bottom:1px solid transparent;color:#7c7c7c;display:flex;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .tree-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-content{align-items:center;display:flex}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item .digital-span{flex:1;margin-left:5px;text-align:left}.classification-block .tree-type .tree-type-footer{bottom:0;line-height:20px;padding-left:16px;position:absolute;width:100%}.classification-block .tree-type .tree-type-footer .selected-num{margin-bottom:9px;margin-right:8px}.classification-block .tree-type .tree-type-footer .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;justify-content:center;margin-bottom:15px;margin-left:0}.classification-block .tile-type{border:1px solid #d5d5d5;border-radius:4px;margin-bottom:8px;padding:0 17px}.classification-block .tile-type .header{align-items:center;border-bottom:1px solid #d5d5d5;display:inline-flex;justify-content:space-between;line-height:44px;width:100%}.classification-block .tile-type .header .all-data{border-bottom:1px solid transparent;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:500;line-height:1.4;margin-right:auto}.classification-block .tile-type .header .all-data:hover{color:#2d7aff}.classification-block .tile-type .header .all-data:active{border-color:transparent;color:#000}.classification-block .tile-type .header .selected{color:#2d7aff}.classification-block .tile-type .header .right-setting{display:flex}.classification-block .tile-type .header .right-setting .setting-1{align-items:center;cursor:pointer;display:flex}.classification-block .tile-type .header .right-setting .setting-1 .n-icon{margin-right:6px}.classification-block .tile-type .header .right-setting .upack-up-btn{color:#2d7aff}.classification-block .tile-type .tile{border-bottom:1px solid #d5d5d5;margin:0;padding:9px 0}.classification-block .tile-type .tile .tile-item{cursor:pointer;display:flex;line-height:38px}.classification-block .tile-type .tile .tile-item .parent{box-sizing:border-box;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:600;max-width:135px;padding-right:16px;width:135px}.classification-block .tile-type .tile .tile-item .children{flex:1}.classification-block .tile-type .tile .tile-item .children .child-item{border-bottom:1px solid transparent;border-radius:4px;color:#7c7c7c;display:inline-block;font-size:14px;line-height:1.5;margin:0 5px;padding:1px 6px}.classification-block .tile-type .tile .tile-item .children .child-item.selected,.classification-block .tile-type .tile .tile-item .children .child-item:hover{background-color:rgba(45,122,255,.1);color:#2d7aff}.classification-block .tile-type .tile .tile-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tile-type .tile .tile-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tile-type .tile .tile-item .child-item.selected{color:#2d7aff}.classification-block .tile-type .selected-list{align-items:center;display:flex;padding:12px 6px}.classification-block .tile-type .selected-list .selected-num{font-size:14px;line-height:20px;margin-right:8px}.classification-block .tile-type .selected-list .selected-item{align-items:center;background-color:rgba(45,122,255,.1);border-radius:4px;color:#2d7aff;cursor:pointer;display:flex;margin-left:8px;padding:1px 8px}.classification-block .tile-type .selected-list .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;font-size:14px;line-height:20px;margin-left:22px}.classification-block .select-type{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px;position:relative;width:100px}.classification-block .select-type .title{align-items:center;border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;color:#969696;cursor:pointer;display:flex;font-size:12px;height:100%;justify-content:space-between;padding:0 8px;width:100%}.classification-block .select-type .title>.name{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .title:before{color:#409eff;content:"&";font-weight:700;margin:0 5px}.classification-block .select-type .main-wrapper{background-color:#fff;border:1px solid #d5d5d5;border-radius:4px;min-width:270px;position:absolute;top:39px;width:100%;z-index:3000}.classification-block .select-type .main-wrapper::-webkit-scrollbar{width:5px}.classification-block .select-type .tree{margin:0;max-height:300px;overflow:auto;padding:32px 0}.classification-block .select-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer;line-height:32px}.classification-block .select-type .tree .tree-item.tree-header{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;height:40px;padding:0 10px;position:absolute;top:0;width:100%;z-index:1}.classification-block .select-type .tree .tree-item .tree-footer{align-items:center;color:rgba(0,0,0,.6);display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon{align-items:center;cursor:pointer;display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon .n-icon{margin-right:6px}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon:first-child{margin-right:16px}.classification-block .select-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .select-type .tree .tree-item .header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6);flex:1}.classification-block .select-type .tree .tree-item .header-item.selected,.classification-block .select-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children{align-items:center;display:flex;height:32px;line-height:32px;padding-left:23px;padding-right:10px}.classification-block .select-type .tree .tree-item .children .child-item{border-bottom:1px solid transparent;color:#7c7c7c;display:inline-block;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item.child-header{padding:0 10px}.classification-block .select-type .tree .tree-item .children .child-item.header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6)}.classification-block .select-type .tree .tree-item .children .child-item.header-item.selected,.classification-block .select-type .tree .tree-item .children .child-item.header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .select-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .select-type .tree .tree-item:last-child{border-bottom:0}.classification-block .select-type .select-type-footer{align-items:center;background-color:#fff;border-top:1px solid #d5d5d5;bottom:0;display:flex;height:40px;justify-content:space-between;padding:0 12px;position:absolute;width:100%}.classification-block .select-type .select-type-footer .selected-num{color:rgba(0,0,0,.6)}.classification-block .select-type .select-type-footer .selected-item-del{color:#2474ff;cursor:pointer}
@@ -1,86 +0,0 @@
1
- declare const draggableComponent: import('vue').DefineComponent<
2
- {
3
- list: {
4
- type: ArrayConstructor;
5
- required: boolean;
6
- default: any;
7
- };
8
- modelValue: {
9
- type: ArrayConstructor;
10
- required: boolean;
11
- default: any;
12
- };
13
- itemKey: {
14
- type: (FunctionConstructor | StringConstructor)[];
15
- required: boolean;
16
- };
17
- clone: {
18
- type: FunctionConstructor;
19
- default: (original: any) => any;
20
- };
21
- tag: {
22
- type: StringConstructor;
23
- default: string;
24
- };
25
- move: {
26
- type: FunctionConstructor;
27
- default: any;
28
- };
29
- componentData: {
30
- type: ObjectConstructor;
31
- required: boolean;
32
- default: any;
33
- };
34
- },
35
- unknown,
36
- {
37
- error: boolean;
38
- },
39
- {
40
- realList(): any;
41
- getKey(): any;
42
- },
43
- {
44
- getUnderlyingVm(domElement: any): any;
45
- getUnderlyingPotencialDraggableComponent(htmElement: any): any;
46
- emitChanges(evt: any): void;
47
- alterList(onList: any): void;
48
- spliceList(): void;
49
- updatePosition(oldIndex: any, newIndex: any): void;
50
- getRelatedContextFromMoveEvent({ to, related }: { to: any; related: any }): any;
51
- getVmIndexFromDomIndex(domIndex: any): any;
52
- onDragStart(evt: any): void;
53
- onDragAdd(evt: any): void;
54
- onDragRemove(evt: any): void;
55
- onDragUpdate(evt: any): void;
56
- computeFutureIndex(relatedContext: any, evt: any): any;
57
- onDragMove(evt: any, originalEvent: any): any;
58
- onDragEnd(): void;
59
- },
60
- import('vue').ComponentOptionsMixin,
61
- import('vue').ComponentOptionsMixin,
62
- any[],
63
- any,
64
- import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps,
65
- Readonly<
66
- {
67
- move: Function;
68
- tag: string;
69
- clone: Function;
70
- list: unknown[];
71
- modelValue: unknown[];
72
- componentData: Record<string, any>;
73
- } & {
74
- itemKey?: string | Function;
75
- }
76
- >,
77
- {
78
- move: Function;
79
- tag: string;
80
- clone: Function;
81
- list: unknown[];
82
- modelValue: unknown[];
83
- componentData: Record<string, any>;
84
- }
85
- >;
86
- export default draggableComponent;
@@ -1,31 +0,0 @@
1
- export declare enum LogsType {
2
- DEFAULT = "default",
3
- PRIMARY = "primary",
4
- SUCCESS = "success",
5
- WARNING = "warning",
6
- DANGER = "danger"
7
- }
8
- declare class Log {
9
- /**
10
- * @description 打印一个 [ title | text ] 样式的信息
11
- * @param {String} title title text
12
- * @param {String} info info text
13
- * @param {String} type style
14
- * @param {any[]} appendInfo
15
- */
16
- capsule(title: string, info: any, type?: LogsType, ...appendInfo: any[]): void;
17
- /**
18
- * @description 打印彩色文字
19
- */
20
- colorful(textArr: {
21
- text: any;
22
- type: LogsType;
23
- }[]): void;
24
- text(text: any): void;
25
- primary(text: any): void;
26
- success(text: any): void;
27
- warning(text: any): void;
28
- danger(text: any): void;
29
- }
30
- declare const log: Log;
31
- export default log;
@@ -1 +0,0 @@
1
- var r=(r=>(r.DEFAULT="default",r.PRIMARY="primary",r.SUCCESS="success",r.WARNING="warning",r.DANGER="danger",r))(r||{});function t(r="primary"){return{default:"#f5f5f5",primary:"#409EFF",success:"#67C23A",warning:"#E6A23C",danger:"#F56C6C"}[r]}const e=new class{capsule(r,e,a="primary",...o){console.log(`%c ${r} %c ${e} %c`,"background:#35495E; padding: 1px; border-radius: 3px 0 0 3px; color: #fff;",`background:${t(a)}; padding: 1px; border-radius: 0 3px 3px 0; color: #fff;`,"background:transparent",...o)}colorful(r){console.log(`%c${r.map((r=>r.text||"")).join("%c")}`,...r.map((r=>`color: ${t(r.type)};`)))}text(r){this.colorful([{text:r,type:"default"}])}primary(r){this.colorful([{text:r,type:"primary"}])}success(r){this.colorful([{text:r,type:"success"}])}warning(r){this.colorful([{text:r,type:"warning"}])}danger(r){this.colorful([{text:r,type:"danger"}])}};export{r as LogsType,e as default};