@ctzy-web-client/plugin-component-vue 1.0.26 → 1.0.27

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 (228) hide show
  1. package/es/_virtual/_plugin-vue_export-helper.mjs +11 -0
  2. package/es/advance-select/advance-operation.mjs +48 -51
  3. package/es/advance-select/advance-option.mjs +128 -163
  4. package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +11 -5
  5. package/es/advance-select/advance-select.mjs +323 -370
  6. package/es/advance-select/events-helpers.mjs +9 -0
  7. package/es/advance-select/index.mjs +9 -0
  8. package/es/advance-select/use-advance-option.mjs +9 -0
  9. package/es/advance-select/use-advance-select.mjs +9 -0
  10. package/es/application-slot/application-slot.mjs +9 -0
  11. package/es/application-slot/breadcrumb-item.mjs +26 -20
  12. package/es/application-slot/header-tools-item.mjs +26 -20
  13. package/es/application-slot/index.mjs +9 -0
  14. package/es/breadcrumb-select/breadcrumb-select.mjs +123 -137
  15. package/es/breadcrumb-select/index.mjs +9 -0
  16. package/es/components.mjs +9 -0
  17. package/es/contextmenu/contextmenu-item.mjs +24 -19
  18. package/es/contextmenu/contextmenu.mjs +68 -73
  19. package/es/contextmenu/index.mjs +9 -0
  20. package/es/contextmenu/use-contextmenu.mjs +10 -1
  21. package/es/data-form/data-form-item.mjs +41 -49
  22. package/es/data-form/data-form.mjs +176 -213
  23. package/es/data-form/dynamic-component.mjs +9 -0
  24. package/es/data-form/form-components/Blots/AtBlot.mjs +9 -0
  25. package/es/data-form/form-components/bwa-date-picker.mjs +50 -51
  26. package/es/data-form/form-components/bwa-date-time-picker.mjs +55 -56
  27. package/es/data-form/form-components/bwa-input-float.mjs +48 -48
  28. package/es/data-form/form-components/bwa-input-integer.mjs +61 -68
  29. package/es/data-form/form-components/bwa-input.mjs +43 -43
  30. package/es/data-form/form-components/bwa-multi-select.mjs +40 -40
  31. package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +230 -555
  32. package/es/data-form/form-components/bwa-rich-text.mjs +326 -404
  33. package/es/data-form/form-components/bwa-select.mjs +81 -84
  34. package/es/data-form/form-components/bwa-textarea.mjs +38 -38
  35. package/es/data-form/form-components/bwa-upload.mjs +160 -173
  36. package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -35
  37. package/es/data-form/form-components/bwa-user-select.mjs +72 -86
  38. package/es/data-form/index.mjs +9 -0
  39. package/es/data-table/data-column-view.mjs +124 -146
  40. package/es/data-table/data-table-card.mjs +49 -48
  41. package/es/data-table/data-table-column.mjs +55 -58
  42. package/es/data-table/data-table.mjs +328 -404
  43. package/es/data-table/dynamic-component.mjs +9 -0
  44. package/es/data-table/index.mjs +9 -0
  45. package/es/data-table/use-datatable-drag.mjs +9 -0
  46. package/es/datatable-settings/datatable-settings.mjs +286 -328
  47. package/es/datatable-settings/index.mjs +9 -0
  48. package/es/date-range/date-picker.mjs +125 -131
  49. package/es/date-range/date-range.mjs +173 -216
  50. package/es/date-range/index.mjs +9 -0
  51. package/es/drag-list/constants.mjs +10 -0
  52. package/es/drag-list/drag-item.mjs +51 -56
  53. package/es/drag-list/drag-list.mjs +58 -60
  54. package/es/drag-list/index.mjs +9 -0
  55. package/es/drag-list/use-drag-list.mjs +10 -1
  56. package/es/dragable/constants.mjs +10 -0
  57. package/es/dragable/dragable-item.mjs +27 -23
  58. package/es/dragable/dragable-operation.mjs +33 -32
  59. package/es/dragable/dragable.mjs +33 -32
  60. package/es/dragable/index.mjs +9 -0
  61. package/es/dragable/use-dragable.mjs +9 -0
  62. package/es/filter-panel/conditions/condition.mjs +9 -0
  63. package/es/filter-panel/conditions/date-range-condition.mjs +51 -50
  64. package/es/filter-panel/conditions/department-condition/department-condition.mjs +82 -99
  65. package/es/filter-panel/conditions/department-condition/department-node.mjs +69 -73
  66. package/es/filter-panel/conditions/index.mjs +9 -0
  67. package/es/filter-panel/conditions/input-condition.mjs +88 -91
  68. package/es/filter-panel/conditions/multi-user-condition.mjs +66 -67
  69. package/es/filter-panel/conditions/multiple-menu-condition.mjs +44 -54
  70. package/es/filter-panel/conditions/single-menu-condition.mjs +71 -65
  71. package/es/filter-panel/conditions/single-user-condition.mjs +66 -67
  72. package/es/filter-panel/filter-panel-item.mjs +51 -55
  73. package/es/filter-panel/filter-panel.mjs +147 -156
  74. package/es/filter-panel/index.mjs +9 -0
  75. package/es/filter-panel/use-filter-panel-item.mjs +9 -0
  76. package/es/filter-panel/use-filter-panel.mjs +9 -0
  77. package/es/hooks/use-data/index.mjs +9 -0
  78. package/es/index.mjs +9 -0
  79. package/es/layout/index.mjs +9 -0
  80. package/es/layout/layout.mjs +87 -85
  81. package/es/make-installer.mjs +9 -0
  82. package/es/math/Rectangle.mjs +10 -0
  83. package/es/menu/index.mjs +9 -0
  84. package/es/menu/menu-item.mjs +65 -70
  85. package/es/menu/menu.mjs +64 -70
  86. package/es/node_modules/.pnpm/{@vueuse_core@9.6.0_vue@3.2.41 → @vueuse_core@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/core/index.mjs +680 -454
  87. package/es/node_modules/.pnpm/{@vueuse_shared@9.6.0_vue@3.2.41 → @vueuse_shared@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/shared/index.mjs +108 -46
  88. package/es/panel/index.mjs +9 -0
  89. package/es/panel/panel.mjs +49 -53
  90. package/es/panel-tabs/index.mjs +9 -0
  91. package/es/panel-tabs/panel-tabs.mjs +9 -0
  92. package/es/pct-filter-panel/index.mjs +9 -0
  93. package/es/pct-filter-panel/pct-compents/index.mjs +9 -0
  94. package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +73 -75
  95. package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +77 -77
  96. package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +345 -374
  97. package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +149 -154
  98. package/es/pct-filter-panel/pct-filter-panel-item.mjs +52 -56
  99. package/es/pct-filter-panel/pct-filter-panel.mjs +235 -248
  100. package/es/pct-filter-panel/use-filter-panel-item.mjs +9 -0
  101. package/es/pct-filter-panel/use-filter-panel.mjs +9 -0
  102. package/es/plugins.mjs +9 -0
  103. package/es/progress/index.mjs +9 -0
  104. package/es/progress/progress-item.mjs +71 -81
  105. package/es/progress/progress.mjs +74 -78
  106. package/es/progress/use-progress.mjs +9 -0
  107. package/es/utils/db.mjs +9 -0
  108. package/es/utils.css +1 -0
  109. package/es/utils.mjs +9 -0
  110. package/es/where-filter-panel/index.mjs +9 -1
  111. package/es/where-filter-panel/use-where-filter-panel.mjs +9 -0
  112. package/es/where-filter-panel/where-filter-panel.mjs +21 -15
  113. package/lib/_virtual/_plugin-vue_export-helper.js +11 -0
  114. package/lib/advance-select/advance-operation.js +47 -50
  115. package/lib/advance-select/advance-option.js +127 -162
  116. package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +11 -6
  117. package/lib/advance-select/advance-select.js +322 -369
  118. package/lib/advance-select/events-helpers.js +9 -0
  119. package/lib/advance-select/index.js +9 -0
  120. package/lib/advance-select/use-advance-option.js +9 -0
  121. package/lib/advance-select/use-advance-select.js +9 -0
  122. package/lib/application-slot/application-slot.js +9 -0
  123. package/lib/application-slot/breadcrumb-item.js +25 -19
  124. package/lib/application-slot/header-tools-item.js +25 -19
  125. package/lib/application-slot/index.js +9 -0
  126. package/lib/breadcrumb-select/breadcrumb-select.js +122 -136
  127. package/lib/breadcrumb-select/index.js +9 -0
  128. package/lib/components.js +9 -0
  129. package/lib/contextmenu/contextmenu-item.js +23 -18
  130. package/lib/contextmenu/contextmenu.js +67 -72
  131. package/lib/contextmenu/index.js +9 -0
  132. package/lib/contextmenu/use-contextmenu.js +10 -1
  133. package/lib/data-form/data-form-item.js +40 -48
  134. package/lib/data-form/data-form.js +175 -212
  135. package/lib/data-form/dynamic-component.js +9 -0
  136. package/lib/data-form/form-components/Blots/AtBlot.js +9 -0
  137. package/lib/data-form/form-components/bwa-date-picker.js +49 -50
  138. package/lib/data-form/form-components/bwa-date-time-picker.js +54 -55
  139. package/lib/data-form/form-components/bwa-input-float.js +47 -47
  140. package/lib/data-form/form-components/bwa-input-integer.js +60 -67
  141. package/lib/data-form/form-components/bwa-input.js +42 -42
  142. package/lib/data-form/form-components/bwa-multi-select.js +39 -39
  143. package/lib/data-form/form-components/bwa-rich-text-tinymce.js +229 -554
  144. package/lib/data-form/form-components/bwa-rich-text.js +325 -403
  145. package/lib/data-form/form-components/bwa-select.js +80 -83
  146. package/lib/data-form/form-components/bwa-textarea.js +37 -37
  147. package/lib/data-form/form-components/bwa-upload.js +159 -172
  148. package/lib/data-form/form-components/bwa-user-multi-select.js +34 -34
  149. package/lib/data-form/form-components/bwa-user-select.js +71 -85
  150. package/lib/data-form/index.js +9 -0
  151. package/lib/data-table/data-column-view.js +124 -146
  152. package/lib/data-table/data-table-card.js +49 -48
  153. package/lib/data-table/data-table-column.js +54 -57
  154. package/lib/data-table/data-table.js +327 -403
  155. package/lib/data-table/dynamic-component.js +9 -0
  156. package/lib/data-table/index.js +9 -0
  157. package/lib/data-table/use-datatable-drag.js +9 -0
  158. package/lib/datatable-settings/datatable-settings.js +285 -327
  159. package/lib/datatable-settings/index.js +9 -0
  160. package/lib/date-range/date-picker.js +124 -130
  161. package/lib/date-range/date-range.js +172 -215
  162. package/lib/date-range/index.js +9 -0
  163. package/lib/drag-list/constants.js +10 -0
  164. package/lib/drag-list/drag-item.js +50 -55
  165. package/lib/drag-list/drag-list.js +57 -59
  166. package/lib/drag-list/index.js +9 -0
  167. package/lib/drag-list/use-drag-list.js +10 -1
  168. package/lib/dragable/constants.js +10 -0
  169. package/lib/dragable/dragable-item.js +26 -22
  170. package/lib/dragable/dragable-operation.js +32 -31
  171. package/lib/dragable/dragable.js +32 -31
  172. package/lib/dragable/index.js +9 -0
  173. package/lib/dragable/use-dragable.js +9 -0
  174. package/lib/filter-panel/conditions/condition.js +9 -0
  175. package/lib/filter-panel/conditions/date-range-condition.js +50 -49
  176. package/lib/filter-panel/conditions/department-condition/department-condition.js +81 -98
  177. package/lib/filter-panel/conditions/department-condition/department-node.js +68 -72
  178. package/lib/filter-panel/conditions/index.js +9 -0
  179. package/lib/filter-panel/conditions/input-condition.js +87 -90
  180. package/lib/filter-panel/conditions/multi-user-condition.js +65 -66
  181. package/lib/filter-panel/conditions/multiple-menu-condition.js +43 -53
  182. package/lib/filter-panel/conditions/single-menu-condition.js +70 -64
  183. package/lib/filter-panel/conditions/single-user-condition.js +65 -66
  184. package/lib/filter-panel/filter-panel-item.js +50 -54
  185. package/lib/filter-panel/filter-panel.js +146 -155
  186. package/lib/filter-panel/index.js +9 -0
  187. package/lib/filter-panel/use-filter-panel-item.js +9 -0
  188. package/lib/filter-panel/use-filter-panel.js +9 -0
  189. package/lib/hooks/use-data/index.js +9 -0
  190. package/lib/index.js +9 -0
  191. package/lib/layout/index.js +9 -0
  192. package/lib/layout/layout.js +86 -84
  193. package/lib/make-installer.js +9 -0
  194. package/lib/math/Rectangle.js +10 -0
  195. package/lib/menu/index.js +9 -0
  196. package/lib/menu/menu-item.js +64 -69
  197. package/lib/menu/menu.js +63 -69
  198. package/lib/node_modules/.pnpm/{@vueuse_core@9.6.0_vue@3.2.41 → @vueuse_core@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/core/index.js +685 -451
  199. package/lib/node_modules/.pnpm/{@vueuse_shared@9.6.0_vue@3.2.41 → @vueuse_shared@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/shared/index.js +109 -44
  200. package/lib/panel/index.js +9 -0
  201. package/lib/panel/panel.js +48 -52
  202. package/lib/panel-tabs/index.js +9 -0
  203. package/lib/panel-tabs/panel-tabs.js +9 -0
  204. package/lib/pct-filter-panel/index.js +9 -0
  205. package/lib/pct-filter-panel/pct-compents/index.js +9 -0
  206. package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +72 -74
  207. package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +76 -76
  208. package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +344 -373
  209. package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +148 -153
  210. package/lib/pct-filter-panel/pct-filter-panel-item.js +51 -55
  211. package/lib/pct-filter-panel/pct-filter-panel.js +234 -247
  212. package/lib/pct-filter-panel/use-filter-panel-item.js +9 -0
  213. package/lib/pct-filter-panel/use-filter-panel.js +9 -0
  214. package/lib/plugins.js +9 -0
  215. package/lib/progress/index.js +9 -0
  216. package/lib/progress/progress-item.js +70 -80
  217. package/lib/progress/progress.js +73 -77
  218. package/lib/progress/use-progress.js +9 -0
  219. package/lib/utils/db.js +9 -0
  220. package/lib/utils.css +1 -0
  221. package/lib/utils.js +9 -0
  222. package/lib/where-filter-panel/index.js +9 -0
  223. package/lib/where-filter-panel/use-where-filter-panel.js +9 -0
  224. package/lib/where-filter-panel/where-filter-panel.js +20 -14
  225. package/package.json +1 -1
  226. package/style/index.css +1 -1
  227. package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +0 -28
  228. package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +0 -32
@@ -8,268 +8,255 @@ var useFilterPanel = require('./use-filter-panel.js');
8
8
  var pctFilterPanelItem = require('./pct-filter-panel-item.js');
9
9
  var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
10
10
 
11
- const _sfc_main = {
12
- __name: 'pct-filter-panel',
13
- props: {
14
- dataTable: {
15
- type: Object,
16
- },
17
- showSearch: {
18
- type: Boolean,
19
- default: false,
20
- },
21
- showFieldOptions: {
22
- type: Boolean,
23
- default: true,
24
- },
25
- searchAttr: {
26
- type: String,
27
- default: 'search',
28
- },
29
- searchPlaceholder: {
30
- type: String,
31
- default: '',
32
- },
33
- searchFields: {
34
- type: Array,
35
- default: () => [],
36
- },
37
- showTitle: {
38
- type: Boolean,
39
- default: false,
40
- },
41
- searchTitle: {
42
- type: String,
43
- default: '标题名称',
44
- },
45
- filterPanelLineNum: {
46
- type: Number
47
- }
48
- },
49
- emits: ['reset', 'filter'],
50
- setup(__props, { emit }) {
51
-
52
- const props = __props;
53
-
54
- defineOptions({
55
- name: 'BwaPctFilterPanel',
56
- });
57
-
58
-
59
-
60
-
61
-
62
- const ns = webBaseClientVue.useNamespace('pctfilterpanel');
63
-
64
- const {
65
- dataTable,
66
- filterPanel,
67
- currentFilterColumns,
68
- selectedColumnAttrNames,
69
- closableColumns,
70
- searchParams,
71
- handleFieldSearch,
72
- searchValue,
73
- isChange,
74
- handleReset,
75
- handleSearch
76
- } = useFilterPanel.useFilterPanel(props, { emit });
77
- console.log(currentFilterColumns);
78
- vue.watch(
79
- filterPanel,
80
- (filterPanel, _, onCleanup) => {
81
- filterPanel.existComponent = true;
82
-
83
- onCleanup(() => {
84
- filterPanel.existComponent = false;
85
- });
86
- },
87
- { immediate: true }
88
- );
89
-
90
- vue.provide(
91
- webBaseClientVue.filterPanelKey,
92
- vue.reactive({
93
- dataTable,
94
- filterPanel,
95
- currentFilterColumns,
96
- showTitle: props.showTitle,
97
- filterPanelLineNum: props.filterPanelLineNum
98
- })
99
- );
100
-
101
- return (_ctx, _cache) => {
102
- const _component_BwaPctMultipleMenuCondition = vue.resolveComponent("BwaPctMultipleMenuCondition");
103
- const _component_BwaPctInputCondition = vue.resolveComponent("BwaPctInputCondition");
104
- const _component_BwaPctDateRangeCondition = vue.resolveComponent("BwaPctDateRangeCondition");
105
- const _component_ElInput = vue.resolveComponent("ElInput");
106
- const _component_ElButton = vue.resolveComponent("ElButton");
107
- const _component_ElCheckbox = vue.resolveComponent("ElCheckbox");
108
- const _component_BwaAdvanceOption = vue.resolveComponent("BwaAdvanceOption");
109
- const _component_BwaAdvanceSelect = vue.resolveComponent("BwaAdvanceSelect");
110
-
111
- return (vue.openBlock(), vue.createElementBlock("div", {
112
- class: vue.normalizeClass(vue.unref(ns).b())
113
- }, [
114
- vue.renderSlot(_ctx.$slots, "default", {}, () => [
115
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(currentFilterColumns), (column) => {
116
- return vue.renderSlot(_ctx.$slots, `condition-${column.attrName}`, {
117
- key: column.attrName,
118
- attrName: column.attrName
119
- }, () => [
120
- vue.createVNode(pctFilterPanelItem["default"], {
121
- prop: column.fullAttrName
122
- }, {
123
- default: vue.withCtx(({ data }) => [
124
- (!column.component || column.component === 'BwaMultipleMenuCondition'|| column.component === 'BwaSingleMenuCondition')
125
- ? (vue.openBlock(), vue.createBlock(_component_BwaPctMultipleMenuCondition, {
126
- key: 0,
127
- modelValue: data.value,
128
- "onUpdate:modelValue": $event => ((data.value) = $event),
129
- column: column,
130
- multiple: column.component !== 'BwaSingleMenuCondition',
131
- showTitle: props.showTitle,
132
- showSearch: column.componentProps?.showSearch,
133
- options: column.componentProps?.options || []
134
- }, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "column", "multiple", "showTitle", "showSearch", "options"]))
135
- : vue.createCommentVNode("v-if", true),
136
- (column.component === 'BwaInputCondition')
137
- ? (vue.openBlock(), vue.createBlock(_component_BwaPctInputCondition, {
138
- key: 1,
139
- modelValue: data.value,
140
- "onUpdate:modelValue": $event => ((data.value) = $event),
141
- column: column,
142
- showTitle: props.showTitle
143
- }, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "column", "showTitle"]))
144
- : vue.createCommentVNode("v-if", true),
145
- (column.component === 'BwaDateRangeCondition')
146
- ? (vue.openBlock(), vue.createBlock(_component_BwaPctDateRangeCondition, {
147
- key: 2,
148
- modelValue: data.value,
149
- "onUpdate:modelValue": $event => ((data.value) = $event),
150
- showTitle: props.showTitle
151
- }, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "showTitle"]))
152
- : vue.createCommentVNode("v-if", true)
153
- ]),
154
- _: 2 /* DYNAMIC */
155
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["prop"])
156
- ])
157
- }), 128 /* KEYED_FRAGMENT */))
158
- ]),
159
- (__props.showSearch)
160
- ? (vue.openBlock(), vue.createElementBlock("div", {
11
+ // Inject __name helper
12
+ if (typeof __name === 'undefined') {
13
+ function __name(obj, name) {
14
+ Object.defineProperty(obj, "name", {
15
+ value: name,
16
+ configurable: true
17
+ });
18
+ }
19
+ }
20
+ const __default__ = vue.defineComponent({
21
+ name: "BwaPctFilterPanel"
22
+ });
23
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
24
+ props: {
25
+ dataTable: {
26
+ type: Object
27
+ },
28
+ showSearch: {
29
+ type: Boolean,
30
+ default: false
31
+ },
32
+ showFieldOptions: {
33
+ type: Boolean,
34
+ default: true
35
+ },
36
+ searchAttr: {
37
+ type: String,
38
+ default: "search"
39
+ },
40
+ searchPlaceholder: {
41
+ type: String,
42
+ default: ""
43
+ },
44
+ searchFields: {
45
+ type: Array,
46
+ default: () => []
47
+ },
48
+ showTitle: {
49
+ type: Boolean,
50
+ default: false
51
+ },
52
+ searchTitle: {
53
+ type: String,
54
+ default: "\u6807\u9898\u540D\u79F0"
55
+ },
56
+ filterPanelLineNum: {
57
+ type: Number
58
+ }
59
+ },
60
+ emits: ["reset", "filter"],
61
+ setup(__props, { emit: __emit }) {
62
+ ;
63
+ const props = __props;
64
+ const emit = __emit;
65
+ const ns = webBaseClientVue.useNamespace("pctfilterpanel");
66
+ const {
67
+ dataTable,
68
+ filterPanel,
69
+ currentFilterColumns,
70
+ selectedColumnAttrNames,
71
+ closableColumns,
72
+ searchParams,
73
+ handleFieldSearch,
74
+ searchValue,
75
+ isChange,
76
+ handleReset,
77
+ handleSearch
78
+ } = useFilterPanel.useFilterPanel(props, { emit });
79
+ console.log(currentFilterColumns);
80
+ vue.watch(
81
+ filterPanel,
82
+ (filterPanel2, _, onCleanup) => {
83
+ filterPanel2.existComponent = true;
84
+ onCleanup(() => {
85
+ filterPanel2.existComponent = false;
86
+ });
87
+ },
88
+ { immediate: true }
89
+ );
90
+ vue.provide(
91
+ webBaseClientVue.filterPanelKey,
92
+ vue.reactive({
93
+ dataTable,
94
+ filterPanel,
95
+ currentFilterColumns,
96
+ showTitle: props.showTitle,
97
+ filterPanelLineNum: props.filterPanelLineNum
98
+ })
99
+ );
100
+ return (_ctx, _cache) => {
101
+ const _component_BwaPctMultipleMenuCondition = vue.resolveComponent("BwaPctMultipleMenuCondition");
102
+ const _component_BwaPctInputCondition = vue.resolveComponent("BwaPctInputCondition");
103
+ const _component_BwaPctDateRangeCondition = vue.resolveComponent("BwaPctDateRangeCondition");
104
+ const _component_ElInput = vue.resolveComponent("ElInput");
105
+ const _component_ElButton = vue.resolveComponent("ElButton");
106
+ const _component_ElCheckbox = vue.resolveComponent("ElCheckbox");
107
+ const _component_BwaAdvanceOption = vue.resolveComponent("BwaAdvanceOption");
108
+ const _component_BwaAdvanceSelect = vue.resolveComponent("BwaAdvanceSelect");
109
+ return vue.openBlock(), vue.createElementBlock("div", {
110
+ class: vue.normalizeClass(vue.unref(ns).b())
111
+ }, [
112
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
113
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(currentFilterColumns), (column) => {
114
+ return vue.renderSlot(_ctx.$slots, `condition-${column.attrName}`, {
115
+ key: column.attrName,
116
+ attrName: column.attrName
117
+ }, () => [
118
+ vue.createVNode(pctFilterPanelItem["default"], {
119
+ prop: column.fullAttrName
120
+ }, {
121
+ default: vue.withCtx(({ data }) => {
122
+ var _a, _b;
123
+ return [
124
+ !column.component || column.component === "BwaMultipleMenuCondition" || column.component === "BwaSingleMenuCondition" ? (vue.openBlock(), vue.createBlock(_component_BwaPctMultipleMenuCondition, {
125
+ key: 0,
126
+ modelValue: data.value,
127
+ "onUpdate:modelValue": ($event) => data.value = $event,
128
+ column,
129
+ multiple: column.component !== "BwaSingleMenuCondition",
130
+ showTitle: props.showTitle,
131
+ showSearch: (_a = column.componentProps) == null ? void 0 : _a.showSearch,
132
+ options: ((_b = column.componentProps) == null ? void 0 : _b.options) || []
133
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "column", "multiple", "showTitle", "showSearch", "options"])) : vue.createCommentVNode("v-if", true),
134
+ column.component === "BwaInputCondition" ? (vue.openBlock(), vue.createBlock(_component_BwaPctInputCondition, {
135
+ key: 1,
136
+ modelValue: data.value,
137
+ "onUpdate:modelValue": ($event) => data.value = $event,
138
+ column,
139
+ showTitle: props.showTitle
140
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "column", "showTitle"])) : vue.createCommentVNode("v-if", true),
141
+ column.component === "BwaDateRangeCondition" ? (vue.openBlock(), vue.createBlock(_component_BwaPctDateRangeCondition, {
142
+ key: 2,
143
+ modelValue: data.value,
144
+ "onUpdate:modelValue": ($event) => data.value = $event,
145
+ showTitle: props.showTitle
146
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "showTitle"])) : vue.createCommentVNode("v-if", true)
147
+ ];
148
+ }),
149
+ _: 2
150
+ }, 1032, ["prop"])
151
+ ]);
152
+ }), 128))
153
+ ]),
154
+ __props.showSearch ? (vue.openBlock(), vue.createElementBlock("div", {
161
155
  key: 0,
162
- style: vue.normalizeStyle([{"display":"flex","align-items":"center","padding-right":"20px","box-sizing":"border-box"}, {
163
- 'width': props.filterPanelLineNum ? (100 / props.filterPanelLineNum).toFixed(2) + '%' : props.showTitle ? '25%' : '20%',
164
- }])
156
+ style: vue.normalizeStyle([{ "display": "flex", "align-items": "center", "padding-right": "20px", "box-sizing": "border-box" }, {
157
+ "width": props.filterPanelLineNum ? (100 / props.filterPanelLineNum).toFixed(2) + "%" : props.showTitle ? "25%" : "20%"
158
+ }])
165
159
  }, [
166
- (__props.showTitle)
167
- ? (vue.openBlock(), vue.createElementBlock("div", {
168
- key: 0,
169
- class: vue.normalizeClass(vue.unref(ns).e('title')),
170
- style: {"padding-right":"8px"}
171
- }, vue.toDisplayString(__props.searchTitle), 3 /* TEXT, CLASS */))
172
- : vue.createCommentVNode("v-if", true),
160
+ __props.showTitle ? (vue.openBlock(), vue.createElementBlock("div", {
161
+ key: 0,
162
+ class: vue.normalizeClass(vue.unref(ns).e("title")),
163
+ style: { "padding-right": "8px" }
164
+ }, vue.toDisplayString(__props.searchTitle), 3)) : vue.createCommentVNode("v-if", true),
173
165
  vue.createVNode(_component_ElInput, {
174
166
  "prefix-icon": "Search",
175
167
  clearable: "",
176
168
  modelValue: vue.unref(searchValue),
177
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(searchValue) ? (searchValue).value = $event : null)),
169
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(searchValue) ? searchValue.value = $event : null),
178
170
  placeholder: __props.searchPlaceholder,
179
- class: vue.normalizeClass(vue.unref(ns).e('search'))
180
- }, null, 8 /* PROPS */, ["modelValue", "placeholder", "class"])
181
- ], 4 /* STYLE */))
182
- : vue.createCommentVNode("v-if", true),
183
- (__props.showFieldOptions)
184
- ? (vue.openBlock(), vue.createBlock(pctFilterPanelItem["default"], {
171
+ class: vue.normalizeClass(vue.unref(ns).e("search"))
172
+ }, null, 8, ["modelValue", "placeholder", "class"])
173
+ ], 4)) : vue.createCommentVNode("v-if", true),
174
+ __props.showFieldOptions ? (vue.openBlock(), vue.createBlock(pctFilterPanelItem["default"], {
185
175
  key: 1,
186
- style: {"width":"auto","padding-right":"16px"}
176
+ style: { "width": "auto", "padding-right": "16px" }
187
177
  }, {
188
178
  default: vue.withCtx(() => [
189
- (__props.showFieldOptions)
190
- ? (vue.openBlock(), vue.createBlock(_component_BwaAdvanceSelect, {
191
- key: 0,
192
- modelValue: vue.unref(selectedColumnAttrNames),
193
- "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(selectedColumnAttrNames) ? (selectedColumnAttrNames).value = $event : null)),
194
- "show-selectIcon": false,
195
- onSearch: vue.unref(handleFieldSearch),
196
- class: vue.normalizeClass(vue.unref(ns).e('options')),
197
- source: "pct"
179
+ __props.showFieldOptions ? (vue.openBlock(), vue.createBlock(_component_BwaAdvanceSelect, {
180
+ key: 0,
181
+ modelValue: vue.unref(selectedColumnAttrNames),
182
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(selectedColumnAttrNames) ? selectedColumnAttrNames.value = $event : null),
183
+ "show-selectIcon": false,
184
+ onSearch: vue.unref(handleFieldSearch),
185
+ class: vue.normalizeClass(vue.unref(ns).e("options")),
186
+ source: "pct"
187
+ }, {
188
+ "reference-content": vue.withCtx(() => [
189
+ vue.createVNode(_component_ElButton, {
190
+ class: vue.normalizeClass(vue.unref(ns).e("filterBut"))
198
191
  }, {
199
- "reference-content": vue.withCtx(() => [
200
- vue.createVNode(_component_ElButton, {
201
- class: vue.normalizeClass(vue.unref(ns).e('filterBut'))
202
- }, {
203
- default: vue.withCtx(() => [
204
- vue.createElementVNode("div", {
205
- class: vue.normalizeClass(vue.unref(ns).be('filter', 'plus'))
206
- }, null, 2 /* CLASS */),
207
- vue.createElementVNode("span", {
208
- class: vue.normalizeClass(vue.unref(ns).be('filter', 'label'))
209
- }, " 筛选 ", 2 /* CLASS */)
210
- ]),
211
- _: 1 /* STABLE */
212
- }, 8 /* PROPS */, ["class"])
213
- ]),
214
192
  default: vue.withCtx(() => [
215
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(closableColumns), (column) => {
216
- return (vue.openBlock(), vue.createBlock(_component_BwaAdvanceOption, {
217
- value: column.fullAttrName,
218
- label: column.title,
219
- key: column.fullAttrName,
220
- class: vue.normalizeClass(vue.unref(ns).be('filter', 'option'))
193
+ vue.createElementVNode("div", {
194
+ class: vue.normalizeClass(vue.unref(ns).be("filter", "plus"))
195
+ }, null, 2),
196
+ vue.createElementVNode("span", {
197
+ class: vue.normalizeClass(vue.unref(ns).be("filter", "label"))
198
+ }, " \u7B5B\u9009 ", 2)
199
+ ]),
200
+ _: 1
201
+ }, 8, ["class"])
202
+ ]),
203
+ default: vue.withCtx(() => [
204
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(closableColumns), (column) => {
205
+ return vue.openBlock(), vue.createBlock(_component_BwaAdvanceOption, {
206
+ value: column.fullAttrName,
207
+ label: column.title,
208
+ key: column.fullAttrName,
209
+ class: vue.normalizeClass(vue.unref(ns).be("filter", "option"))
210
+ }, {
211
+ default: vue.withCtx(() => [
212
+ vue.createVNode(_component_ElCheckbox, {
213
+ onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
214
+ }, ["prevent"])),
215
+ modelValue: vue.unref(selectedColumnAttrNames).includes(column.fullAttrName),
216
+ class: vue.normalizeClass(vue.unref(ns).be("filter", "checkbox"))
221
217
  }, {
222
218
  default: vue.withCtx(() => [
223
- vue.createVNode(_component_ElCheckbox, {
224
- onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {}, ["prevent"])),
225
- modelValue: vue.unref(selectedColumnAttrNames).includes(column.fullAttrName),
226
- class: vue.normalizeClass(vue.unref(ns).be('filter', 'checkbox'))
227
- }, {
228
- default: vue.withCtx(() => [
229
- vue.createTextVNode(vue.toDisplayString(column.title), 1 /* TEXT */)
230
- ]),
231
- _: 2 /* DYNAMIC */
232
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "class"]),
233
- vue.createElementVNode("span", {
234
- class: vue.normalizeClass(vue.unref(ns).be('filter', 'title'))
235
- }, vue.toDisplayString(column.componentTitle), 3 /* TEXT, CLASS */)
219
+ vue.createTextVNode(vue.toDisplayString(column.title), 1)
236
220
  ]),
237
- _: 2 /* DYNAMIC */
238
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["value", "label", "class"]))
239
- }), 128 /* KEYED_FRAGMENT */))
240
- ]),
241
- _: 1 /* STABLE */
242
- }, 8 /* PROPS */, ["modelValue", "onSearch", "class"]))
243
- : vue.createCommentVNode("v-if", true)
221
+ _: 2
222
+ }, 1032, ["modelValue", "class"]),
223
+ vue.createElementVNode("span", {
224
+ class: vue.normalizeClass(vue.unref(ns).be("filter", "title"))
225
+ }, vue.toDisplayString(column.componentTitle), 3)
226
+ ]),
227
+ _: 2
228
+ }, 1032, ["value", "label", "class"]);
229
+ }), 128))
230
+ ]),
231
+ _: 1
232
+ }, 8, ["modelValue", "onSearch", "class"])) : vue.createCommentVNode("v-if", true)
244
233
  ]),
245
- _: 1 /* STABLE */
246
- }))
247
- : vue.createCommentVNode("v-if", true),
248
- vue.createVNode(_component_ElButton, {
249
- type: "primary",
250
- class: vue.normalizeClass(vue.unref(ns).e('reset')),
251
- onClick: vue.unref(handleSearch)
252
- }, {
253
- default: vue.withCtx(() => [
254
- vue.createTextVNode(" 查询 ")
255
- ]),
256
- _: 1 /* STABLE */
257
- }, 8 /* PROPS */, ["class", "onClick"]),
258
- vue.createVNode(_component_ElButton, {
259
- class: vue.normalizeClass(vue.unref(ns).e('reset')),
260
- onClick: vue.unref(handleReset)
261
- }, {
262
- default: vue.withCtx(() => [
263
- vue.createTextVNode(" 重置 ")
264
- ]),
265
- _: 1 /* STABLE */
266
- }, 8 /* PROPS */, ["class", "onClick"]),
267
- vue.renderSlot(_ctx.$slots, "button")
268
- ], 2 /* CLASS */))
269
- }
270
- }
271
-
272
- };
273
- var PctFilterPanel = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"pct-filter-panel.vue"]]);
234
+ _: 1
235
+ })) : vue.createCommentVNode("v-if", true),
236
+ vue.createVNode(_component_ElButton, {
237
+ type: "primary",
238
+ class: vue.normalizeClass(vue.unref(ns).e("reset")),
239
+ onClick: vue.unref(handleSearch)
240
+ }, {
241
+ default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
242
+ vue.createTextVNode(" \u67E5\u8BE2 ", -1)
243
+ ])]),
244
+ _: 1
245
+ }, 8, ["class", "onClick"]),
246
+ vue.createVNode(_component_ElButton, {
247
+ class: vue.normalizeClass(vue.unref(ns).e("reset")),
248
+ onClick: vue.unref(handleReset)
249
+ }, {
250
+ default: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
251
+ vue.createTextVNode(" \u91CD\u7F6E ", -1)
252
+ ])]),
253
+ _: 1
254
+ }, 8, ["class", "onClick"]),
255
+ vue.renderSlot(_ctx.$slots, "button")
256
+ ], 2);
257
+ };
258
+ }
259
+ });
260
+ var PctFilterPanel = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "pct-filter-panel.vue"]]);
274
261
 
275
262
  exports["default"] = PctFilterPanel;
@@ -5,6 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
7
7
 
8
+ // Inject __name helper
9
+ if (typeof __name === 'undefined') {
10
+ function __name(obj, name) {
11
+ Object.defineProperty(obj, "name", {
12
+ value: name,
13
+ configurable: true
14
+ });
15
+ }
16
+ }
8
17
  const useFilterPanelItem = (props) => {
9
18
  const filterPanelContext = vue.inject(webBaseClientVue.filterPanelKey);
10
19
  const showTitle = vue.computed(() => filterPanelContext.showTitle);
@@ -8,6 +8,15 @@ var vue = require('vue');
8
8
  var rxjs = require('rxjs');
9
9
  var db = require('../utils/db.js');
10
10
 
11
+ // Inject __name helper
12
+ if (typeof __name === 'undefined') {
13
+ function __name(obj, name) {
14
+ Object.defineProperty(obj, "name", {
15
+ value: name,
16
+ configurable: true
17
+ });
18
+ }
19
+ }
11
20
  const useFilterPanel = (props, context) => {
12
21
  var _a;
13
22
  const dataTable = ElementPlus.useProp("dataTable");
package/lib/plugins.js CHANGED
@@ -4,6 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var index = require('./contextmenu/index.js');
6
6
 
7
+ // Inject __name helper
8
+ if (typeof __name === 'undefined') {
9
+ function __name(obj, name) {
10
+ Object.defineProperty(obj, "name", {
11
+ value: name,
12
+ configurable: true
13
+ });
14
+ }
15
+ }
7
16
  var plugins = [index.BwaContextmenu];
8
17
 
9
18
  exports["default"] = plugins;
@@ -6,6 +6,15 @@ var install = require('element-plus/es/utils/vue/install');
6
6
  var progress = require('./progress.js');
7
7
  var progressItem = require('./progress-item.js');
8
8
 
9
+ // Inject __name helper
10
+ if (typeof __name === 'undefined') {
11
+ function __name(obj, name) {
12
+ Object.defineProperty(obj, "name", {
13
+ value: name,
14
+ configurable: true
15
+ });
16
+ }
17
+ }
9
18
  const BwaProgress = install.withInstall(progress["default"], {
10
19
  ProgressItem: progressItem["default"]
11
20
  });