@ctzy-web-client/plugin-component-vue 1.0.23 → 1.0.24

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 (131) hide show
  1. package/es/advance-select/advance-operation.mjs +51 -37
  2. package/es/advance-select/advance-option.mjs +167 -97
  3. package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +7 -0
  4. package/es/advance-select/advance-select.mjs +368 -310
  5. package/es/advance-select/index.mjs +5 -5
  6. package/es/application-slot/breadcrumb-item.mjs +20 -17
  7. package/es/application-slot/header-tools-item.mjs +20 -17
  8. package/es/breadcrumb-select/breadcrumb-select.mjs +134 -112
  9. package/es/contextmenu/contextmenu-item.mjs +19 -15
  10. package/es/contextmenu/contextmenu.mjs +72 -56
  11. package/es/data-form/data-form-item.mjs +48 -30
  12. package/es/data-form/data-form.mjs +213 -166
  13. package/es/data-form/form-components/bwa-date-picker.mjs +51 -39
  14. package/es/data-form/form-components/bwa-date-time-picker.mjs +56 -44
  15. package/es/data-form/form-components/bwa-input-float.mjs +48 -37
  16. package/es/data-form/form-components/bwa-input-integer.mjs +68 -50
  17. package/es/data-form/form-components/bwa-input.mjs +43 -32
  18. package/es/data-form/form-components/bwa-multi-select.mjs +40 -29
  19. package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +554 -218
  20. package/es/data-form/form-components/bwa-rich-text.mjs +404 -316
  21. package/es/data-form/form-components/bwa-select.mjs +84 -70
  22. package/es/data-form/form-components/bwa-textarea.mjs +38 -27
  23. package/es/data-form/form-components/bwa-upload.mjs +172 -148
  24. package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -24
  25. package/es/data-form/form-components/bwa-user-select.mjs +86 -61
  26. package/es/data-table/data-column-view.mjs +146 -115
  27. package/es/data-table/data-table-card.mjs +48 -40
  28. package/es/data-table/data-table-column.mjs +58 -45
  29. package/es/data-table/data-table.mjs +402 -316
  30. package/es/datatable-settings/datatable-settings.mjs +329 -254
  31. package/es/date-range/date-picker.mjs +130 -116
  32. package/es/date-range/date-range.mjs +215 -161
  33. package/es/drag-list/drag-item.mjs +56 -42
  34. package/es/drag-list/drag-list.mjs +60 -47
  35. package/es/dragable/dragable-item.mjs +23 -18
  36. package/es/dragable/dragable-operation.mjs +32 -24
  37. package/es/dragable/dragable.mjs +32 -23
  38. package/es/filter-panel/conditions/date-range-condition.mjs +50 -40
  39. package/es/filter-panel/conditions/department-condition/department-condition.mjs +99 -72
  40. package/es/filter-panel/conditions/department-condition/department-node.mjs +73 -59
  41. package/es/filter-panel/conditions/input-condition.mjs +90 -76
  42. package/es/filter-panel/conditions/multi-user-condition.mjs +67 -57
  43. package/es/filter-panel/conditions/multiple-menu-condition.mjs +54 -35
  44. package/es/filter-panel/conditions/single-menu-condition.mjs +65 -60
  45. package/es/filter-panel/conditions/single-user-condition.mjs +67 -57
  46. package/es/filter-panel/filter-panel-item.mjs +54 -39
  47. package/es/filter-panel/filter-panel.mjs +153 -135
  48. package/es/layout/layout.mjs +85 -78
  49. package/es/menu/menu-item.mjs +67 -52
  50. package/es/menu/menu.mjs +70 -53
  51. package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +28 -0
  52. package/es/panel/panel.mjs +53 -40
  53. package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +74 -63
  54. package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +76 -67
  55. package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +406 -178
  56. package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +153 -138
  57. package/es/pct-filter-panel/pct-filter-panel-item.mjs +55 -40
  58. package/es/pct-filter-panel/pct-filter-panel.mjs +247 -227
  59. package/es/progress/progress-item.mjs +81 -61
  60. package/es/progress/progress.mjs +78 -64
  61. package/es/where-filter-panel/where-filter-panel.mjs +15 -12
  62. package/lib/advance-select/advance-operation.js +50 -36
  63. package/lib/advance-select/advance-option.js +166 -96
  64. package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +12 -0
  65. package/lib/advance-select/advance-select.js +366 -308
  66. package/lib/application-slot/breadcrumb-item.js +19 -16
  67. package/lib/application-slot/header-tools-item.js +19 -16
  68. package/lib/breadcrumb-select/breadcrumb-select.js +133 -111
  69. package/lib/contextmenu/contextmenu-item.js +18 -14
  70. package/lib/contextmenu/contextmenu.js +71 -55
  71. package/lib/data-form/data-form-item.js +47 -29
  72. package/lib/data-form/data-form.js +212 -165
  73. package/lib/data-form/form-components/bwa-date-picker.js +50 -38
  74. package/lib/data-form/form-components/bwa-date-time-picker.js +55 -43
  75. package/lib/data-form/form-components/bwa-input-float.js +47 -36
  76. package/lib/data-form/form-components/bwa-input-integer.js +67 -49
  77. package/lib/data-form/form-components/bwa-input.js +42 -31
  78. package/lib/data-form/form-components/bwa-multi-select.js +39 -28
  79. package/lib/data-form/form-components/bwa-rich-text-tinymce.js +553 -217
  80. package/lib/data-form/form-components/bwa-rich-text.js +403 -315
  81. package/lib/data-form/form-components/bwa-select.js +83 -69
  82. package/lib/data-form/form-components/bwa-textarea.js +37 -26
  83. package/lib/data-form/form-components/bwa-upload.js +171 -147
  84. package/lib/data-form/form-components/bwa-user-multi-select.js +34 -23
  85. package/lib/data-form/form-components/bwa-user-select.js +85 -60
  86. package/lib/data-table/data-column-view.js +146 -115
  87. package/lib/data-table/data-table-card.js +48 -40
  88. package/lib/data-table/data-table-column.js +57 -44
  89. package/lib/data-table/data-table.js +401 -315
  90. package/lib/datatable-settings/datatable-settings.js +328 -253
  91. package/lib/date-range/date-picker.js +129 -115
  92. package/lib/date-range/date-range.js +214 -160
  93. package/lib/drag-list/drag-item.js +55 -41
  94. package/lib/drag-list/drag-list.js +59 -46
  95. package/lib/dragable/dragable-item.js +22 -17
  96. package/lib/dragable/dragable-operation.js +31 -23
  97. package/lib/dragable/dragable.js +31 -22
  98. package/lib/filter-panel/conditions/date-range-condition.js +49 -39
  99. package/lib/filter-panel/conditions/department-condition/department-condition.js +98 -71
  100. package/lib/filter-panel/conditions/department-condition/department-node.js +72 -58
  101. package/lib/filter-panel/conditions/input-condition.js +89 -75
  102. package/lib/filter-panel/conditions/multi-user-condition.js +66 -56
  103. package/lib/filter-panel/conditions/multiple-menu-condition.js +53 -34
  104. package/lib/filter-panel/conditions/single-menu-condition.js +64 -59
  105. package/lib/filter-panel/conditions/single-user-condition.js +66 -56
  106. package/lib/filter-panel/filter-panel-item.js +53 -38
  107. package/lib/filter-panel/filter-panel.js +152 -134
  108. package/lib/layout/layout.js +84 -77
  109. package/lib/menu/menu-item.js +66 -51
  110. package/lib/menu/menu.js +69 -52
  111. package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +32 -0
  112. package/lib/panel/panel.js +52 -39
  113. package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +73 -62
  114. package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +75 -66
  115. package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +405 -177
  116. package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +152 -137
  117. package/lib/pct-filter-panel/pct-filter-panel-item.js +54 -39
  118. package/lib/pct-filter-panel/pct-filter-panel.js +246 -226
  119. package/lib/progress/progress-item.js +80 -60
  120. package/lib/progress/progress.js +77 -63
  121. package/lib/where-filter-panel/where-filter-panel.js +14 -11
  122. package/package.json +2 -1
  123. package/src/advance-select/advance-option.vue +64 -13
  124. package/src/data-form/form-components/bwa-rich-text-tinymce.vue +1 -1
  125. package/src/datatable-settings/datatable-settings.vue +33 -3
  126. package/src/date-range/date-picker.vue +1 -1
  127. package/src/filter-panel/filter-panel.vue +2 -2
  128. package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +64 -64
  129. package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +61 -61
  130. package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +302 -178
  131. package/src/pct-filter-panel/pct-filter-panel.vue +4 -4
@@ -8,248 +8,268 @@ 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 __default__ = vue.defineComponent({
12
- name: "BwaPctFilterPanel"
13
- });
14
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
15
- props: {
16
- dataTable: {
17
- type: Object
18
- },
19
- showSearch: {
20
- type: Boolean,
21
- default: false
22
- },
23
- showFieldOptions: {
24
- type: Boolean,
25
- default: true
26
- },
27
- searchAttr: {
28
- type: String,
29
- default: "search"
30
- },
31
- searchPlaceholder: {
32
- type: String,
33
- default: ""
34
- },
35
- searchFields: {
36
- type: Array,
37
- default: () => []
38
- },
39
- showTitle: {
40
- type: Boolean,
41
- default: false
42
- },
43
- searchTitle: {
44
- type: String,
45
- default: "\u6807\u9898\u540D\u79F0"
46
- },
47
- filterPanelLineNum: {
48
- type: Number
49
- }
50
- },
51
- emits: ["reset", "filter"],
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'],
52
50
  setup(__props, { emit }) {
53
- const props = __props;
54
- const ns = webBaseClientVue.useNamespace("pctfilterpanel");
55
- const {
56
- dataTable,
57
- filterPanel,
58
- currentFilterColumns,
59
- selectedColumnAttrNames,
60
- closableColumns,
61
- searchParams,
62
- handleFieldSearch,
63
- searchValue,
64
- isChange,
65
- handleReset,
66
- handleSearch
67
- } = useFilterPanel.useFilterPanel(props, { emit });
68
- console.log(currentFilterColumns);
69
- vue.watch(
70
- filterPanel,
71
- (filterPanel2, _, onCleanup) => {
72
- filterPanel2.existComponent = true;
73
- onCleanup(() => {
74
- filterPanel2.existComponent = false;
75
- });
76
- },
77
- { immediate: true }
78
- );
79
- vue.provide(
80
- webBaseClientVue.filterPanelKey,
81
- vue.reactive({
82
- dataTable,
83
- filterPanel,
84
- currentFilterColumns,
85
- showTitle: props.showTitle,
86
- filterPanelLineNum: props.filterPanelLineNum
87
- })
88
- );
89
- return (_ctx, _cache) => {
90
- const _component_BwaPctMultipleMenuCondition = vue.resolveComponent("BwaPctMultipleMenuCondition");
91
- const _component_BwaPctInputCondition = vue.resolveComponent("BwaPctInputCondition");
92
- const _component_BwaPctDateRangeCondition = vue.resolveComponent("BwaPctDateRangeCondition");
93
- const _component_ElInput = vue.resolveComponent("ElInput");
94
- const _component_ElButton = vue.resolveComponent("ElButton");
95
- const _component_ElCheckbox = vue.resolveComponent("ElCheckbox");
96
- const _component_BwaAdvanceOption = vue.resolveComponent("BwaAdvanceOption");
97
- const _component_BwaAdvanceSelect = vue.resolveComponent("BwaAdvanceSelect");
98
- return vue.openBlock(), vue.createElementBlock("div", {
99
- class: vue.normalizeClass(vue.unref(ns).b())
100
- }, [
101
- vue.renderSlot(_ctx.$slots, "default", {}, () => [
102
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(currentFilterColumns), (column) => {
103
- return vue.renderSlot(_ctx.$slots, `condition-${column.attrName}`, {
104
- key: column.attrName,
105
- attrName: column.attrName
106
- }, () => [
107
- vue.createVNode(pctFilterPanelItem["default"], {
108
- prop: column.fullAttrName
109
- }, {
110
- default: vue.withCtx(({ data }) => {
111
- var _a, _b;
112
- return [
113
- !column.component || column.component === "BwaMultipleMenuCondition" || column.component === "BwaSingleMenuCondition" ? (vue.openBlock(), vue.createBlock(_component_BwaPctMultipleMenuCondition, {
114
- key: 0,
115
- modelValue: data.value,
116
- "onUpdate:modelValue": ($event) => data.value = $event,
117
- column,
118
- multiple: column.component !== "BwaSingleMenuCondition",
119
- showTitle: props.showTitle,
120
- showSearch: (_a = column.componentProps) == null ? void 0 : _a.showSearch,
121
- options: ((_b = column.componentProps) == null ? void 0 : _b.options) || []
122
- }, null, 8, ["modelValue", "onUpdate:modelValue", "column", "multiple", "showTitle", "showSearch", "options"])) : vue.createCommentVNode("v-if", true),
123
- column.component === "BwaInputCondition" ? (vue.openBlock(), vue.createBlock(_component_BwaPctInputCondition, {
124
- key: 1,
125
- modelValue: data.value,
126
- "onUpdate:modelValue": ($event) => data.value = $event,
127
- column,
128
- showTitle: props.showTitle
129
- }, null, 8, ["modelValue", "onUpdate:modelValue", "column", "showTitle"])) : vue.createCommentVNode("v-if", true),
130
- column.component === "BwaDateRangeCondition" ? (vue.openBlock(), vue.createBlock(_component_BwaPctDateRangeCondition, {
131
- key: 2,
132
- modelValue: data.value,
133
- "onUpdate:modelValue": ($event) => data.value = $event,
134
- showTitle: props.showTitle
135
- }, null, 8, ["modelValue", "onUpdate:modelValue", "showTitle"])) : vue.createCommentVNode("v-if", true)
136
- ];
137
- }),
138
- _: 2
139
- }, 1032, ["prop"])
140
- ]);
141
- }), 128))
142
- ]),
143
- __props.showSearch ? (vue.openBlock(), vue.createElementBlock("div", {
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", {
144
161
  key: 0,
145
- style: vue.normalizeStyle([{ "display": "flex", "align-items": "center", "padding-right": "20px", "box-sizing": "border-box" }, {
146
- "width": props.filterPanelLineNum ? (100 / props.filterPanelLineNum).toFixed(2) + "%" : props.showTitle ? "25%" : "20%"
147
- }])
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
+ }])
148
165
  }, [
149
- __props.showTitle ? (vue.openBlock(), vue.createElementBlock("div", {
150
- key: 0,
151
- class: vue.normalizeClass(vue.unref(ns).e("title")),
152
- style: { "padding-right": "8px" }
153
- }, vue.toDisplayString(__props.searchTitle), 3)) : vue.createCommentVNode("v-if", true),
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),
154
173
  vue.createVNode(_component_ElInput, {
155
174
  "prefix-icon": "Search",
156
- size: "small",
157
175
  clearable: "",
158
176
  modelValue: vue.unref(searchValue),
159
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(searchValue) ? searchValue.value = $event : null),
177
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(searchValue) ? (searchValue).value = $event : null)),
160
178
  placeholder: __props.searchPlaceholder,
161
- class: vue.normalizeClass(vue.unref(ns).e("search"))
162
- }, null, 8, ["modelValue", "placeholder", "class"])
163
- ], 4)) : vue.createCommentVNode("v-if", true),
164
- __props.showFieldOptions ? (vue.openBlock(), vue.createBlock(pctFilterPanelItem["default"], {
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"], {
165
185
  key: 1,
166
- style: { "width": "auto", "padding-right": "16px" }
186
+ style: {"width":"auto","padding-right":"16px"}
167
187
  }, {
168
188
  default: vue.withCtx(() => [
169
- __props.showFieldOptions ? (vue.openBlock(), vue.createBlock(_component_BwaAdvanceSelect, {
170
- key: 0,
171
- modelValue: vue.unref(selectedColumnAttrNames),
172
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(selectedColumnAttrNames) ? selectedColumnAttrNames.value = $event : null),
173
- "show-selectIcon": false,
174
- onSearch: vue.unref(handleFieldSearch),
175
- class: vue.normalizeClass(vue.unref(ns).e("options")),
176
- source: "pct"
177
- }, {
178
- "reference-content": vue.withCtx(() => [
179
- vue.createVNode(_component_ElButton, {
180
- size: "small",
181
- class: vue.normalizeClass(vue.unref(ns).e("filterBut"))
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"
182
198
  }, {
183
- default: vue.withCtx(() => [
184
- vue.createElementVNode("div", {
185
- class: vue.normalizeClass(vue.unref(ns).be("filter", "plus"))
186
- }, null, 2),
187
- vue.createElementVNode("span", {
188
- class: vue.normalizeClass(vue.unref(ns).be("filter", "label"))
189
- }, " \u7B5B\u9009 ", 2)
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"])
190
213
  ]),
191
- _: 1
192
- }, 8, ["class"])
193
- ]),
194
- default: vue.withCtx(() => [
195
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(closableColumns), (column) => {
196
- return vue.openBlock(), vue.createBlock(_component_BwaAdvanceOption, {
197
- value: column.fullAttrName,
198
- label: column.title,
199
- key: column.fullAttrName,
200
- class: vue.normalizeClass(vue.unref(ns).be("filter", "option"))
201
- }, {
202
- default: vue.withCtx(() => [
203
- vue.createVNode(_component_ElCheckbox, {
204
- onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
205
- }, ["prevent"])),
206
- modelValue: vue.unref(selectedColumnAttrNames).includes(column.fullAttrName),
207
- class: vue.normalizeClass(vue.unref(ns).be("filter", "checkbox"))
214
+ 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'))
208
221
  }, {
209
222
  default: vue.withCtx(() => [
210
- vue.createTextVNode(vue.toDisplayString(column.title), 1)
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 */)
211
236
  ]),
212
- _: 2
213
- }, 1032, ["modelValue", "class"]),
214
- vue.createElementVNode("span", {
215
- class: vue.normalizeClass(vue.unref(ns).be("filter", "title"))
216
- }, vue.toDisplayString(column.componentTitle), 3)
217
- ]),
218
- _: 2
219
- }, 1032, ["value", "label", "class"]);
220
- }), 128))
221
- ]),
222
- _: 1
223
- }, 8, ["modelValue", "onSearch", "class"])) : vue.createCommentVNode("v-if", true)
224
- ]),
225
- _: 1
226
- })) : vue.createCommentVNode("v-if", true),
227
- vue.createVNode(_component_ElButton, {
228
- size: "small",
229
- type: "primary",
230
- class: vue.normalizeClass(vue.unref(ns).e("reset")),
231
- onClick: vue.unref(handleSearch)
232
- }, {
233
- default: vue.withCtx(() => [
234
- vue.createTextVNode(" \u67E5\u8BE2 ")
235
- ]),
236
- _: 1
237
- }, 8, ["class", "onClick"]),
238
- vue.createVNode(_component_ElButton, {
239
- size: "small",
240
- class: vue.normalizeClass(vue.unref(ns).e("reset")),
241
- onClick: vue.unref(handleReset)
242
- }, {
243
- default: vue.withCtx(() => [
244
- vue.createTextVNode(" \u91CD\u7F6E ")
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)
245
244
  ]),
246
- _: 1
247
- }, 8, ["class", "onClick"]),
248
- vue.renderSlot(_ctx.$slots, "button")
249
- ], 2);
250
- };
251
- }
252
- });
253
- var PctFilterPanel = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "pct-filter-panel.vue"]]);
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"]]);
254
274
 
255
275
  exports["default"] = PctFilterPanel;
@@ -7,66 +7,86 @@ 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 __default__ = vue.defineComponent({ name: "BwaProgressItem" });
11
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
12
- props: {
13
- width: { type: Number, default: 0 },
14
- label: { type: String, required: true }
15
- },
10
+ const _sfc_main = {
11
+ __name: 'progress-item',
12
+ props: {
13
+ width: { type: Number, default: 0 },
14
+ label: { type: String, required: true },
15
+ },
16
16
  setup(__props) {
17
- const props = __props;
18
- const { width, label } = vue.toRefs(props);
19
- const ns = webBaseClientVue.useNamespace("progress-item");
20
- const progressItemEl = vue.ref(null);
21
- const progress = vue.inject(webBaseClientVue.progressKey);
22
- const percent = vue.computed(() => vue.unref(width) / progress.max * 100 + "%");
23
- const attrs = vue.useAttrs();
24
- const id = progress.nextID();
25
- const colorObservable = new rxjs.Observable(
26
- (observer) => vue.watch(
27
- vue.computed(() => attrs.style["--bwa-progress-item-color"]),
28
- observer.next.bind(observer),
29
- { immediate: true }
30
- )
31
- ).pipe(rxjs.delayWhen(() => rxjs.from(vue.nextTick())));
32
- const widthObservable = new rxjs.Observable(
33
- (observer) => vue.watch(width, observer.next.bind(observer), { immediate: true })
34
- ).pipe(rxjs.map((width2) => parseInt(width2) || 0));
35
- const labelObservable = new rxjs.Observable(
36
- (observer) => vue.watch(label, observer.next.bind(observer), { immediate: true })
37
- ).pipe();
38
- const progressItemObservable = rxjs.combineLatest([
39
- widthObservable,
40
- labelObservable,
41
- colorObservable
42
- ]);
43
- const subscription = progressItemObservable.subscribe({
44
- next: ([width2, label2, color]) => {
45
- progress.handleProgressItemCreate({
46
- id,
47
- width: width2,
48
- label: label2,
49
- color
50
- });
51
- },
52
- complete: () => {
53
- progress.handleProgressItemDestroy(id);
54
- },
55
- error: () => {
56
- progress.handleProgressItemDestroy(id);
57
- }
58
- });
59
- vue.onBeforeUnmount(subscription.unsubscribe.bind(subscription));
60
- return (_ctx, _cache) => {
61
- return vue.openBlock(), vue.createElementBlock("div", {
62
- class: vue.normalizeClass(vue.unref(ns).b()),
63
- style: vue.normalizeStyle({ width: vue.unref(percent) }),
64
- ref_key: "progressItemEl",
65
- ref: progressItemEl
66
- }, null, 6);
67
- };
68
- }
69
- });
70
- var ProgressItem = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "progress-item.vue"]]);
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 */))
86
+ }
87
+ }
88
+
89
+ };
90
+ var ProgressItem = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"progress-item.vue"]]);
71
91
 
72
92
  exports["default"] = ProgressItem;