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

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 (233) 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 +134 -164
  4. package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_daae7edd_lang.mjs +13 -0
  5. package/es/advance-select/advance-select.mjs +327 -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 +357 -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.css +1 -0
  103. package/es/plugins.mjs +9 -0
  104. package/es/progress/index.mjs +9 -0
  105. package/es/progress/progress-item.mjs +71 -81
  106. package/es/progress/progress.mjs +74 -78
  107. package/es/progress/use-progress.mjs +9 -0
  108. package/es/utils/db.mjs +9 -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 +133 -163
  116. package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_daae7edd_lang.js +17 -0
  117. package/lib/advance-select/advance-select.js +326 -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 +356 -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.css +1 -0
  215. package/lib/plugins.js +9 -0
  216. package/lib/progress/index.js +9 -0
  217. package/lib/progress/progress-item.js +70 -80
  218. package/lib/progress/progress.js +73 -77
  219. package/lib/progress/use-progress.js +9 -0
  220. package/lib/utils/db.js +9 -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/src/advance-select/advance-option.vue +13 -7
  227. package/src/advance-select/advance-select.vue +8 -1
  228. package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +10 -1
  229. package/style/index.css +1 -1
  230. package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +0 -7
  231. package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +0 -28
  232. package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +0 -12
  233. package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +0 -32
@@ -7,86 +7,76 @@ var rxjs = require('rxjs');
7
7
  var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
8
8
  var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
9
9
 
10
- const _sfc_main = {
11
- __name: 'progress-item',
12
- props: {
13
- width: { type: Number, default: 0 },
14
- label: { type: String, required: true },
15
- },
16
- setup(__props) {
17
-
18
- const props = __props;
19
-
20
- defineOptions({ name: 'BwaProgressItem' });
21
-
22
-
23
-
24
- const { width, label } = vue.toRefs(props);
25
-
26
- const ns = webBaseClientVue.useNamespace('progress-item');
27
-
28
- const progressItemEl = vue.ref(null);
29
-
30
- const progress = vue.inject(webBaseClientVue.progressKey);
31
-
32
- const percent = vue.computed(() => (vue.unref(width) / progress.max) * 100 + '%');
33
-
34
- const attrs = vue.useAttrs();
35
-
36
- const id = progress.nextID();
37
-
38
- const colorObservable = new rxjs.Observable((observer) =>
39
- vue.watch(
40
- vue.computed(() => attrs.style['--bwa-progress-item-color']),
41
- observer.next.bind(observer),
42
- { immediate: true }
43
- )
44
- ).pipe(rxjs.delayWhen(() => rxjs.from(vue.nextTick())));
45
-
46
- const widthObservable = new rxjs.Observable((observer) =>
47
- vue.watch(width, observer.next.bind(observer), { immediate: true })
48
- ).pipe(rxjs.map((width) => parseInt(width) || 0));
49
-
50
- const labelObservable = new rxjs.Observable((observer) =>
51
- vue.watch(label, observer.next.bind(observer), { immediate: true })
52
- ).pipe();
53
-
54
- const progressItemObservable = rxjs.combineLatest([
55
- widthObservable,
56
- labelObservable,
57
- colorObservable,
58
- ]);
59
-
60
- const subscription = progressItemObservable.subscribe({
61
- next: ([width, label, color]) => {
62
- progress.handleProgressItemCreate({
63
- id,
64
- width,
65
- label,
66
- color,
67
- });
68
- },
69
- complete: () => {
70
- progress.handleProgressItemDestroy(id);
71
- },
72
- error: () => {
73
- progress.handleProgressItemDestroy(id);
74
- },
75
- });
76
-
77
- vue.onBeforeUnmount(subscription.unsubscribe.bind(subscription));
78
-
79
- return (_ctx, _cache) => {
80
- return (vue.openBlock(), vue.createElementBlock("div", {
81
- class: vue.normalizeClass(vue.unref(ns).b()),
82
- style: vue.normalizeStyle({ width: vue.unref(percent) }),
83
- ref_key: "progressItemEl",
84
- ref: progressItemEl
85
- }, null, 6 /* CLASS, STYLE */))
10
+ // Inject __name helper
11
+ if (typeof __name === 'undefined') {
12
+ function __name(obj, name) {
13
+ Object.defineProperty(obj, "name", {
14
+ value: name,
15
+ configurable: true
16
+ });
17
+ }
86
18
  }
87
- }
88
-
89
- };
90
- var ProgressItem = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"progress-item.vue"]]);
19
+ const __default__ = vue.defineComponent({ name: "BwaProgressItem" });
20
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
21
+ props: {
22
+ width: { type: Number, default: 0 },
23
+ label: { type: String, required: true }
24
+ },
25
+ setup(__props) {
26
+ ;
27
+ const props = __props;
28
+ const { width, label } = vue.toRefs(props);
29
+ const ns = webBaseClientVue.useNamespace("progress-item");
30
+ const progressItemEl = vue.ref(null);
31
+ const progress = vue.inject(webBaseClientVue.progressKey);
32
+ const percent = vue.computed(() => vue.unref(width) / progress.max * 100 + "%");
33
+ const attrs = vue.useAttrs();
34
+ const id = progress.nextID();
35
+ const colorObservable = new rxjs.Observable(
36
+ (observer) => vue.watch(
37
+ vue.computed(() => attrs.style["--bwa-progress-item-color"]),
38
+ observer.next.bind(observer),
39
+ { immediate: true }
40
+ )
41
+ ).pipe(rxjs.delayWhen(() => rxjs.from(vue.nextTick())));
42
+ const widthObservable = new rxjs.Observable(
43
+ (observer) => vue.watch(width, observer.next.bind(observer), { immediate: true })
44
+ ).pipe(rxjs.map((width2) => parseInt(width2) || 0));
45
+ const labelObservable = new rxjs.Observable(
46
+ (observer) => vue.watch(label, observer.next.bind(observer), { immediate: true })
47
+ ).pipe();
48
+ const progressItemObservable = rxjs.combineLatest([
49
+ widthObservable,
50
+ labelObservable,
51
+ colorObservable
52
+ ]);
53
+ const subscription = progressItemObservable.subscribe({
54
+ next: ([width2, label2, color]) => {
55
+ progress.handleProgressItemCreate({
56
+ id,
57
+ width: width2,
58
+ label: label2,
59
+ color
60
+ });
61
+ },
62
+ complete: () => {
63
+ progress.handleProgressItemDestroy(id);
64
+ },
65
+ error: () => {
66
+ progress.handleProgressItemDestroy(id);
67
+ }
68
+ });
69
+ vue.onBeforeUnmount(subscription.unsubscribe.bind(subscription));
70
+ return (_ctx, _cache) => {
71
+ return vue.openBlock(), vue.createElementBlock("div", {
72
+ class: vue.normalizeClass(vue.unref(ns).b()),
73
+ style: vue.normalizeStyle({ width: percent.value }),
74
+ ref_key: "progressItemEl",
75
+ ref: progressItemEl
76
+ }, null, 6);
77
+ };
78
+ }
79
+ });
80
+ var ProgressItem = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "progress-item.vue"]]);
91
81
 
92
82
  exports["default"] = ProgressItem;
@@ -8,85 +8,81 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
8
8
  var useProgress = require('./use-progress.js');
9
9
  var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
10
10
 
11
- const _sfc_main = {
12
- __name: 'progress',
13
- props: {
14
- max: { type: Number, default: 0 },
15
- showLabel: { type: Boolean, default: true },
16
- labelWidth: { type: String, default: 'auto' },
17
- },
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({ name: "BwaProgress" });
21
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
22
+ props: {
23
+ max: { type: Number, default: 0 },
24
+ showLabel: { type: Boolean, default: true },
25
+ labelWidth: { type: String, default: "auto" }
26
+ },
18
27
  setup(__props) {
19
-
20
- const props = __props;
21
-
22
- defineOptions({ name: 'BwaProgress' });
23
-
24
-
25
-
26
- const { max } = vue.toRefs(props);
27
-
28
- const ns = webBaseClientVue.useNamespace('progress');
29
-
30
- const states = useProgress.useProgressState(props);
31
- const { percent, handleProgressItemCreate, handleProgressItemDestroy, nextID } =
32
- useProgress.useProgress(props, states);
33
-
34
- vue.provide(
35
- webBaseClientVue.progressKey,
36
- vue.reactive({ max, handleProgressItemCreate, handleProgressItemDestroy, nextID })
37
- );
38
-
39
- return (_ctx, _cache) => {
40
- return (vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElTooltip), {
41
- placement: "bottom-start",
42
- effect: "light",
43
- "append-to": ".bwa-application"
44
- }, {
45
- content: vue.withCtx(() => [
46
- vue.createElementVNode("div", {
47
- class: vue.normalizeClass(vue.unref(ns).be('info', 'wrapper'))
48
- }, [
49
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(states).progressItemList, (item) => {
50
- return (vue.openBlock(), vue.createElementBlock("div", {
51
- key: item.id,
52
- class: vue.normalizeClass(vue.unref(ns).be('item', 'info')),
53
- style: vue.normalizeStyle({ '--bwa-progress-item-dot-color': item.color })
28
+ ;
29
+ const props = __props;
30
+ const { max } = vue.toRefs(props);
31
+ const ns = webBaseClientVue.useNamespace("progress");
32
+ const states = useProgress.useProgressState(props);
33
+ const { percent, handleProgressItemCreate, handleProgressItemDestroy, nextID } = useProgress.useProgress(props, states);
34
+ vue.provide(
35
+ webBaseClientVue.progressKey,
36
+ vue.reactive({ max, handleProgressItemCreate, handleProgressItemDestroy, nextID })
37
+ );
38
+ return (_ctx, _cache) => {
39
+ return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElTooltip), {
40
+ placement: "bottom-start",
41
+ effect: "light",
42
+ "append-to": ".bwa-application"
43
+ }, {
44
+ content: vue.withCtx(() => [
45
+ vue.createElementVNode("div", {
46
+ class: vue.normalizeClass(vue.unref(ns).be("info", "wrapper"))
47
+ }, [
48
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(states).progressItemList, (item) => {
49
+ return vue.openBlock(), vue.createElementBlock("div", {
50
+ key: item.id,
51
+ class: vue.normalizeClass(vue.unref(ns).be("item", "info")),
52
+ style: vue.normalizeStyle({ "--bwa-progress-item-dot-color": item.color })
53
+ }, [
54
+ vue.createElementVNode("span", {
55
+ class: vue.normalizeClass(vue.unref(ns).be("item", "label"))
56
+ }, vue.toDisplayString(item.label), 3),
57
+ vue.createElementVNode("span", {
58
+ class: vue.normalizeClass(vue.unref(ns).be("item", "value"))
59
+ }, vue.toDisplayString(item.width), 3)
60
+ ], 6);
61
+ }), 128))
62
+ ], 2)
63
+ ]),
64
+ default: vue.withCtx(() => [
65
+ vue.createElementVNode("div", {
66
+ class: vue.normalizeClass(vue.unref(ns).b())
54
67
  }, [
55
- vue.createElementVNode("span", {
56
- class: vue.normalizeClass(vue.unref(ns).be('item', 'label'))
57
- }, vue.toDisplayString(item.label), 3 /* TEXT, CLASS */),
58
- vue.createElementVNode("span", {
59
- class: vue.normalizeClass(vue.unref(ns).be('item', 'value'))
60
- }, vue.toDisplayString(item.width), 3 /* TEXT, CLASS */)
61
- ], 6 /* CLASS, STYLE */))
62
- }), 128 /* KEYED_FRAGMENT */))
63
- ], 2 /* CLASS */)
64
- ]),
65
- default: vue.withCtx(() => [
66
- vue.createElementVNode("div", {
67
- class: vue.normalizeClass(vue.unref(ns).b())
68
- }, [
69
- vue.createElementVNode("div", {
70
- class: vue.normalizeClass(vue.unref(ns).e('inner')),
71
- style: vue.normalizeStyle({ '--bwa-progress-width': vue.unref(max) })
72
- }, [
73
- vue.renderSlot(_ctx.$slots, "default")
74
- ], 6 /* CLASS, STYLE */),
75
- (__props.showLabel)
76
- ? (vue.openBlock(), vue.createElementBlock("div", {
68
+ vue.createElementVNode("div", {
69
+ class: vue.normalizeClass(vue.unref(ns).e("inner")),
70
+ style: vue.normalizeStyle({ "--bwa-progress-width": vue.unref(max) })
71
+ }, [
72
+ vue.renderSlot(_ctx.$slots, "default")
73
+ ], 6),
74
+ __props.showLabel ? (vue.openBlock(), vue.createElementBlock("div", {
77
75
  key: 0,
78
- class: vue.normalizeClass(vue.unref(ns).e('percent')),
79
- style: vue.normalizeStyle({ '--bwa-progress-label-width': __props.labelWidth })
80
- }, vue.toDisplayString(vue.unref(percent)) + "% ", 7 /* TEXT, CLASS, STYLE */))
81
- : vue.createCommentVNode("v-if", true)
82
- ], 2 /* CLASS */)
83
- ]),
84
- _: 3 /* FORWARDED */
85
- }))
86
- }
87
- }
88
-
89
- };
90
- var Progress = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"progress.vue"]]);
76
+ class: vue.normalizeClass(vue.unref(ns).e("percent")),
77
+ style: vue.normalizeStyle({ "--bwa-progress-label-width": __props.labelWidth })
78
+ }, vue.toDisplayString(vue.unref(percent)) + "% ", 7)) : vue.createCommentVNode("v-if", true)
79
+ ], 2)
80
+ ]),
81
+ _: 3
82
+ });
83
+ };
84
+ }
85
+ });
86
+ var Progress = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "progress.vue"]]);
91
87
 
92
88
  exports["default"] = Progress;
@@ -4,6 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
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
  let uid = 1;
8
17
  const useProgressState = (props) => vue.reactive({
9
18
  progressItemList: []
package/lib/utils/db.js CHANGED
@@ -8,6 +8,15 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
8
8
 
9
9
  var Dexie__default = /*#__PURE__*/_interopDefaultLegacy(Dexie);
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 dataModelDB = new Dexie__default["default"]("DataModel");
12
21
  dataModelDB.version(1).stores({
13
22
  filterPanel: "[app+tableName+userID]",
package/lib/utils.js CHANGED
@@ -11,6 +11,15 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
11
11
  var get__default = /*#__PURE__*/_interopDefaultLegacy(get);
12
12
  var set__default = /*#__PURE__*/_interopDefaultLegacy(set);
13
13
 
14
+ // Inject __name helper
15
+ if (typeof __name === 'undefined') {
16
+ function __name(obj, name) {
17
+ Object.defineProperty(obj, "name", {
18
+ value: name,
19
+ configurable: true
20
+ });
21
+ }
22
+ }
14
23
  const COMPONENT_NAME_PREFIX = "Bwa";
15
24
  const createComponentName = (component) => {
16
25
  component.name = COMPONENT_NAME_PREFIX + component.name;
@@ -1,2 +1,11 @@
1
1
  'use strict';
2
2
 
3
+ // Inject __name helper
4
+ if (typeof __name === 'undefined') {
5
+ function __name(obj, name) {
6
+ Object.defineProperty(obj, "name", {
7
+ value: name,
8
+ configurable: true
9
+ });
10
+ }
11
+ }
@@ -6,6 +6,15 @@ var ElementPlus = require('element-plus');
6
6
  var vue = require('vue');
7
7
  var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
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 usewhereFilterPanel = (props, context) => {
10
19
  const dataTable = ElementPlus.useProp("dataTable");
11
20
  const debounceDelay = webBaseClientVue.useGlobalConfig("debounceDelay", 500);
@@ -5,20 +5,26 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
7
7
 
8
- const _sfc_main = {
9
- __name: 'where-filter-panel',
10
- setup(__props) {
11
-
12
- defineOptions({
13
- name: 'BwaWhereFilterPanel',
14
- });
15
-
16
- return (_ctx, _cache) => {
17
- return (vue.openBlock(), vue.createElementBlock("div"))
18
- }
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
+ }
19
16
  }
20
-
21
- };
22
- var whereFilterPanel = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"where-filter-panel.vue"]]);
17
+ const __default__ = vue.defineComponent({
18
+ name: "BwaWhereFilterPanel"
19
+ });
20
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
21
+ setup(__props) {
22
+ ;
23
+ return (_ctx, _cache) => {
24
+ return vue.openBlock(), vue.createElementBlock("div");
25
+ };
26
+ }
27
+ });
28
+ var whereFilterPanel = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "where-filter-panel.vue"]]);
23
29
 
24
30
  exports["default"] = whereFilterPanel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctzy-web-client/plugin-component-vue",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "exports": {
@@ -6,8 +6,8 @@
6
6
  <ElTooltip placement="top" append-to=".bwa-application" :disabled="currentLabel.length < 16">
7
7
  <div :class="ns.be('option', 'content-label')" ref="contentText">
8
8
 
9
- <div v-if="!showUserName" :class="ns.be('option', 'content-label')" style="width: 178px">{{ currentLabel }}</div>
10
- <div v-if="showUserName" :class="ns.be('option', 'content-label')" style="width: 178px;display: flex;align-items: center;" >
9
+ <div v-if="!showLetterAvatarStatus" :class="ns.be('option', 'content-label')" style="width: 178px">{{ currentLabel }}</div>
10
+ <div v-if="showLetterAvatarStatus" :class="ns.be('option', 'content-label')" style="width: 178px;display: flex;align-items: center;" >
11
11
  <div class="letter-circle" :style="{ backgroundColor: (processLabel(currentLabel).color) }">
12
12
  {{ processLabel(currentLabel).firstLetter }}
13
13
  </div>
@@ -31,7 +31,7 @@
31
31
 
32
32
  <script>
33
33
  import { ElTooltip } from 'element-plus';
34
- import { getCurrentInstance, toRefs, ref, nextTick, onMounted, onUnmounted } from 'vue';
34
+ import { getCurrentInstance, toRefs, ref, nextTick, onMounted, onUnmounted,computed } from 'vue';
35
35
  import { useNamespace } from '@ctzy-web-client/web-base-client-vue';
36
36
  import { useEvent } from './events-helpers';
37
37
  import { useAdvanceOption } from './use-advance-option';
@@ -45,6 +45,10 @@ export default {
45
45
  value: {
46
46
  type: null,
47
47
  },
48
+ showLetterAvatar:{
49
+ type: Boolean,
50
+ default: false,
51
+ }
48
52
  },
49
53
  expose: ['currentLabel'],
50
54
  setup(props, { expose }) {
@@ -59,8 +63,9 @@ export default {
59
63
 
60
64
  const show = ref(true)
61
65
  const clickFlag = ref(true)
62
- const showUserName = ref(true)
63
-
66
+ const showLetterAvatarStatus = computed(() => props.showLetterAvatar);
67
+
68
+ console.log(showLetterAvatarStatus.value,'下一级')
64
69
  const contentText = ref()
65
70
 
66
71
  expose({ currentLabel });
@@ -139,13 +144,14 @@ function processLabel(label) {
139
144
  show,
140
145
  ns,
141
146
  currentLabel,
142
- showUserName,
147
+
143
148
  itemSelected,
144
149
  showSelectIcon,
145
150
  filterOptionClick,
146
151
  handleOptionMouseEnter,
147
152
  source,
148
- processLabel
153
+ processLabel,
154
+ showLetterAvatarStatus
149
155
  };
150
156
  },
151
157
  };
@@ -138,6 +138,7 @@
138
138
  :key="item.value"
139
139
  :value="item.value"
140
140
  :label="item.label"
141
+
141
142
  />
142
143
  </slot>
143
144
  </ElScrollbar>
@@ -193,6 +194,10 @@ const props = defineProps({
193
194
  options: {
194
195
  type: Array,
195
196
  },
197
+ showLetterAvatar:{
198
+ type: Boolean,
199
+ default: false,
200
+ },
196
201
  modelValue: {
197
202
  type: [Array, String, Number, Boolean],
198
203
  },
@@ -208,6 +213,7 @@ const props = defineProps({
208
213
  type: Boolean,
209
214
  default: true,
210
215
  },
216
+
211
217
  multipleLimit: {
212
218
  type: Number,
213
219
  default: 0,
@@ -258,7 +264,7 @@ const debounceDelay = useGlobalConfig('debounceDelay', 500);
258
264
 
259
265
  const filterPanelItem = inject(filterPanelItemKey, null);
260
266
 
261
- const { listHeight, width, showSearch, showSelection, multiple, modelValue, borderRadius } =
267
+ const { listHeight, width, showSearch, showSelection, multiple, modelValue, borderRadius,showLetterAvatar } =
262
268
  toRefs(props);
263
269
 
264
270
  const slots = useSlots();
@@ -273,6 +279,7 @@ const {
273
279
  search,
274
280
  isShowPopper,
275
281
  selected,
282
+
276
283
  } = toRefs(states);
277
284
 
278
285
  const column = computed(() => filterPanelItem?.column ?? null);
@@ -2,6 +2,7 @@
2
2
  <div :class="ns.e('conditbox')">
3
3
  <div v-if="showTitle" :class="ns.e('title')">{{column.title}}</div>
4
4
  <BwaAdvanceSelect
5
+ :showLetterAvatar="showLetterAvatarStatus"
5
6
  :multiple="multiple"
6
7
  v-model="modelValue"
7
8
  @search="handleFieldSearch"
@@ -90,6 +91,7 @@
90
91
  :key="item[valuePropStr] + ''"
91
92
  :value="item[valuePropStr] + ''"
92
93
  :label="item[labelPropStr] + ''"
94
+ :showLetterAvatar="showLetterAvatarStatus"
93
95
  :class="ns.be('filter', 'option')"
94
96
  >
95
97
  </BwaAdvanceOption>
@@ -156,6 +158,10 @@ const props = defineProps({
156
158
  type: Boolean,
157
159
  default: true,
158
160
  },
161
+ showLetterAvatar: {
162
+ type: Boolean,
163
+ default: false,
164
+ },
159
165
  size: {
160
166
  type: String,
161
167
  default: 'small',
@@ -205,7 +211,8 @@ if (props.itfInfo) {
205
211
  itfInfo: props.itfInfo || {},
206
212
  labelAttr: props.labelAttr || 'label',
207
213
  valueAttr: props.valueAttr || 'value',
208
- searchAttr: props.searchAttr || 'search'
214
+ searchAttr: props.searchAttr || 'search',
215
+ showLetterAvatar:props.showLetterAvatar || false
209
216
  }
210
217
  }
211
218
 
@@ -214,6 +221,8 @@ const placeholderStr = computed(() => showTitle.value ? props.placeholder : colu
214
221
 
215
222
  const labelPropStr = computed(() => column.value?.componentProps?.labelAttr || props.labelProp)
216
223
  const valuePropStr = computed(() => column.value?.componentProps?.valueAttr || props.valueProp)
224
+ const showLetterAvatarStatus = computed(() => column.value?.componentProps?.showLetterAvatar || props.showLetterAvatar)
225
+ console.log(showLetterAvatarStatus.value,'打印传值')
217
226
  const handleClose = (val)=>{
218
227
 
219
228
  // 优化后