@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
@@ -1,198 +1,189 @@
1
- import { watch, provide, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot, Fragment, renderList, createVNode, withCtx, createBlock, isRef, createCommentVNode, createElementVNode, withModifiers, createTextVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, watch, provide, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot, Fragment, renderList, createVNode, withCtx, createBlock, isRef, createCommentVNode, createElementVNode, withModifiers, createTextVNode, toDisplayString } from 'vue';
2
2
  import { useNamespace, filterPanelKey } from '@ctzy-web-client/web-base-client-vue';
3
3
  import { useFilterPanel } from './use-filter-panel.mjs';
4
4
  import FilterPanelItem from './filter-panel-item.mjs';
5
5
  import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
6
6
 
7
- const _sfc_main = {
8
- __name: 'filter-panel',
9
- props: {
10
- dataTable: {
11
- type: Object,
12
- },
13
- showSearch: {
14
- type: Boolean,
15
- default: false,
16
- },
17
- showFieldOptions: {
18
- type: Boolean,
19
- default: true,
20
- },
21
- searchAttr: {
22
- type: String,
23
- default: 'search',
24
- },
25
- searchPlaceholder: {
26
- type: String,
27
- default: '',
28
- },
29
- searchFields: {
30
- type: Array,
31
- default: () => [],
32
- },
33
- },
34
- emits: ['reset', 'filter'],
35
- setup(__props, { emit }) {
36
-
37
- const props = __props;
38
-
39
- defineOptions({
40
- name: 'BwaFilterPanel',
41
- });
42
-
43
-
44
-
45
-
46
-
47
- const ns = useNamespace('filterpanel');
48
-
49
- const {
50
- dataTable,
51
- filterPanel,
52
- currentFilterColumns,
53
- selectedColumnAttrNames,
54
- closableColumns,
55
- searchParams,
56
- handleFieldSearch,
57
- searchValue,
58
- isChange,
59
- handleReset,
60
- } = useFilterPanel(props, { emit });
61
-
62
- watch(
63
- filterPanel,
64
- (filterPanel, _, onCleanup) => {
65
- filterPanel.existComponent = true;
66
-
67
- onCleanup(() => {
68
- filterPanel.existComponent = false;
69
- });
70
- },
71
- { immediate: true }
72
- );
73
-
74
- provide(
75
- filterPanelKey,
76
- reactive({
77
- dataTable,
78
- filterPanel,
79
- currentFilterColumns,
80
- })
81
- );
82
-
83
- return (_ctx, _cache) => {
84
- const _component_BwaCondition = resolveComponent("BwaCondition");
85
- const _component_ElCheckbox = resolveComponent("ElCheckbox");
86
- const _component_BwaAdvanceOption = resolveComponent("BwaAdvanceOption");
87
- const _component_BwaAdvanceSelect = resolveComponent("BwaAdvanceSelect");
88
- const _component_ElInput = resolveComponent("ElInput");
89
- const _component_ElButton = resolveComponent("ElButton");
90
-
91
- return (openBlock(), createElementBlock("div", {
92
- class: normalizeClass(unref(ns).b())
93
- }, [
94
- renderSlot(_ctx.$slots, "default", {}, () => [
95
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(currentFilterColumns), (column) => {
96
- return renderSlot(_ctx.$slots, `condition-${column.attrName}`, {
97
- key: column.attrName,
98
- attrName: column.attrName
99
- }, () => [
100
- createVNode(FilterPanelItem, {
101
- prop: column.fullAttrName
102
- }, {
103
- default: withCtx(({ data }) => [
104
- createVNode(_component_BwaCondition, {
105
- modelValue: data.value,
106
- "onUpdate:modelValue": $event => ((data.value) = $event),
107
- column: column,
108
- record: unref(searchParams)
109
- }, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "column", "record"])
110
- ]),
111
- _: 2 /* DYNAMIC */
112
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["prop"])
113
- ])
114
- }), 128 /* KEYED_FRAGMENT */))
115
- ]),
116
- (__props.showFieldOptions)
117
- ? (openBlock(), createBlock(FilterPanelItem, { key: 0 }, {
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
+ }
16
+ const __default__ = defineComponent({
17
+ name: "BwaFilterPanel"
18
+ });
19
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
20
+ props: {
21
+ dataTable: {
22
+ type: Object
23
+ },
24
+ showSearch: {
25
+ type: Boolean,
26
+ default: false
27
+ },
28
+ showFieldOptions: {
29
+ type: Boolean,
30
+ default: true
31
+ },
32
+ searchAttr: {
33
+ type: String,
34
+ default: "search"
35
+ },
36
+ searchPlaceholder: {
37
+ type: String,
38
+ default: ""
39
+ },
40
+ searchFields: {
41
+ type: Array,
42
+ default: () => []
43
+ }
44
+ },
45
+ emits: ["reset", "filter"],
46
+ setup(__props, { emit: __emit }) {
47
+ ;
48
+ const props = __props;
49
+ const emit = __emit;
50
+ const ns = useNamespace("filterpanel");
51
+ const {
52
+ dataTable,
53
+ filterPanel,
54
+ currentFilterColumns,
55
+ selectedColumnAttrNames,
56
+ closableColumns,
57
+ searchParams,
58
+ handleFieldSearch,
59
+ searchValue,
60
+ isChange,
61
+ handleReset
62
+ } = useFilterPanel(props, { emit });
63
+ watch(
64
+ filterPanel,
65
+ (filterPanel2, _, onCleanup) => {
66
+ filterPanel2.existComponent = true;
67
+ onCleanup(() => {
68
+ filterPanel2.existComponent = false;
69
+ });
70
+ },
71
+ { immediate: true }
72
+ );
73
+ provide(
74
+ filterPanelKey,
75
+ reactive({
76
+ dataTable,
77
+ filterPanel,
78
+ currentFilterColumns
79
+ })
80
+ );
81
+ return (_ctx, _cache) => {
82
+ const _component_BwaCondition = resolveComponent("BwaCondition");
83
+ const _component_ElCheckbox = resolveComponent("ElCheckbox");
84
+ const _component_BwaAdvanceOption = resolveComponent("BwaAdvanceOption");
85
+ const _component_BwaAdvanceSelect = resolveComponent("BwaAdvanceSelect");
86
+ const _component_ElInput = resolveComponent("ElInput");
87
+ const _component_ElButton = resolveComponent("ElButton");
88
+ return openBlock(), createElementBlock("div", {
89
+ class: normalizeClass(unref(ns).b())
90
+ }, [
91
+ renderSlot(_ctx.$slots, "default", {}, () => [
92
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(currentFilterColumns), (column) => {
93
+ return renderSlot(_ctx.$slots, `condition-${column.attrName}`, {
94
+ key: column.attrName,
95
+ attrName: column.attrName
96
+ }, () => [
97
+ createVNode(FilterPanelItem, {
98
+ prop: column.fullAttrName
99
+ }, {
100
+ default: withCtx(({ data }) => [
101
+ createVNode(_component_BwaCondition, {
102
+ modelValue: data.value,
103
+ "onUpdate:modelValue": ($event) => data.value = $event,
104
+ column,
105
+ record: unref(searchParams)
106
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "column", "record"])
107
+ ]),
108
+ _: 2
109
+ }, 1032, ["prop"])
110
+ ]);
111
+ }), 128))
112
+ ]),
113
+ __props.showFieldOptions ? (openBlock(), createBlock(FilterPanelItem, { key: 0 }, {
118
114
  default: withCtx(() => [
119
115
  createVNode(_component_BwaAdvanceSelect, {
120
116
  modelValue: unref(selectedColumnAttrNames),
121
- "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (isRef(selectedColumnAttrNames) ? (selectedColumnAttrNames).value = $event : null)),
117
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(selectedColumnAttrNames) ? selectedColumnAttrNames.value = $event : null),
122
118
  "show-selectIcon": true,
123
119
  onSearch: unref(handleFieldSearch),
124
- class: normalizeClass(unref(ns).e('options'))
120
+ class: normalizeClass(unref(ns).e("options"))
125
121
  }, {
126
122
  "reference-content": withCtx(() => [
127
123
  createCommentVNode(" <ElIcon><Plus /></ElIcon> "),
128
124
  createElementVNode("div", {
129
- class: normalizeClass(unref(ns).be('filter', 'plus'))
130
- }, null, 2 /* CLASS */),
125
+ class: normalizeClass(unref(ns).be("filter", "plus"))
126
+ }, null, 2),
131
127
  createElementVNode("span", {
132
- class: normalizeClass(unref(ns).be('filter', 'label'))
133
- }, " 筛选 ", 2 /* CLASS */)
128
+ class: normalizeClass(unref(ns).be("filter", "label"))
129
+ }, " \u7B5B\u9009 ", 2)
134
130
  ]),
135
131
  default: withCtx(() => [
136
132
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(closableColumns), (column) => {
137
- return (openBlock(), createBlock(_component_BwaAdvanceOption, {
133
+ return openBlock(), createBlock(_component_BwaAdvanceOption, {
138
134
  value: column.fullAttrName,
139
135
  label: column.title,
140
136
  key: column.fullAttrName,
141
- class: normalizeClass(unref(ns).be('filter', 'option'))
137
+ class: normalizeClass(unref(ns).be("filter", "option"))
142
138
  }, {
143
139
  default: withCtx(() => [
144
140
  createVNode(_component_ElCheckbox, {
145
- onClick: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"])),
141
+ onClick: _cache[0] || (_cache[0] = withModifiers(() => {
142
+ }, ["prevent"])),
146
143
  modelValue: unref(selectedColumnAttrNames).includes(column.fullAttrName),
147
- class: normalizeClass(unref(ns).be('filter', 'checkbox'))
144
+ class: normalizeClass(unref(ns).be("filter", "checkbox"))
148
145
  }, {
149
146
  default: withCtx(() => [
150
- createTextVNode(toDisplayString(column.title), 1 /* TEXT */)
147
+ createTextVNode(toDisplayString(column.title), 1)
151
148
  ]),
152
- _: 2 /* DYNAMIC */
153
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "class"]),
149
+ _: 2
150
+ }, 1032, ["modelValue", "class"]),
154
151
  createElementVNode("span", {
155
- class: normalizeClass(unref(ns).be('filter', 'title'))
156
- }, toDisplayString(column.componentTitle), 3 /* TEXT, CLASS */)
152
+ class: normalizeClass(unref(ns).be("filter", "title"))
153
+ }, toDisplayString(column.componentTitle), 3)
157
154
  ]),
158
- _: 2 /* DYNAMIC */
159
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["value", "label", "class"]))
160
- }), 128 /* KEYED_FRAGMENT */))
155
+ _: 2
156
+ }, 1032, ["value", "label", "class"]);
157
+ }), 128))
161
158
  ]),
162
- _: 1 /* STABLE */
163
- }, 8 /* PROPS */, ["modelValue", "onSearch", "class"])
159
+ _: 1
160
+ }, 8, ["modelValue", "onSearch", "class"])
164
161
  ]),
165
- _: 1 /* STABLE */
166
- }))
167
- : createCommentVNode("v-if", true),
168
- (__props.showSearch)
169
- ? (openBlock(), createBlock(_component_ElInput, {
162
+ _: 1
163
+ })) : createCommentVNode("v-if", true),
164
+ __props.showSearch ? (openBlock(), createBlock(_component_ElInput, {
170
165
  key: 1,
171
166
  "prefix-icon": "Search",
172
167
  clearable: "",
173
168
  modelValue: unref(searchValue),
174
- "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(searchValue) ? (searchValue).value = $event : null)),
169
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(searchValue) ? searchValue.value = $event : null),
175
170
  placeholder: __props.searchPlaceholder,
176
- class: normalizeClass(unref(ns).e('search'))
177
- }, null, 8 /* PROPS */, ["modelValue", "placeholder", "class"]))
178
- : createCommentVNode("v-if", true),
179
- (unref(isChange))
180
- ? (openBlock(), createBlock(_component_ElButton, {
171
+ class: normalizeClass(unref(ns).e("search"))
172
+ }, null, 8, ["modelValue", "placeholder", "class"])) : createCommentVNode("v-if", true),
173
+ unref(isChange) ? (openBlock(), createBlock(_component_ElButton, {
181
174
  key: 2,
182
- class: normalizeClass(unref(ns).e('reset')),
175
+ class: normalizeClass(unref(ns).e("reset")),
183
176
  onClick: unref(handleReset)
184
177
  }, {
185
- default: withCtx(() => [
186
- createTextVNode(" 重置 ")
187
- ]),
188
- _: 1 /* STABLE */
189
- }, 8 /* PROPS */, ["class", "onClick"]))
190
- : createCommentVNode("v-if", true)
191
- ], 2 /* CLASS */))
192
- }
193
- }
194
-
195
- };
196
- var FilterPanel = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"filter-panel.vue"]]);
178
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
179
+ createTextVNode(" \u91CD\u7F6E ", -1)
180
+ ])]),
181
+ _: 1
182
+ }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
183
+ ], 2);
184
+ };
185
+ }
186
+ });
187
+ var FilterPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "filter-panel.vue"]]);
197
188
 
198
189
  export { FilterPanel as default };
@@ -5,6 +5,15 @@ import FilterPanelItem from './filter-panel-item.mjs';
5
5
  import { BwaCondition } from './conditions/index.mjs';
6
6
  export { BwaCondition } from './conditions/index.mjs';
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 BwaFilterPanel = withInstall(FilterPanel, {
9
18
  FilterPanelItem
10
19
  });
@@ -1,6 +1,15 @@
1
1
  import { inject, computed, unref, onMounted, onBeforeUnmount } from 'vue';
2
2
  import { filterPanelKey } from '@ctzy-web-client/web-base-client-vue';
3
3
 
4
+ // Inject __name helper
5
+ if (typeof __name === 'undefined') {
6
+ function __name(obj, name) {
7
+ Object.defineProperty(obj, "name", {
8
+ value: name,
9
+ configurable: true
10
+ });
11
+ }
12
+ }
4
13
  const useFilterPanelItem = (props) => {
5
14
  const filterPanelContext = inject(filterPanelKey);
6
15
  const filterPanel = computed(() => filterPanelContext.filterPanel);
@@ -4,6 +4,15 @@ import { computed, unref, watch, nextTick, onBeforeUnmount, getCurrentInstance,
4
4
  import { Observable } from 'rxjs';
5
5
  import { dataModelDB } from '../utils/db.mjs';
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
  const useFilterPanel = (props, context) => {
8
17
  var _a;
9
18
  const dataTable = useProp("dataTable");
@@ -4,6 +4,15 @@ import { ref, inject, computed, unref, watch, onBeforeUnmount } from 'vue';
4
4
  import { Observable, debounceTime, combineLatest, filter, map, tap, from, catchError, of, mergeAll } from 'rxjs';
5
5
  import { isEqual } from 'lodash';
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
  const dataProps = {
8
17
  dataTable: {
9
18
  type: Object
package/es/index.mjs CHANGED
@@ -19,6 +19,15 @@ export { BwaProgress, BwaProgressItem } from './progress/index.mjs';
19
19
  export { BwaDragable, BwaDragableItem, BwaDragableOperation } from './dragable/index.mjs';
20
20
  export { useContextmenu } from './contextmenu/use-contextmenu.mjs';
21
21
 
22
+ // Inject __name helper
23
+ if (typeof __name === 'undefined') {
24
+ function __name(obj, name) {
25
+ Object.defineProperty(obj, "name", {
26
+ value: name,
27
+ configurable: true
28
+ });
29
+ }
30
+ }
22
31
  const install = makeInstaller([...components, ...plugins]);
23
32
  var index = {
24
33
  install
@@ -1,6 +1,15 @@
1
1
  import { withInstall } from 'element-plus/es/utils/vue/install';
2
2
  import Layout from './layout.mjs';
3
3
 
4
+ // Inject __name helper
5
+ if (typeof __name === 'undefined') {
6
+ function __name(obj, name) {
7
+ Object.defineProperty(obj, "name", {
8
+ value: name,
9
+ configurable: true
10
+ });
11
+ }
12
+ }
4
13
  const BwaLayout = withInstall(Layout);
5
14
 
6
15
  export { BwaLayout, BwaLayout as default };
@@ -1,93 +1,95 @@
1
- import { computed, unref, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, renderSlot, createElementVNode } from 'vue';
1
+ import { defineComponent, computed, unref, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, renderSlot, createElementVNode } from 'vue';
2
2
  import { useRouter } from 'vue-router';
3
3
  import { useNamespace, useService } from '@ctzy-web-client/web-base-client-vue';
4
4
  import { BwaMenu } from '../menu/index.mjs';
5
5
  import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
6
6
 
7
- const _sfc_main = {
8
- __name: 'layout',
9
- setup(__props) {
10
-
11
- defineOptions({
12
- name: 'BwaLayout',
13
- });
14
-
15
- const router = useRouter();
16
-
17
- const ns = useNamespace('layout');
18
-
19
- const menuService = useService('MenuService');
20
-
21
- const isCollapsed = computed(() => unref(menuService)?.isCollapsed ?? false);
22
-
23
- const menus = computed(() => unref(menuService)?.getMenus() ?? []);
24
- const currentMenuID = computed(
25
- () => unref(menuService)?.getCurrentMenu()?.id ?? ''
26
- );
27
-
28
- const handleSelect = (menu) => {
29
- if (!menu) {
30
- return;
31
- }
32
-
33
- switch (menu?.type) {
34
- case 0:
35
- unref(menuService).setCurrentMenuById(menu.id);
36
- router.push(menu.path);
37
- break;
38
- case 1:
39
- let openLink = '';
40
-
41
- if (
42
- path.toLowerCase().indexOf('https://') == 0 ||
43
- path.toLowerCase().indexOf('http://') == 0
44
- ) {
45
- openLink = path;
46
- } else if (path.startsWith('//')) {
47
- openLink = location.protocol + path;
48
- } else {
49
- openLink = path;
50
- }
51
-
52
- window.open(openLink);
53
- break;
54
- }
55
- };
56
-
57
- return (_ctx, _cache) => {
58
- const _component_ElScrollbar = resolveComponent("ElScrollbar");
59
-
60
- return (openBlock(), createElementBlock("div", {
61
- class: normalizeClass([unref(ns).b(), 'justify-between'])
62
- }, [
63
- createVNode(_component_ElScrollbar, {
64
- class: normalizeClass(unref(ns).e('menu-wrapper')),
65
- height: "100%"
66
- }, {
67
- default: withCtx(() => [
68
- renderSlot(_ctx.$slots, "left-panel", {}, () => [
69
- createVNode(unref(BwaMenu), {
70
- class: normalizeClass(unref(ns).e('menu')),
71
- menus: unref(menus),
72
- currentMenuID: unref(currentMenuID),
73
- collapsed: unref(isCollapsed),
74
- onSelect: handleSelect
75
- }, null, 8 /* PROPS */, ["class", "menus", "currentMenuID", "collapsed"])
76
- ]),
77
- renderSlot(_ctx.$slots, "left-panel-append")
78
- ]),
79
- _: 3 /* FORWARDED */
80
- }, 8 /* PROPS */, ["class"]),
81
- createElementVNode("div", {
82
- class: normalizeClass(unref(ns).e('main'))
83
- }, [
84
- renderSlot(_ctx.$slots, "default")
85
- ], 2 /* CLASS */)
86
- ], 2 /* CLASS */))
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
+ }
87
15
  }
88
- }
89
-
90
- };
91
- var Layout = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"layout.vue"]]);
16
+ const __default__ = defineComponent({
17
+ name: "BwaLayout"
18
+ });
19
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
20
+ setup(__props) {
21
+ ;
22
+ const router = useRouter();
23
+ const ns = useNamespace("layout");
24
+ const menuService = useService("MenuService");
25
+ const isCollapsed = computed(() => {
26
+ var _a, _b;
27
+ return (_b = (_a = unref(menuService)) == null ? void 0 : _a.isCollapsed) != null ? _b : false;
28
+ });
29
+ const menus = computed(() => {
30
+ var _a, _b;
31
+ return (_b = (_a = unref(menuService)) == null ? void 0 : _a.getMenus()) != null ? _b : [];
32
+ });
33
+ const currentMenuID = computed(
34
+ () => {
35
+ var _a, _b, _c;
36
+ return (_c = (_b = (_a = unref(menuService)) == null ? void 0 : _a.getCurrentMenu()) == null ? void 0 : _b.id) != null ? _c : "";
37
+ }
38
+ );
39
+ const handleSelect = (menu) => {
40
+ if (!menu) {
41
+ return;
42
+ }
43
+ switch (menu == null ? void 0 : menu.type) {
44
+ case 0:
45
+ unref(menuService).setCurrentMenuById(menu.id);
46
+ router.push(menu.path);
47
+ break;
48
+ case 1:
49
+ let openLink = "";
50
+ if (path.toLowerCase().indexOf("https://") == 0 || path.toLowerCase().indexOf("http://") == 0) {
51
+ openLink = path;
52
+ } else if (path.startsWith("//")) {
53
+ openLink = location.protocol + path;
54
+ } else {
55
+ openLink = path;
56
+ }
57
+ window.open(openLink);
58
+ break;
59
+ }
60
+ };
61
+ return (_ctx, _cache) => {
62
+ const _component_ElScrollbar = resolveComponent("ElScrollbar");
63
+ return openBlock(), createElementBlock("div", {
64
+ class: normalizeClass([unref(ns).b(), "justify-between"])
65
+ }, [
66
+ createVNode(_component_ElScrollbar, {
67
+ class: normalizeClass(unref(ns).e("menu-wrapper")),
68
+ height: "100%"
69
+ }, {
70
+ default: withCtx(() => [
71
+ renderSlot(_ctx.$slots, "left-panel", {}, () => [
72
+ createVNode(unref(BwaMenu), {
73
+ class: normalizeClass(unref(ns).e("menu")),
74
+ menus: menus.value,
75
+ currentMenuID: currentMenuID.value,
76
+ collapsed: isCollapsed.value,
77
+ onSelect: handleSelect
78
+ }, null, 8, ["class", "menus", "currentMenuID", "collapsed"])
79
+ ]),
80
+ renderSlot(_ctx.$slots, "left-panel-append")
81
+ ]),
82
+ _: 3
83
+ }, 8, ["class"]),
84
+ createElementVNode("div", {
85
+ class: normalizeClass(unref(ns).e("main"))
86
+ }, [
87
+ renderSlot(_ctx.$slots, "default")
88
+ ], 2)
89
+ ], 2);
90
+ };
91
+ }
92
+ });
93
+ var Layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "layout.vue"]]);
92
94
 
93
95
  export { Layout as default };
@@ -3,6 +3,15 @@ import * as icons from '@element-plus/icons';
3
3
  import zhCn from 'element-plus/es/locale/lang/zh-cn';
4
4
  import { provideGlobalConfig } from '@ctzy-web-client/web-base-client-vue';
5
5
 
6
+ // Inject __name helper
7
+ if (typeof __name === 'undefined') {
8
+ function __name(obj, name) {
9
+ Object.defineProperty(obj, "name", {
10
+ value: name,
11
+ configurable: true
12
+ });
13
+ }
14
+ }
6
15
  const INSTALLED_KEY = Symbol("INSTALLED_KEY");
7
16
  const makeInstaller = (components = []) => {
8
17
  const install = (app, options) => {
@@ -1,3 +1,13 @@
1
+ // Inject __name helper
2
+ if (typeof __name === 'undefined') {
3
+ function __name(obj, name) {
4
+ Object.defineProperty(obj, "name", {
5
+ value: name,
6
+ configurable: true
7
+ });
8
+ }
9
+ }
10
+
1
11
  class Rectangle {
2
12
  constructor(x, y, width, height) {
3
13
  if (width < 0) {