cnhis-design-vue 3.1.44-release.5 → 3.1.44

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 (169) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +0 -6
  3. package/es/components/base-search/src/index.vue.d.ts +0 -6
  4. package/es/components/base-search/src/index.vue2.js +1 -1
  5. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  6. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  7. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  8. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  9. package/es/components/classification/index.d.ts +553 -75
  10. package/es/components/classification/src/components/search-filter/index.vue.d.ts +551 -61
  11. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  12. package/es/components/classification/src/components/set-classification/index.vue.d.ts +553 -75
  13. package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
  14. package/es/components/classification/src/components/table-modal/index.vue.d.ts +1 -1
  15. package/es/components/classification/src/const/index.d.ts +2 -2
  16. package/es/components/classification/src/index.vue.d.ts +553 -75
  17. package/es/components/classification/src/index.vue2.js +1 -1
  18. package/es/components/classification/style/index.css +1 -1
  19. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  20. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -1
  21. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.d.ts +1 -1
  23. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  24. package/es/components/fabric-chart/src/hooks/useBottom.d.ts +1 -1
  25. package/es/components/fabric-chart/src/hooks/useBottom.js +1 -1
  26. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +1 -1
  27. package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
  28. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -1
  29. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  30. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -1
  31. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  32. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
  33. package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +1 -1
  35. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
  36. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
  37. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  38. package/es/components/fabric-chart/src/hooks/useOther.d.ts +1 -1
  39. package/es/components/fabric-chart/src/hooks/useOther.js +1 -1
  40. package/es/components/fabric-chart/src/hooks/useRight.d.ts +1 -1
  41. package/es/components/fabric-chart/src/hooks/useRight.js +1 -1
  42. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
  43. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
  44. package/es/components/fabric-chart/src/hooks/useShadow.d.ts +1 -1
  45. package/es/components/fabric-chart/src/hooks/useShadow.js +1 -1
  46. package/es/components/fabric-chart/src/hooks/useTemperatureChart.d.ts +1 -1
  47. package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -1
  48. package/es/components/fabric-chart/src/hooks/useTop.d.ts +1 -1
  49. package/es/components/fabric-chart/src/hooks/useTop.js +1 -1
  50. package/es/components/fabric-chart/src/interface.d.ts +2 -2
  51. package/es/components/fabric-chart/src/utils/index.js +1 -1
  52. package/es/components/form-config/index.d.ts +0 -2
  53. package/es/components/form-config/src/FormConfig.vue.d.ts +0 -2
  54. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +0 -1
  55. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +0 -1
  56. package/es/components/form-render/index.d.ts +0 -1
  57. package/es/components/form-render/src/FormRender.vue.d.ts +0 -1
  58. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  59. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +0 -1
  60. package/es/components/form-render/src/components/renderer/input.d.ts +4 -4
  61. package/es/components/form-render/src/components/renderer/input.js +1 -1
  62. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +4 -4
  63. package/es/components/form-render/src/components/renderer/inputNumber.js +1 -1
  64. package/es/components/form-render/src/types/index.d.ts +2 -0
  65. package/es/components/iho-table/index.d.ts +2 -0
  66. package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -0
  67. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +1 -0
  68. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
  69. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
  70. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +3 -4
  71. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
  72. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  73. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  74. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +1 -1
  75. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  76. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  77. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
  78. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
  79. package/es/components/iho-table/src/types/index.d.ts +1 -0
  80. package/es/components/iho-table/style/index.css +1 -1
  81. package/es/components/index.css +1 -1
  82. package/es/components/index.d.ts +2 -1
  83. package/es/components/index.js +1 -1
  84. package/es/components/info-header/index.d.ts +8 -2
  85. package/es/components/info-header/src/InfoHeader.vue.d.ts +8 -2
  86. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +0 -1
  87. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +0 -1
  88. package/es/components/picture-clipper/index.d.ts +59 -0
  89. package/es/components/picture-clipper/index.js +1 -0
  90. package/es/components/picture-clipper/src/PictureClipper.vue.d.ts +59 -0
  91. package/es/components/picture-clipper/src/PictureClipper.vue.js +1 -0
  92. package/es/components/picture-clipper/src/PictureClipper.vue2.js +1 -0
  93. package/es/components/picture-clipper/style/index.css +1 -0
  94. package/es/components/quick-search/index.d.ts +0 -6
  95. package/es/components/quick-search/src/index.vue.d.ts +0 -6
  96. package/es/components/quick-search/src/index.vue2.js +1 -1
  97. package/es/components/quick-search/style/index.css +1 -1
  98. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  99. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  100. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  101. package/es/components/shortcut-setter/index.d.ts +0 -1
  102. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +0 -1
  103. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +551 -48
  104. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  105. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +134 -0
  106. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.js +1 -0
  107. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -0
  108. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +140 -0
  109. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.js +1 -0
  110. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -0
  111. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts +28 -0
  112. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.js +1 -0
  113. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -0
  114. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.d.ts +28 -0
  115. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.js +1 -0
  116. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue2.js +1 -0
  117. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.d.ts +54 -0
  118. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.js +1 -0
  119. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +1 -0
  120. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +61 -0
  121. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.js +1 -0
  122. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -0
  123. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +68 -0
  124. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.js +1 -0
  125. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -0
  126. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +47 -0
  127. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -0
  128. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +551 -0
  129. package/es/components/table-filter/src/components/classify-filter/components/index.js +1 -0
  130. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +551 -48
  131. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -1
  132. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  133. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  134. package/es/components/table-filter/src/components/render-widget/components/{Label.vue.d.ts → LabelInner.vue.d.ts} +1 -9
  135. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.js +1 -0
  136. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -0
  137. package/es/components/table-filter/src/components/render-widget/components/{SelectLabel.vue.d.ts → LabelOut.vue.d.ts} +1 -9
  138. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.js +1 -0
  139. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -0
  140. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +1 -9
  141. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  142. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +713 -8
  143. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  144. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +0 -6
  145. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  146. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -27
  147. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  148. package/es/components/table-filter/src/constants/index.d.ts +3 -0
  149. package/es/components/table-filter/src/constants/index.js +1 -0
  150. package/es/components/table-filter/src/directive/resize.js +1 -1
  151. package/es/components/table-filter/src/tool/baseOptions.d.ts +4 -0
  152. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  153. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  154. package/es/components/table-filter/src/tool/transformData.js +1 -1
  155. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  156. package/es/components/table-filter/src/types/enums.js +1 -1
  157. package/es/env.d.ts +25 -25
  158. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  159. package/es/shared/package.json.js +1 -1
  160. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  161. package/es/shared/utils/fabricjs/index.js +1 -0
  162. package/es/shared/utils/tapable/index.d.ts +139 -0
  163. package/package.json +2 -2
  164. package/es/components/fabric-chart/src/utils/utils.js +0 -1
  165. package/es/components/table-filter/src/components/render-widget/components/Label.vue.js +0 -1
  166. package/es/components/table-filter/src/components/render-widget/components/Label.vue2.js +0 -1
  167. package/es/components/table-filter/src/components/render-widget/components/SelectLabel.vue2.js +0 -1
  168. /package/es/components/fabric-chart/src/utils/{utils.d.ts → index.d.ts} +0 -0
  169. /package/es/components/table-filter/src/components/{render-widget → classify-filter}/components/SelectLabel.vue.js +0 -0
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式1 (按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式2 (全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3.FAQ
65
-
66
- ### 3.1 项目打包后样式丢失
67
-
68
- 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
-
70
- ```typescript
71
- // vite.config.ts
72
- import { defineConfig } from 'vite';
73
-
74
- export default defineConfig({
75
- build: {
76
- rollupOptions: {
77
- // ..otherOptions
78
- output: {
79
- dir: './dist',
80
- manualChunks: {
81
- 'cnhis-vendor': ['cnhis-design-vue']
82
- }
83
- }
84
- }
85
- }
86
- });
87
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式1 (按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式2 (全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3.FAQ
65
+
66
+ ### 3.1 项目打包后样式丢失
67
+
68
+ 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
+
70
+ ```typescript
71
+ // vite.config.ts
72
+ import { defineConfig } from 'vite';
73
+
74
+ export default defineConfig({
75
+ build: {
76
+ rollupOptions: {
77
+ // ..otherOptions
78
+ output: {
79
+ dir: './dist',
80
+ manualChunks: {
81
+ 'cnhis-vendor': ['cnhis-design-vue']
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ ```
@@ -140,9 +140,6 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
140
140
  modelValue: {
141
141
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
142
142
  };
143
- filterApiConfig: {
144
- type: ObjectConstructor;
145
- };
146
143
  }, any, {
147
144
  initialProps: {};
148
145
  }, {
@@ -166,9 +163,6 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
166
163
  modelValue: {
167
164
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
168
165
  };
169
- filterApiConfig: {
170
- type: ObjectConstructor;
171
- };
172
166
  }>> & {
173
167
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
174
168
  onOutFilterChange?: ((...args: any[]) => any) | undefined;
@@ -141,9 +141,6 @@ declare const _default: import("vue").DefineComponent<{
141
141
  modelValue: {
142
142
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
143
143
  };
144
- filterApiConfig: {
145
- type: ObjectConstructor;
146
- };
147
144
  }, any, {
148
145
  initialProps: {};
149
146
  }, {
@@ -167,9 +164,6 @@ declare const _default: import("vue").DefineComponent<{
167
164
  modelValue: {
168
165
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
169
166
  };
170
- filterApiConfig: {
171
- type: ObjectConstructor;
172
- };
173
167
  }>> & {
174
168
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
175
169
  onOutFilterChange?: ((...args: any[]) => any) | undefined;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as i,watch as l,openBlock as a,createElementBlock as n,createElementVNode as r,createCommentVNode as o,renderSlot as s,unref as u,createVNode as c,withCtx as f,createTextVNode as d,toDisplayString as h,Fragment as m,renderList as p}from"vue";import v from"../../table-filter/src/components/render-widget/index.vue.js";import g from"../../table-filter/src/hooks/useMixins.js";import b from"../../table-filter/src/hooks/useAdvanced.js";import C from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as y,NIcon as k}from"naive-ui";import{Search as S}from"@vicons/ionicons5";import{cloneDeep as j}from"lodash-es";const q={class:"base-search-block"},x={class:"base-container"},R={class:"bease-left"},A={class:"base-ul"},O={key:0,class:"baseli showQuickBtn"},F=r("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),I={key:0,class:"qqConObjCount"},Q={key:1,class:"baseli"},V={key:2,class:"baseli"},_=r("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var w=e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0,hideResetBtn:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0},filterApiConfig:{type:Object}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{expose:w,emit:B}){const E=e,{outQuickSearchFn:D}=g(),{isRender:L,getRenderSearchConObj:N,isExistDefValByRenderWidget:P,resetRenderWidgetValue:W}=C(),{transformData:U,transformParams:$}=b(),z=t([]),M=t(!1),T=t([]),G=i((()=>J("hideQuickSearch"))),H=i((()=>J("hideResetBtn")));function J(e){return 0==E.showSettings[e]}function K(){B("foldQuickSearch",!0)}function X(e={}){const t=Z()||[];!function(e,t,i=!1,l={}){let a=[];T.value.length>0&&(a=j(T.value));B("onFilterSearch",e,t,i,a,l)}(t,$(t),!0,e)}function Y(e,t){T.value.forEach((i=>{i._frontId===e&&(i.widgetCfg.isInit=t)}))}function Z(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let i=0;i<e.length;i++){let l=e[i];const a=N(l);a&&t.push(a)}return t.filter((e=>e.value))}(T.value)}function ee(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{W(e)})),D.handlerInitSearchItem(e)}(T.value),B("handleReset",{targetType:"outQuickSearchReset"})}return l((()=>E.searchFieldList),(e=>{e&&e.length>0&&function(){T.value=[];let e=j(U(E.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));T.value=e,D.handlerInitSearchItem(T.value),T.value.some((e=>L(e)?P(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),l((()=>E.qqConObjCount),(e=>{const t=z.value.length||0;M.value=t+Number(e)>0&&H.value}),{immediate:!0}),l((()=>T),(()=>{z.value=Z()||[];const e=$(z.value);M.value=z.value.length+Number(E.qqConObjCount)>0&&H.value,B("getFilterParam",z.value,e)}),{immediate:!0,deep:!0}),w({handleReset:ee}),(t,i)=>(a(),n("div",q,[r("div",x,[r("div",R,[r("ul",A,[o(" 筛选分类插槽 "),s(t.$slots,"classification"),u(G)?(a(),n("li",O,[c(u(y),{class:"search-default",type:"default",onClick:K},{default:f((()=>[F,d(" 筛选"),e.qqConObjCount?(a(),n("span",I,"("+h(e.qqConObjCount)+")",1)):o("v-if",!0)])),_:1})])):o("v-if",!0),o(" start--筛选外显--start "),(a(!0),n(m,null,p(T.value,(t=>(a(),n(m,null,[t.isRender?(a(),n("li",{class:"baseli outQuickSearch-li",key:t._frontId},[c(v,{cfg:t,modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,filterApiConfig:e.filterApiConfig,onOutFilterChange:X,onChangeInit:Y},null,8,["cfg","modelValue","onUpdate:modelValue","filterApiConfig"])])):o("v-if",!0)],64)))),256)),o(" end--筛选外显--end "),o(" 查询按钮 "),T.value&&T.value.length>0?(a(),n("li",Q,[c(u(y),{type:"primary",onClick:X},{default:f((()=>[c(u(k),{component:u(S),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),d(" 查询 ")])),_:1})])):o("v-if",!0),o(" 重置按钮 "),M.value?(a(),n("li",V,[c(u(y),{onClick:ee},{default:f((()=>[_,d(" 重置 ")])),_:1})])):o("v-if",!0),o(" 业务按钮插槽 "),s(t.$slots,"buttons")])])])]))}});export{w as default};
1
+ import{defineComponent as e,ref as t,provide as l,computed as i,watch as a,openBlock as n,createElementBlock as r,createElementVNode as s,createCommentVNode as o,renderSlot as u,unref as c,createVNode as f,withCtx as d,createTextVNode as h,toDisplayString as m,Fragment as v,renderList as p}from"vue";import b from"../../table-filter/src/components/render-widget/index.vue.js";import g from"../../table-filter/src/hooks/useMixins.js";import y from"../../table-filter/src/hooks/useAdvanced.js";import C from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as k,NIcon as S}from"naive-ui";import{Search as j}from"@vicons/ionicons5";import{cloneDeep as x}from"lodash-es";import{InjectionFilterApiConfig as q}from"../../table-filter/src/constants/index.js";const R={class:"base-search-block"},O={class:"base-container"},F={class:"bease-left"},A={class:"base-ul"},I={key:0,class:"baseli showQuickBtn"},Q=s("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),V={key:0,class:"qqConObjCount"},_={key:1,class:"baseli"},w={key:2,class:"baseli"},B=s("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var E=e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0,hideResetBtn:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0},filterApiConfig:{type:Object}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{expose:E,emit:D}){const L=e,{outQuickSearchFn:N}=g(),{isRender:P,getRenderSearchConObj:W,isExistDefValByRenderWidget:U,resetRenderWidgetValue:$}=C(),{transformData:z,transformParams:M}=y(),T=t([]),G=t(!1),H=t([]);l(q,L.filterApiConfig);const J=i((()=>X("hideQuickSearch"))),K=i((()=>X("hideResetBtn")));function X(e){return 0==L.showSettings[e]}function Y(){D("foldQuickSearch",!0)}function Z(e={}){const t=te()||[];!function(e,t,l=!1,i={}){let a=[];H.value.length>0&&(a=x(H.value));D("onFilterSearch",e,t,l,a,i)}(t,M(t),!0,e)}function ee(e,t){H.value.forEach((l=>{l._frontId===e&&(l.widgetCfg.isInit=t)}))}function te(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let l=0;l<e.length;l++){let i=e[l];const a=W(i);a&&t.push(a)}return t.filter((e=>e.value))}(H.value)}function le(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{$(e)})),N.handlerInitSearchItem(e)}(H.value),D("handleReset",{targetType:"outQuickSearchReset"})}return a((()=>L.searchFieldList),(e=>{e&&e.length>0&&function(){H.value=[];let e=x(z(L.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));H.value=e,N.handlerInitSearchItem(H.value),H.value.some((e=>P(e)?U(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),a((()=>L.qqConObjCount),(e=>{const t=T.value.length||0;G.value=t+Number(e)>0&&K.value}),{immediate:!0}),a((()=>H),(()=>{T.value=te()||[];const e=M(T.value);G.value=T.value.length+Number(L.qqConObjCount)>0&&K.value,D("getFilterParam",T.value,e)}),{immediate:!0,deep:!0}),E({handleReset:le}),(t,l)=>(n(),r("div",R,[s("div",O,[s("div",F,[s("ul",A,[o(" 筛选分类插槽 "),u(t.$slots,"classification"),c(J)?(n(),r("li",I,[f(c(k),{class:"search-default",type:"default",onClick:Y},{default:d((()=>[Q,h(" 筛选"),e.qqConObjCount?(n(),r("span",V,"("+m(e.qqConObjCount)+")",1)):o("v-if",!0)])),_:1})])):o("v-if",!0),o(" start--筛选外显--start "),(n(!0),r(v,null,p(H.value,(e=>(n(),r(v,null,[e.isRender?(n(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[f(b,{cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:Z,onChangeInit:ee},null,8,["cfg","modelValue","onUpdate:modelValue"])])):o("v-if",!0)],64)))),256)),o(" end--筛选外显--end "),o(" 查询按钮 "),H.value&&H.value.length>0?(n(),r("li",_,[f(c(k),{type:"primary",onClick:Z},{default:d((()=>[f(c(S),{component:c(j),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),h(" 查询 ")])),_:1})])):o("v-if",!0),o(" 重置按钮 "),G.value?(n(),r("li",w,[f(c(k),{onClick:le},{default:d((()=>[B,h(" 重置 ")])),_:1})])):o("v-if",!0),o(" 业务按钮插槽 "),u(t.$slots,"buttons")])])])]))}});export{E as default};
@@ -0,0 +1 @@
1
+ declare module 'bpmn-js/lib/Viewer';
@@ -0,0 +1 @@
1
+ declare module 'bpmn-js/lib/features/modeling';
@@ -0,0 +1 @@
1
+ declare module 'diagram-js/lib/navigation/movecanvas';