@ctzy-web-client/plugin-component-vue 1.0.25 → 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.
- package/es/_virtual/_plugin-vue_export-helper.mjs +11 -0
- package/es/advance-select/advance-operation.mjs +48 -51
- package/es/advance-select/advance-option.mjs +128 -163
- package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +11 -5
- package/es/advance-select/advance-select.mjs +323 -370
- package/es/advance-select/events-helpers.mjs +9 -0
- package/es/advance-select/index.mjs +9 -0
- package/es/advance-select/use-advance-option.mjs +9 -0
- package/es/advance-select/use-advance-select.mjs +9 -0
- package/es/application-slot/application-slot.mjs +9 -0
- package/es/application-slot/breadcrumb-item.mjs +26 -20
- package/es/application-slot/header-tools-item.mjs +26 -20
- package/es/application-slot/index.mjs +9 -0
- package/es/breadcrumb-select/breadcrumb-select.mjs +123 -137
- package/es/breadcrumb-select/index.mjs +9 -0
- package/es/components.mjs +9 -0
- package/es/contextmenu/contextmenu-item.mjs +24 -19
- package/es/contextmenu/contextmenu.mjs +68 -73
- package/es/contextmenu/index.mjs +9 -0
- package/es/contextmenu/use-contextmenu.mjs +10 -1
- package/es/data-form/data-form-item.mjs +41 -49
- package/es/data-form/data-form.mjs +176 -213
- package/es/data-form/dynamic-component.mjs +9 -0
- package/es/data-form/form-components/Blots/AtBlot.mjs +9 -0
- package/es/data-form/form-components/bwa-date-picker.mjs +50 -51
- package/es/data-form/form-components/bwa-date-time-picker.mjs +55 -56
- package/es/data-form/form-components/bwa-input-float.mjs +48 -48
- package/es/data-form/form-components/bwa-input-integer.mjs +61 -68
- package/es/data-form/form-components/bwa-input.mjs +43 -43
- package/es/data-form/form-components/bwa-multi-select.mjs +40 -40
- package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +230 -555
- package/es/data-form/form-components/bwa-rich-text.mjs +326 -404
- package/es/data-form/form-components/bwa-select.mjs +81 -84
- package/es/data-form/form-components/bwa-textarea.mjs +38 -38
- package/es/data-form/form-components/bwa-upload.mjs +160 -173
- package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -35
- package/es/data-form/form-components/bwa-user-select.mjs +72 -86
- package/es/data-form/index.mjs +9 -0
- package/es/data-table/data-column-view.mjs +124 -146
- package/es/data-table/data-table-card.mjs +49 -48
- package/es/data-table/data-table-column.mjs +55 -58
- package/es/data-table/data-table.mjs +328 -404
- package/es/data-table/dynamic-component.mjs +9 -0
- package/es/data-table/index.mjs +9 -0
- package/es/data-table/use-datatable-drag.mjs +9 -0
- package/es/datatable-settings/datatable-settings.mjs +286 -328
- package/es/datatable-settings/index.mjs +9 -0
- package/es/date-range/date-picker.mjs +125 -131
- package/es/date-range/date-range.mjs +173 -216
- package/es/date-range/index.mjs +9 -0
- package/es/drag-list/constants.mjs +10 -0
- package/es/drag-list/drag-item.mjs +51 -56
- package/es/drag-list/drag-list.mjs +58 -60
- package/es/drag-list/index.mjs +9 -0
- package/es/drag-list/use-drag-list.mjs +10 -1
- package/es/dragable/constants.mjs +10 -0
- package/es/dragable/dragable-item.mjs +27 -23
- package/es/dragable/dragable-operation.mjs +33 -32
- package/es/dragable/dragable.mjs +33 -32
- package/es/dragable/index.mjs +9 -0
- package/es/dragable/use-dragable.mjs +9 -0
- package/es/filter-panel/conditions/condition.mjs +9 -0
- package/es/filter-panel/conditions/date-range-condition.mjs +51 -50
- package/es/filter-panel/conditions/department-condition/department-condition.mjs +82 -99
- package/es/filter-panel/conditions/department-condition/department-node.mjs +69 -73
- package/es/filter-panel/conditions/index.mjs +9 -0
- package/es/filter-panel/conditions/input-condition.mjs +88 -91
- package/es/filter-panel/conditions/multi-user-condition.mjs +66 -67
- package/es/filter-panel/conditions/multiple-menu-condition.mjs +44 -54
- package/es/filter-panel/conditions/single-menu-condition.mjs +71 -65
- package/es/filter-panel/conditions/single-user-condition.mjs +66 -67
- package/es/filter-panel/filter-panel-item.mjs +51 -55
- package/es/filter-panel/filter-panel.mjs +147 -156
- package/es/filter-panel/index.mjs +9 -0
- package/es/filter-panel/use-filter-panel-item.mjs +9 -0
- package/es/filter-panel/use-filter-panel.mjs +9 -0
- package/es/hooks/use-data/index.mjs +9 -0
- package/es/index.mjs +9 -0
- package/es/layout/index.mjs +9 -0
- package/es/layout/layout.mjs +87 -85
- package/es/make-installer.mjs +9 -0
- package/es/math/Rectangle.mjs +10 -0
- package/es/menu/index.mjs +9 -0
- package/es/menu/menu-item.mjs +65 -70
- package/es/menu/menu.mjs +64 -70
- 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
- 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
- package/es/panel/index.mjs +9 -0
- package/es/panel/panel.mjs +49 -53
- package/es/panel-tabs/index.mjs +9 -0
- package/es/panel-tabs/panel-tabs.mjs +9 -0
- package/es/pct-filter-panel/index.mjs +9 -0
- package/es/pct-filter-panel/pct-compents/index.mjs +9 -0
- package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +73 -75
- package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +77 -77
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +345 -374
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +149 -154
- package/es/pct-filter-panel/pct-filter-panel-item.mjs +52 -56
- package/es/pct-filter-panel/pct-filter-panel.mjs +235 -248
- package/es/pct-filter-panel/use-filter-panel-item.mjs +9 -0
- package/es/pct-filter-panel/use-filter-panel.mjs +9 -0
- package/es/plugins.mjs +9 -0
- package/es/progress/index.mjs +9 -0
- package/es/progress/progress-item.mjs +71 -81
- package/es/progress/progress.mjs +74 -78
- package/es/progress/use-progress.mjs +9 -0
- package/es/utils/db.mjs +9 -0
- package/es/utils.css +1 -0
- package/es/utils.mjs +9 -0
- package/es/where-filter-panel/index.mjs +9 -1
- package/es/where-filter-panel/use-where-filter-panel.mjs +9 -0
- package/es/where-filter-panel/where-filter-panel.mjs +21 -15
- package/lib/_virtual/_plugin-vue_export-helper.js +11 -0
- package/lib/advance-select/advance-operation.js +47 -50
- package/lib/advance-select/advance-option.js +127 -162
- package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +11 -6
- package/lib/advance-select/advance-select.js +322 -369
- package/lib/advance-select/events-helpers.js +9 -0
- package/lib/advance-select/index.js +9 -0
- package/lib/advance-select/use-advance-option.js +9 -0
- package/lib/advance-select/use-advance-select.js +9 -0
- package/lib/application-slot/application-slot.js +9 -0
- package/lib/application-slot/breadcrumb-item.js +25 -19
- package/lib/application-slot/header-tools-item.js +25 -19
- package/lib/application-slot/index.js +9 -0
- package/lib/breadcrumb-select/breadcrumb-select.js +122 -136
- package/lib/breadcrumb-select/index.js +9 -0
- package/lib/components.js +9 -0
- package/lib/contextmenu/contextmenu-item.js +23 -18
- package/lib/contextmenu/contextmenu.js +67 -72
- package/lib/contextmenu/index.js +9 -0
- package/lib/contextmenu/use-contextmenu.js +10 -1
- package/lib/data-form/data-form-item.js +40 -48
- package/lib/data-form/data-form.js +175 -212
- package/lib/data-form/dynamic-component.js +9 -0
- package/lib/data-form/form-components/Blots/AtBlot.js +9 -0
- package/lib/data-form/form-components/bwa-date-picker.js +49 -50
- package/lib/data-form/form-components/bwa-date-time-picker.js +54 -55
- package/lib/data-form/form-components/bwa-input-float.js +47 -47
- package/lib/data-form/form-components/bwa-input-integer.js +60 -67
- package/lib/data-form/form-components/bwa-input.js +42 -42
- package/lib/data-form/form-components/bwa-multi-select.js +39 -39
- package/lib/data-form/form-components/bwa-rich-text-tinymce.js +229 -554
- package/lib/data-form/form-components/bwa-rich-text.js +325 -403
- package/lib/data-form/form-components/bwa-select.js +80 -83
- package/lib/data-form/form-components/bwa-textarea.js +37 -37
- package/lib/data-form/form-components/bwa-upload.js +159 -172
- package/lib/data-form/form-components/bwa-user-multi-select.js +34 -34
- package/lib/data-form/form-components/bwa-user-select.js +71 -85
- package/lib/data-form/index.js +9 -0
- package/lib/data-table/data-column-view.js +124 -146
- package/lib/data-table/data-table-card.js +49 -48
- package/lib/data-table/data-table-column.js +54 -57
- package/lib/data-table/data-table.js +327 -403
- package/lib/data-table/dynamic-component.js +9 -0
- package/lib/data-table/index.js +9 -0
- package/lib/data-table/use-datatable-drag.js +9 -0
- package/lib/datatable-settings/datatable-settings.js +285 -327
- package/lib/datatable-settings/index.js +9 -0
- package/lib/date-range/date-picker.js +124 -130
- package/lib/date-range/date-range.js +172 -215
- package/lib/date-range/index.js +9 -0
- package/lib/drag-list/constants.js +10 -0
- package/lib/drag-list/drag-item.js +50 -55
- package/lib/drag-list/drag-list.js +57 -59
- package/lib/drag-list/index.js +9 -0
- package/lib/drag-list/use-drag-list.js +10 -1
- package/lib/dragable/constants.js +10 -0
- package/lib/dragable/dragable-item.js +26 -22
- package/lib/dragable/dragable-operation.js +32 -31
- package/lib/dragable/dragable.js +32 -31
- package/lib/dragable/index.js +9 -0
- package/lib/dragable/use-dragable.js +9 -0
- package/lib/filter-panel/conditions/condition.js +9 -0
- package/lib/filter-panel/conditions/date-range-condition.js +50 -49
- package/lib/filter-panel/conditions/department-condition/department-condition.js +81 -98
- package/lib/filter-panel/conditions/department-condition/department-node.js +68 -72
- package/lib/filter-panel/conditions/index.js +9 -0
- package/lib/filter-panel/conditions/input-condition.js +87 -90
- package/lib/filter-panel/conditions/multi-user-condition.js +65 -66
- package/lib/filter-panel/conditions/multiple-menu-condition.js +43 -53
- package/lib/filter-panel/conditions/single-menu-condition.js +70 -64
- package/lib/filter-panel/conditions/single-user-condition.js +65 -66
- package/lib/filter-panel/filter-panel-item.js +50 -54
- package/lib/filter-panel/filter-panel.js +146 -155
- package/lib/filter-panel/index.js +9 -0
- package/lib/filter-panel/use-filter-panel-item.js +9 -0
- package/lib/filter-panel/use-filter-panel.js +9 -0
- package/lib/hooks/use-data/index.js +9 -0
- package/lib/index.js +9 -0
- package/lib/layout/index.js +9 -0
- package/lib/layout/layout.js +86 -84
- package/lib/make-installer.js +9 -0
- package/lib/math/Rectangle.js +10 -0
- package/lib/menu/index.js +9 -0
- package/lib/menu/menu-item.js +64 -69
- package/lib/menu/menu.js +63 -69
- 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
- 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
- package/lib/panel/index.js +9 -0
- package/lib/panel/panel.js +48 -52
- package/lib/panel-tabs/index.js +9 -0
- package/lib/panel-tabs/panel-tabs.js +9 -0
- package/lib/pct-filter-panel/index.js +9 -0
- package/lib/pct-filter-panel/pct-compents/index.js +9 -0
- package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +72 -74
- package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +76 -76
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +344 -373
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +148 -153
- package/lib/pct-filter-panel/pct-filter-panel-item.js +51 -55
- package/lib/pct-filter-panel/pct-filter-panel.js +234 -247
- package/lib/pct-filter-panel/use-filter-panel-item.js +9 -0
- package/lib/pct-filter-panel/use-filter-panel.js +9 -0
- package/lib/plugins.js +9 -0
- package/lib/progress/index.js +9 -0
- package/lib/progress/progress-item.js +70 -80
- package/lib/progress/progress.js +73 -77
- package/lib/progress/use-progress.js +9 -0
- package/lib/utils/db.js +9 -0
- package/lib/utils.css +1 -0
- package/lib/utils.js +9 -0
- package/lib/where-filter-panel/index.js +9 -0
- package/lib/where-filter-panel/use-where-filter-panel.js +9 -0
- package/lib/where-filter-panel/where-filter-panel.js +20 -14
- package/package.json +1 -1
- package/style/index.css +1 -1
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +0 -28
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +0 -32
|
@@ -8,195 +8,186 @@ var useFilterPanel = require('./use-filter-panel.js');
|
|
|
8
8
|
var filterPanelItem = require('./filter-panel-item.js');
|
|
9
9
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
);
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
},
|
|
114
|
-
])
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
]
|
|
118
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
119
|
-
]),
|
|
120
|
-
(__props.showFieldOptions)
|
|
121
|
-
? (vue.openBlock(), vue.createBlock(filterPanelItem["default"], { key: 0 }, {
|
|
11
|
+
// Inject __name helper
|
|
12
|
+
if (typeof __name === 'undefined') {
|
|
13
|
+
function __name(obj, name) {
|
|
14
|
+
Object.defineProperty(obj, "name", {
|
|
15
|
+
value: name,
|
|
16
|
+
configurable: true
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const __default__ = vue.defineComponent({
|
|
21
|
+
name: "BwaFilterPanel"
|
|
22
|
+
});
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
24
|
+
props: {
|
|
25
|
+
dataTable: {
|
|
26
|
+
type: Object
|
|
27
|
+
},
|
|
28
|
+
showSearch: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false
|
|
31
|
+
},
|
|
32
|
+
showFieldOptions: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: true
|
|
35
|
+
},
|
|
36
|
+
searchAttr: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "search"
|
|
39
|
+
},
|
|
40
|
+
searchPlaceholder: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: ""
|
|
43
|
+
},
|
|
44
|
+
searchFields: {
|
|
45
|
+
type: Array,
|
|
46
|
+
default: () => []
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
emits: ["reset", "filter"],
|
|
50
|
+
setup(__props, { emit: __emit }) {
|
|
51
|
+
;
|
|
52
|
+
const props = __props;
|
|
53
|
+
const emit = __emit;
|
|
54
|
+
const ns = webBaseClientVue.useNamespace("filterpanel");
|
|
55
|
+
const {
|
|
56
|
+
dataTable,
|
|
57
|
+
filterPanel,
|
|
58
|
+
currentFilterColumns,
|
|
59
|
+
selectedColumnAttrNames,
|
|
60
|
+
closableColumns,
|
|
61
|
+
searchParams,
|
|
62
|
+
handleFieldSearch,
|
|
63
|
+
searchValue,
|
|
64
|
+
isChange,
|
|
65
|
+
handleReset
|
|
66
|
+
} = useFilterPanel.useFilterPanel(props, { emit });
|
|
67
|
+
vue.watch(
|
|
68
|
+
filterPanel,
|
|
69
|
+
(filterPanel2, _, onCleanup) => {
|
|
70
|
+
filterPanel2.existComponent = true;
|
|
71
|
+
onCleanup(() => {
|
|
72
|
+
filterPanel2.existComponent = false;
|
|
73
|
+
});
|
|
74
|
+
},
|
|
75
|
+
{ immediate: true }
|
|
76
|
+
);
|
|
77
|
+
vue.provide(
|
|
78
|
+
webBaseClientVue.filterPanelKey,
|
|
79
|
+
vue.reactive({
|
|
80
|
+
dataTable,
|
|
81
|
+
filterPanel,
|
|
82
|
+
currentFilterColumns
|
|
83
|
+
})
|
|
84
|
+
);
|
|
85
|
+
return (_ctx, _cache) => {
|
|
86
|
+
const _component_BwaCondition = vue.resolveComponent("BwaCondition");
|
|
87
|
+
const _component_ElCheckbox = vue.resolveComponent("ElCheckbox");
|
|
88
|
+
const _component_BwaAdvanceOption = vue.resolveComponent("BwaAdvanceOption");
|
|
89
|
+
const _component_BwaAdvanceSelect = vue.resolveComponent("BwaAdvanceSelect");
|
|
90
|
+
const _component_ElInput = vue.resolveComponent("ElInput");
|
|
91
|
+
const _component_ElButton = vue.resolveComponent("ElButton");
|
|
92
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
93
|
+
class: vue.normalizeClass(vue.unref(ns).b())
|
|
94
|
+
}, [
|
|
95
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
96
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(currentFilterColumns), (column) => {
|
|
97
|
+
return vue.renderSlot(_ctx.$slots, `condition-${column.attrName}`, {
|
|
98
|
+
key: column.attrName,
|
|
99
|
+
attrName: column.attrName
|
|
100
|
+
}, () => [
|
|
101
|
+
vue.createVNode(filterPanelItem["default"], {
|
|
102
|
+
prop: column.fullAttrName
|
|
103
|
+
}, {
|
|
104
|
+
default: vue.withCtx(({ data }) => [
|
|
105
|
+
vue.createVNode(_component_BwaCondition, {
|
|
106
|
+
modelValue: data.value,
|
|
107
|
+
"onUpdate:modelValue": ($event) => data.value = $event,
|
|
108
|
+
column,
|
|
109
|
+
record: vue.unref(searchParams)
|
|
110
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "record"])
|
|
111
|
+
]),
|
|
112
|
+
_: 2
|
|
113
|
+
}, 1032, ["prop"])
|
|
114
|
+
]);
|
|
115
|
+
}), 128))
|
|
116
|
+
]),
|
|
117
|
+
__props.showFieldOptions ? (vue.openBlock(), vue.createBlock(filterPanelItem["default"], { key: 0 }, {
|
|
122
118
|
default: vue.withCtx(() => [
|
|
123
119
|
vue.createVNode(_component_BwaAdvanceSelect, {
|
|
124
120
|
modelValue: vue.unref(selectedColumnAttrNames),
|
|
125
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event =>
|
|
121
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(selectedColumnAttrNames) ? selectedColumnAttrNames.value = $event : null),
|
|
126
122
|
"show-selectIcon": true,
|
|
127
123
|
onSearch: vue.unref(handleFieldSearch),
|
|
128
|
-
class: vue.normalizeClass(vue.unref(ns).e(
|
|
124
|
+
class: vue.normalizeClass(vue.unref(ns).e("options"))
|
|
129
125
|
}, {
|
|
130
126
|
"reference-content": vue.withCtx(() => [
|
|
131
127
|
vue.createCommentVNode(" <ElIcon><Plus /></ElIcon> "),
|
|
132
128
|
vue.createElementVNode("div", {
|
|
133
|
-
class: vue.normalizeClass(vue.unref(ns).be(
|
|
134
|
-
}, null, 2
|
|
129
|
+
class: vue.normalizeClass(vue.unref(ns).be("filter", "plus"))
|
|
130
|
+
}, null, 2),
|
|
135
131
|
vue.createElementVNode("span", {
|
|
136
|
-
class: vue.normalizeClass(vue.unref(ns).be(
|
|
137
|
-
}, "
|
|
132
|
+
class: vue.normalizeClass(vue.unref(ns).be("filter", "label"))
|
|
133
|
+
}, " \u7B5B\u9009 ", 2)
|
|
138
134
|
]),
|
|
139
135
|
default: vue.withCtx(() => [
|
|
140
136
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(closableColumns), (column) => {
|
|
141
|
-
return
|
|
137
|
+
return vue.openBlock(), vue.createBlock(_component_BwaAdvanceOption, {
|
|
142
138
|
value: column.fullAttrName,
|
|
143
139
|
label: column.title,
|
|
144
140
|
key: column.fullAttrName,
|
|
145
|
-
class: vue.normalizeClass(vue.unref(ns).be(
|
|
141
|
+
class: vue.normalizeClass(vue.unref(ns).be("filter", "option"))
|
|
146
142
|
}, {
|
|
147
143
|
default: vue.withCtx(() => [
|
|
148
144
|
vue.createVNode(_component_ElCheckbox, {
|
|
149
|
-
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
145
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
146
|
+
}, ["prevent"])),
|
|
150
147
|
modelValue: vue.unref(selectedColumnAttrNames).includes(column.fullAttrName),
|
|
151
|
-
class: vue.normalizeClass(vue.unref(ns).be(
|
|
148
|
+
class: vue.normalizeClass(vue.unref(ns).be("filter", "checkbox"))
|
|
152
149
|
}, {
|
|
153
150
|
default: vue.withCtx(() => [
|
|
154
|
-
vue.createTextVNode(vue.toDisplayString(column.title), 1
|
|
151
|
+
vue.createTextVNode(vue.toDisplayString(column.title), 1)
|
|
155
152
|
]),
|
|
156
|
-
_: 2
|
|
157
|
-
}, 1032
|
|
153
|
+
_: 2
|
|
154
|
+
}, 1032, ["modelValue", "class"]),
|
|
158
155
|
vue.createElementVNode("span", {
|
|
159
|
-
class: vue.normalizeClass(vue.unref(ns).be(
|
|
160
|
-
}, vue.toDisplayString(column.componentTitle), 3
|
|
156
|
+
class: vue.normalizeClass(vue.unref(ns).be("filter", "title"))
|
|
157
|
+
}, vue.toDisplayString(column.componentTitle), 3)
|
|
161
158
|
]),
|
|
162
|
-
_: 2
|
|
163
|
-
}, 1032
|
|
164
|
-
}), 128
|
|
159
|
+
_: 2
|
|
160
|
+
}, 1032, ["value", "label", "class"]);
|
|
161
|
+
}), 128))
|
|
165
162
|
]),
|
|
166
|
-
_: 1
|
|
167
|
-
}, 8
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["modelValue", "onSearch", "class"])
|
|
168
165
|
]),
|
|
169
|
-
_: 1
|
|
170
|
-
}))
|
|
171
|
-
|
|
172
|
-
(__props.showSearch)
|
|
173
|
-
? (vue.openBlock(), vue.createBlock(_component_ElInput, {
|
|
166
|
+
_: 1
|
|
167
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
168
|
+
__props.showSearch ? (vue.openBlock(), vue.createBlock(_component_ElInput, {
|
|
174
169
|
key: 1,
|
|
175
170
|
"prefix-icon": "Search",
|
|
176
171
|
clearable: "",
|
|
177
172
|
modelValue: vue.unref(searchValue),
|
|
178
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event =>
|
|
173
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(searchValue) ? searchValue.value = $event : null),
|
|
179
174
|
placeholder: __props.searchPlaceholder,
|
|
180
|
-
class: vue.normalizeClass(vue.unref(ns).e(
|
|
181
|
-
}, null, 8
|
|
182
|
-
|
|
183
|
-
(vue.unref(isChange))
|
|
184
|
-
? (vue.openBlock(), vue.createBlock(_component_ElButton, {
|
|
175
|
+
class: vue.normalizeClass(vue.unref(ns).e("search"))
|
|
176
|
+
}, null, 8, ["modelValue", "placeholder", "class"])) : vue.createCommentVNode("v-if", true),
|
|
177
|
+
vue.unref(isChange) ? (vue.openBlock(), vue.createBlock(_component_ElButton, {
|
|
185
178
|
key: 2,
|
|
186
|
-
class: vue.normalizeClass(vue.unref(ns).e(
|
|
179
|
+
class: vue.normalizeClass(vue.unref(ns).e("reset")),
|
|
187
180
|
onClick: vue.unref(handleReset)
|
|
188
181
|
}, {
|
|
189
|
-
default: vue.withCtx(() => [
|
|
190
|
-
vue.createTextVNode("
|
|
191
|
-
]),
|
|
192
|
-
_: 1
|
|
193
|
-
}, 8
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
};
|
|
200
|
-
var FilterPanel = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"filter-panel.vue"]]);
|
|
182
|
+
default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
183
|
+
vue.createTextVNode(" \u91CD\u7F6E ", -1)
|
|
184
|
+
])]),
|
|
185
|
+
_: 1
|
|
186
|
+
}, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
|
|
187
|
+
], 2);
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
var FilterPanel = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "filter-panel.vue"]]);
|
|
201
192
|
|
|
202
193
|
exports["default"] = FilterPanel;
|
|
@@ -7,6 +7,15 @@ var filterPanel = require('./filter-panel.js');
|
|
|
7
7
|
var filterPanelItem = require('./filter-panel-item.js');
|
|
8
8
|
var index = require('./conditions/index.js');
|
|
9
9
|
|
|
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
|
+
}
|
|
18
|
+
}
|
|
10
19
|
const BwaFilterPanel = install.withInstall(filterPanel["default"], {
|
|
11
20
|
FilterPanelItem: filterPanelItem["default"]
|
|
12
21
|
});
|
|
@@ -5,6 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
7
7
|
|
|
8
|
+
// Inject __name helper
|
|
9
|
+
if (typeof __name === 'undefined') {
|
|
10
|
+
function __name(obj, name) {
|
|
11
|
+
Object.defineProperty(obj, "name", {
|
|
12
|
+
value: name,
|
|
13
|
+
configurable: true
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
8
17
|
const useFilterPanelItem = (props) => {
|
|
9
18
|
const filterPanelContext = vue.inject(webBaseClientVue.filterPanelKey);
|
|
10
19
|
const filterPanel = vue.computed(() => filterPanelContext.filterPanel);
|
|
@@ -8,6 +8,15 @@ var vue = require('vue');
|
|
|
8
8
|
var rxjs = require('rxjs');
|
|
9
9
|
var db = require('../utils/db.js');
|
|
10
10
|
|
|
11
|
+
// Inject __name helper
|
|
12
|
+
if (typeof __name === 'undefined') {
|
|
13
|
+
function __name(obj, name) {
|
|
14
|
+
Object.defineProperty(obj, "name", {
|
|
15
|
+
value: name,
|
|
16
|
+
configurable: true
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
11
20
|
const useFilterPanel = (props, context) => {
|
|
12
21
|
var _a;
|
|
13
22
|
const dataTable = ElementPlus.useProp("dataTable");
|
|
@@ -8,6 +8,15 @@ var vue = require('vue');
|
|
|
8
8
|
var rxjs = require('rxjs');
|
|
9
9
|
var lodash = require('lodash');
|
|
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 dataProps = {
|
|
12
21
|
dataTable: {
|
|
13
22
|
type: Object
|
package/lib/index.js
CHANGED
|
@@ -23,6 +23,15 @@ var index$f = require('./progress/index.js');
|
|
|
23
23
|
var index$g = require('./dragable/index.js');
|
|
24
24
|
var useContextmenu = require('./contextmenu/use-contextmenu.js');
|
|
25
25
|
|
|
26
|
+
// Inject __name helper
|
|
27
|
+
if (typeof __name === 'undefined') {
|
|
28
|
+
function __name(obj, name) {
|
|
29
|
+
Object.defineProperty(obj, "name", {
|
|
30
|
+
value: name,
|
|
31
|
+
configurable: true
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
26
35
|
const install = makeInstaller.makeInstaller([...components["default"], ...plugins["default"]]);
|
|
27
36
|
var index = {
|
|
28
37
|
install
|
package/lib/layout/index.js
CHANGED
|
@@ -5,6 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var install = require('element-plus/es/utils/vue/install');
|
|
6
6
|
var layout = require('./layout.js');
|
|
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 BwaLayout = install.withInstall(layout["default"]);
|
|
9
18
|
|
|
10
19
|
exports.BwaLayout = BwaLayout;
|
package/lib/layout/layout.js
CHANGED
|
@@ -8,90 +8,92 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
|
8
8
|
var index = require('../menu/index.js');
|
|
9
9
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
const router = vueRouter.useRouter();
|
|
20
|
-
|
|
21
|
-
const ns = webBaseClientVue.useNamespace('layout');
|
|
22
|
-
|
|
23
|
-
const menuService = webBaseClientVue.useService('MenuService');
|
|
24
|
-
|
|
25
|
-
const isCollapsed = vue.computed(() => vue.unref(menuService)?.isCollapsed ?? false);
|
|
26
|
-
|
|
27
|
-
const menus = vue.computed(() => vue.unref(menuService)?.getMenus() ?? []);
|
|
28
|
-
const currentMenuID = vue.computed(
|
|
29
|
-
() => vue.unref(menuService)?.getCurrentMenu()?.id ?? ''
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
const handleSelect = (menu) => {
|
|
33
|
-
if (!menu) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
switch (menu?.type) {
|
|
38
|
-
case 0:
|
|
39
|
-
vue.unref(menuService).setCurrentMenuById(menu.id);
|
|
40
|
-
router.push(menu.path);
|
|
41
|
-
break;
|
|
42
|
-
case 1:
|
|
43
|
-
let openLink = '';
|
|
44
|
-
|
|
45
|
-
if (
|
|
46
|
-
path.toLowerCase().indexOf('https://') == 0 ||
|
|
47
|
-
path.toLowerCase().indexOf('http://') == 0
|
|
48
|
-
) {
|
|
49
|
-
openLink = path;
|
|
50
|
-
} else if (path.startsWith('//')) {
|
|
51
|
-
openLink = location.protocol + path;
|
|
52
|
-
} else {
|
|
53
|
-
openLink = path;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
window.open(openLink);
|
|
57
|
-
break;
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
return (_ctx, _cache) => {
|
|
62
|
-
const _component_ElScrollbar = vue.resolveComponent("ElScrollbar");
|
|
63
|
-
|
|
64
|
-
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
65
|
-
class: vue.normalizeClass([vue.unref(ns).b(), 'justify-between'])
|
|
66
|
-
}, [
|
|
67
|
-
vue.createVNode(_component_ElScrollbar, {
|
|
68
|
-
class: vue.normalizeClass(vue.unref(ns).e('menu-wrapper')),
|
|
69
|
-
height: "100%"
|
|
70
|
-
}, {
|
|
71
|
-
default: vue.withCtx(() => [
|
|
72
|
-
vue.renderSlot(_ctx.$slots, "left-panel", {}, () => [
|
|
73
|
-
vue.createVNode(vue.unref(index.BwaMenu), {
|
|
74
|
-
class: vue.normalizeClass(vue.unref(ns).e('menu')),
|
|
75
|
-
menus: vue.unref(menus),
|
|
76
|
-
currentMenuID: vue.unref(currentMenuID),
|
|
77
|
-
collapsed: vue.unref(isCollapsed),
|
|
78
|
-
onSelect: handleSelect
|
|
79
|
-
}, null, 8 /* PROPS */, ["class", "menus", "currentMenuID", "collapsed"])
|
|
80
|
-
]),
|
|
81
|
-
vue.renderSlot(_ctx.$slots, "left-panel-append")
|
|
82
|
-
]),
|
|
83
|
-
_: 3 /* FORWARDED */
|
|
84
|
-
}, 8 /* PROPS */, ["class"]),
|
|
85
|
-
vue.createElementVNode("div", {
|
|
86
|
-
class: vue.normalizeClass(vue.unref(ns).e('main'))
|
|
87
|
-
}, [
|
|
88
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
89
|
-
], 2 /* CLASS */)
|
|
90
|
-
], 2 /* CLASS */))
|
|
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
|
+
}
|
|
91
19
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
};
|
|
95
|
-
|
|
20
|
+
const __default__ = vue.defineComponent({
|
|
21
|
+
name: "BwaLayout"
|
|
22
|
+
});
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
24
|
+
setup(__props) {
|
|
25
|
+
;
|
|
26
|
+
const router = vueRouter.useRouter();
|
|
27
|
+
const ns = webBaseClientVue.useNamespace("layout");
|
|
28
|
+
const menuService = webBaseClientVue.useService("MenuService");
|
|
29
|
+
const isCollapsed = vue.computed(() => {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
return (_b = (_a = vue.unref(menuService)) == null ? void 0 : _a.isCollapsed) != null ? _b : false;
|
|
32
|
+
});
|
|
33
|
+
const menus = vue.computed(() => {
|
|
34
|
+
var _a, _b;
|
|
35
|
+
return (_b = (_a = vue.unref(menuService)) == null ? void 0 : _a.getMenus()) != null ? _b : [];
|
|
36
|
+
});
|
|
37
|
+
const currentMenuID = vue.computed(
|
|
38
|
+
() => {
|
|
39
|
+
var _a, _b, _c;
|
|
40
|
+
return (_c = (_b = (_a = vue.unref(menuService)) == null ? void 0 : _a.getCurrentMenu()) == null ? void 0 : _b.id) != null ? _c : "";
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
const handleSelect = (menu) => {
|
|
44
|
+
if (!menu) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
switch (menu == null ? void 0 : menu.type) {
|
|
48
|
+
case 0:
|
|
49
|
+
vue.unref(menuService).setCurrentMenuById(menu.id);
|
|
50
|
+
router.push(menu.path);
|
|
51
|
+
break;
|
|
52
|
+
case 1:
|
|
53
|
+
let openLink = "";
|
|
54
|
+
if (path.toLowerCase().indexOf("https://") == 0 || path.toLowerCase().indexOf("http://") == 0) {
|
|
55
|
+
openLink = path;
|
|
56
|
+
} else if (path.startsWith("//")) {
|
|
57
|
+
openLink = location.protocol + path;
|
|
58
|
+
} else {
|
|
59
|
+
openLink = path;
|
|
60
|
+
}
|
|
61
|
+
window.open(openLink);
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
return (_ctx, _cache) => {
|
|
66
|
+
const _component_ElScrollbar = vue.resolveComponent("ElScrollbar");
|
|
67
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
68
|
+
class: vue.normalizeClass([vue.unref(ns).b(), "justify-between"])
|
|
69
|
+
}, [
|
|
70
|
+
vue.createVNode(_component_ElScrollbar, {
|
|
71
|
+
class: vue.normalizeClass(vue.unref(ns).e("menu-wrapper")),
|
|
72
|
+
height: "100%"
|
|
73
|
+
}, {
|
|
74
|
+
default: vue.withCtx(() => [
|
|
75
|
+
vue.renderSlot(_ctx.$slots, "left-panel", {}, () => [
|
|
76
|
+
vue.createVNode(vue.unref(index.BwaMenu), {
|
|
77
|
+
class: vue.normalizeClass(vue.unref(ns).e("menu")),
|
|
78
|
+
menus: menus.value,
|
|
79
|
+
currentMenuID: currentMenuID.value,
|
|
80
|
+
collapsed: isCollapsed.value,
|
|
81
|
+
onSelect: handleSelect
|
|
82
|
+
}, null, 8, ["class", "menus", "currentMenuID", "collapsed"])
|
|
83
|
+
]),
|
|
84
|
+
vue.renderSlot(_ctx.$slots, "left-panel-append")
|
|
85
|
+
]),
|
|
86
|
+
_: 3
|
|
87
|
+
}, 8, ["class"]),
|
|
88
|
+
vue.createElementVNode("div", {
|
|
89
|
+
class: vue.normalizeClass(vue.unref(ns).e("main"))
|
|
90
|
+
}, [
|
|
91
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
92
|
+
], 2)
|
|
93
|
+
], 2);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
var Layout = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "layout.vue"]]);
|
|
96
98
|
|
|
97
99
|
exports["default"] = Layout;
|
package/lib/make-installer.js
CHANGED
|
@@ -31,6 +31,15 @@ var ElementPlus__default = /*#__PURE__*/_interopDefaultLegacy(ElementPlus);
|
|
|
31
31
|
var icons__namespace = /*#__PURE__*/_interopNamespace(icons);
|
|
32
32
|
var zhCn__default = /*#__PURE__*/_interopDefaultLegacy(zhCn);
|
|
33
33
|
|
|
34
|
+
// Inject __name helper
|
|
35
|
+
if (typeof __name === 'undefined') {
|
|
36
|
+
function __name(obj, name) {
|
|
37
|
+
Object.defineProperty(obj, "name", {
|
|
38
|
+
value: name,
|
|
39
|
+
configurable: true
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
34
43
|
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
35
44
|
const makeInstaller = (components = []) => {
|
|
36
45
|
const install = (app, options) => {
|
package/lib/math/Rectangle.js
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
// Inject __name helper
|
|
6
|
+
if (typeof __name === 'undefined') {
|
|
7
|
+
function __name(obj, name) {
|
|
8
|
+
Object.defineProperty(obj, "name", {
|
|
9
|
+
value: name,
|
|
10
|
+
configurable: true
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
5
15
|
class Rectangle {
|
|
6
16
|
constructor(x, y, width, height) {
|
|
7
17
|
if (width < 0) {
|