@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
|
@@ -1,88 +1,78 @@
|
|
|
1
|
-
import { toRefs, ref, inject, computed, unref, useAttrs, watch, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, normalizeStyle } from 'vue';
|
|
1
|
+
import { defineComponent, toRefs, ref, inject, computed, unref, useAttrs, watch, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, normalizeStyle } from 'vue';
|
|
2
2
|
import { Observable, delayWhen, from, map, combineLatest } from 'rxjs';
|
|
3
3
|
import { useNamespace, progressKey } from '@ctzy-web-client/web-base-client-vue';
|
|
4
4
|
import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const props = __props;
|
|
15
|
-
|
|
16
|
-
defineOptions({ name: 'BwaProgressItem' });
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const { width, label } = toRefs(props);
|
|
21
|
-
|
|
22
|
-
const ns = useNamespace('progress-item');
|
|
23
|
-
|
|
24
|
-
const progressItemEl = ref(null);
|
|
25
|
-
|
|
26
|
-
const progress = inject(progressKey);
|
|
27
|
-
|
|
28
|
-
const percent = computed(() => (unref(width) / progress.max) * 100 + '%');
|
|
29
|
-
|
|
30
|
-
const attrs = useAttrs();
|
|
31
|
-
|
|
32
|
-
const id = progress.nextID();
|
|
33
|
-
|
|
34
|
-
const colorObservable = new Observable((observer) =>
|
|
35
|
-
watch(
|
|
36
|
-
computed(() => attrs.style['--bwa-progress-item-color']),
|
|
37
|
-
observer.next.bind(observer),
|
|
38
|
-
{ immediate: true }
|
|
39
|
-
)
|
|
40
|
-
).pipe(delayWhen(() => from(nextTick())));
|
|
41
|
-
|
|
42
|
-
const widthObservable = new Observable((observer) =>
|
|
43
|
-
watch(width, observer.next.bind(observer), { immediate: true })
|
|
44
|
-
).pipe(map((width) => parseInt(width) || 0));
|
|
45
|
-
|
|
46
|
-
const labelObservable = new Observable((observer) =>
|
|
47
|
-
watch(label, observer.next.bind(observer), { immediate: true })
|
|
48
|
-
).pipe();
|
|
49
|
-
|
|
50
|
-
const progressItemObservable = combineLatest([
|
|
51
|
-
widthObservable,
|
|
52
|
-
labelObservable,
|
|
53
|
-
colorObservable,
|
|
54
|
-
]);
|
|
55
|
-
|
|
56
|
-
const subscription = progressItemObservable.subscribe({
|
|
57
|
-
next: ([width, label, color]) => {
|
|
58
|
-
progress.handleProgressItemCreate({
|
|
59
|
-
id,
|
|
60
|
-
width,
|
|
61
|
-
label,
|
|
62
|
-
color,
|
|
63
|
-
});
|
|
64
|
-
},
|
|
65
|
-
complete: () => {
|
|
66
|
-
progress.handleProgressItemDestroy(id);
|
|
67
|
-
},
|
|
68
|
-
error: () => {
|
|
69
|
-
progress.handleProgressItemDestroy(id);
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
onBeforeUnmount(subscription.unsubscribe.bind(subscription));
|
|
74
|
-
|
|
75
|
-
return (_ctx, _cache) => {
|
|
76
|
-
return (openBlock(), createElementBlock("div", {
|
|
77
|
-
class: normalizeClass(unref(ns).b()),
|
|
78
|
-
style: normalizeStyle({ width: unref(percent) }),
|
|
79
|
-
ref_key: "progressItemEl",
|
|
80
|
-
ref: progressItemEl
|
|
81
|
-
}, null, 6 /* CLASS, STYLE */))
|
|
6
|
+
// Inject __name helper
|
|
7
|
+
if (typeof __name === 'undefined') {
|
|
8
|
+
function __name(obj, name) {
|
|
9
|
+
Object.defineProperty(obj, "name", {
|
|
10
|
+
value: name,
|
|
11
|
+
configurable: true
|
|
12
|
+
});
|
|
13
|
+
}
|
|
82
14
|
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
15
|
+
const __default__ = defineComponent({ name: "BwaProgressItem" });
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
17
|
+
props: {
|
|
18
|
+
width: { type: Number, default: 0 },
|
|
19
|
+
label: { type: String, required: true }
|
|
20
|
+
},
|
|
21
|
+
setup(__props) {
|
|
22
|
+
;
|
|
23
|
+
const props = __props;
|
|
24
|
+
const { width, label } = toRefs(props);
|
|
25
|
+
const ns = useNamespace("progress-item");
|
|
26
|
+
const progressItemEl = ref(null);
|
|
27
|
+
const progress = inject(progressKey);
|
|
28
|
+
const percent = computed(() => unref(width) / progress.max * 100 + "%");
|
|
29
|
+
const attrs = useAttrs();
|
|
30
|
+
const id = progress.nextID();
|
|
31
|
+
const colorObservable = new Observable(
|
|
32
|
+
(observer) => watch(
|
|
33
|
+
computed(() => attrs.style["--bwa-progress-item-color"]),
|
|
34
|
+
observer.next.bind(observer),
|
|
35
|
+
{ immediate: true }
|
|
36
|
+
)
|
|
37
|
+
).pipe(delayWhen(() => from(nextTick())));
|
|
38
|
+
const widthObservable = new Observable(
|
|
39
|
+
(observer) => watch(width, observer.next.bind(observer), { immediate: true })
|
|
40
|
+
).pipe(map((width2) => parseInt(width2) || 0));
|
|
41
|
+
const labelObservable = new Observable(
|
|
42
|
+
(observer) => watch(label, observer.next.bind(observer), { immediate: true })
|
|
43
|
+
).pipe();
|
|
44
|
+
const progressItemObservable = combineLatest([
|
|
45
|
+
widthObservable,
|
|
46
|
+
labelObservable,
|
|
47
|
+
colorObservable
|
|
48
|
+
]);
|
|
49
|
+
const subscription = progressItemObservable.subscribe({
|
|
50
|
+
next: ([width2, label2, color]) => {
|
|
51
|
+
progress.handleProgressItemCreate({
|
|
52
|
+
id,
|
|
53
|
+
width: width2,
|
|
54
|
+
label: label2,
|
|
55
|
+
color
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
complete: () => {
|
|
59
|
+
progress.handleProgressItemDestroy(id);
|
|
60
|
+
},
|
|
61
|
+
error: () => {
|
|
62
|
+
progress.handleProgressItemDestroy(id);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
onBeforeUnmount(subscription.unsubscribe.bind(subscription));
|
|
66
|
+
return (_ctx, _cache) => {
|
|
67
|
+
return openBlock(), createElementBlock("div", {
|
|
68
|
+
class: normalizeClass(unref(ns).b()),
|
|
69
|
+
style: normalizeStyle({ width: percent.value }),
|
|
70
|
+
ref_key: "progressItemEl",
|
|
71
|
+
ref: progressItemEl
|
|
72
|
+
}, null, 6);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
var ProgressItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "progress-item.vue"]]);
|
|
87
77
|
|
|
88
78
|
export { ProgressItem as default };
|
package/es/progress/progress.mjs
CHANGED
|
@@ -1,88 +1,84 @@
|
|
|
1
|
-
import { toRefs, provide, reactive, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, Fragment, renderList, normalizeStyle, toDisplayString, renderSlot, createCommentVNode } from 'vue';
|
|
1
|
+
import { defineComponent, toRefs, provide, reactive, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, Fragment, renderList, normalizeStyle, toDisplayString, renderSlot, createCommentVNode } from 'vue';
|
|
2
2
|
import { ElTooltip } from 'element-plus';
|
|
3
3
|
import { useNamespace, progressKey } from '@ctzy-web-client/web-base-client-vue';
|
|
4
4
|
import { useProgressState, useProgress } from './use-progress.mjs';
|
|
5
5
|
import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
7
|
+
// Inject __name helper
|
|
8
|
+
if (typeof __name === 'undefined') {
|
|
9
|
+
function __name(obj, name) {
|
|
10
|
+
Object.defineProperty(obj, "name", {
|
|
11
|
+
value: name,
|
|
12
|
+
configurable: true
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
const __default__ = defineComponent({ name: "BwaProgress" });
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
18
|
+
props: {
|
|
19
|
+
max: { type: Number, default: 0 },
|
|
20
|
+
showLabel: { type: Boolean, default: true },
|
|
21
|
+
labelWidth: { type: String, default: "auto" }
|
|
22
|
+
},
|
|
14
23
|
setup(__props) {
|
|
15
|
-
|
|
16
|
-
const props = __props;
|
|
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
|
-
|
|
24
|
+
;
|
|
25
|
+
const props = __props;
|
|
26
|
+
const { max } = toRefs(props);
|
|
27
|
+
const ns = useNamespace("progress");
|
|
28
|
+
const states = useProgressState(props);
|
|
29
|
+
const { percent, handleProgressItemCreate, handleProgressItemDestroy, nextID } = useProgress(props, states);
|
|
30
|
+
provide(
|
|
31
|
+
progressKey,
|
|
32
|
+
reactive({ max, handleProgressItemCreate, handleProgressItemDestroy, nextID })
|
|
33
|
+
);
|
|
34
|
+
return (_ctx, _cache) => {
|
|
35
|
+
return openBlock(), createBlock(unref(ElTooltip), {
|
|
36
|
+
placement: "bottom-start",
|
|
37
|
+
effect: "light",
|
|
38
|
+
"append-to": ".bwa-application"
|
|
39
|
+
}, {
|
|
40
|
+
content: withCtx(() => [
|
|
41
|
+
createElementVNode("div", {
|
|
42
|
+
class: normalizeClass(unref(ns).be("info", "wrapper"))
|
|
43
|
+
}, [
|
|
44
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(states).progressItemList, (item) => {
|
|
45
|
+
return openBlock(), createElementBlock("div", {
|
|
46
|
+
key: item.id,
|
|
47
|
+
class: normalizeClass(unref(ns).be("item", "info")),
|
|
48
|
+
style: normalizeStyle({ "--bwa-progress-item-dot-color": item.color })
|
|
49
|
+
}, [
|
|
50
|
+
createElementVNode("span", {
|
|
51
|
+
class: normalizeClass(unref(ns).be("item", "label"))
|
|
52
|
+
}, toDisplayString(item.label), 3),
|
|
53
|
+
createElementVNode("span", {
|
|
54
|
+
class: normalizeClass(unref(ns).be("item", "value"))
|
|
55
|
+
}, toDisplayString(item.width), 3)
|
|
56
|
+
], 6);
|
|
57
|
+
}), 128))
|
|
58
|
+
], 2)
|
|
59
|
+
]),
|
|
60
|
+
default: withCtx(() => [
|
|
61
|
+
createElementVNode("div", {
|
|
62
|
+
class: normalizeClass(unref(ns).b())
|
|
50
63
|
}, [
|
|
51
|
-
createElementVNode("
|
|
52
|
-
class: normalizeClass(unref(ns).
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
59
|
-
], 2 /* CLASS */)
|
|
60
|
-
]),
|
|
61
|
-
default: withCtx(() => [
|
|
62
|
-
createElementVNode("div", {
|
|
63
|
-
class: normalizeClass(unref(ns).b())
|
|
64
|
-
}, [
|
|
65
|
-
createElementVNode("div", {
|
|
66
|
-
class: normalizeClass(unref(ns).e('inner')),
|
|
67
|
-
style: normalizeStyle({ '--bwa-progress-width': unref(max) })
|
|
68
|
-
}, [
|
|
69
|
-
renderSlot(_ctx.$slots, "default")
|
|
70
|
-
], 6 /* CLASS, STYLE */),
|
|
71
|
-
(__props.showLabel)
|
|
72
|
-
? (openBlock(), createElementBlock("div", {
|
|
64
|
+
createElementVNode("div", {
|
|
65
|
+
class: normalizeClass(unref(ns).e("inner")),
|
|
66
|
+
style: normalizeStyle({ "--bwa-progress-width": unref(max) })
|
|
67
|
+
}, [
|
|
68
|
+
renderSlot(_ctx.$slots, "default")
|
|
69
|
+
], 6),
|
|
70
|
+
__props.showLabel ? (openBlock(), createElementBlock("div", {
|
|
73
71
|
key: 0,
|
|
74
|
-
class: normalizeClass(unref(ns).e(
|
|
75
|
-
style: normalizeStyle({
|
|
76
|
-
}, toDisplayString(unref(percent)) + "% ", 7
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
};
|
|
86
|
-
var Progress = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"progress.vue"]]);
|
|
72
|
+
class: normalizeClass(unref(ns).e("percent")),
|
|
73
|
+
style: normalizeStyle({ "--bwa-progress-label-width": __props.labelWidth })
|
|
74
|
+
}, toDisplayString(unref(percent)) + "% ", 7)) : createCommentVNode("v-if", true)
|
|
75
|
+
], 2)
|
|
76
|
+
]),
|
|
77
|
+
_: 3
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
var Progress = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "progress.vue"]]);
|
|
87
83
|
|
|
88
84
|
export { Progress as default };
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { reactive, computed, unref } from 'vue';
|
|
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
|
+
}
|
|
3
12
|
let uid = 1;
|
|
4
13
|
const useProgressState = (props) => reactive({
|
|
5
14
|
progressItemList: []
|
package/es/utils/db.mjs
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import Dexie from 'dexie';
|
|
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
|
+
}
|
|
3
12
|
const dataModelDB = new Dexie("DataModel");
|
|
4
13
|
dataModelDB.version(1).stores({
|
|
5
14
|
filterPanel: "[app+tableName+userID]",
|
package/es/utils.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.letter-circle[data-v-bc8f5626]{align-items:center;border-radius:50%;color:#fff;display:flex;font-size:14px;height:24px;justify-content:center;margin-right:8px;width:24px}
|
package/es/utils.mjs
CHANGED
|
@@ -2,6 +2,15 @@ import { computed, unref, inject, isProxy, isRef, markRaw, resolveComponent } fr
|
|
|
2
2
|
import get from 'lodash/get';
|
|
3
3
|
import set from 'lodash/set';
|
|
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
|
+
}
|
|
5
14
|
const COMPONENT_NAME_PREFIX = "Bwa";
|
|
6
15
|
const createComponentName = (component) => {
|
|
7
16
|
component.name = COMPONENT_NAME_PREFIX + component.name;
|
|
@@ -2,6 +2,15 @@ import { useProp } from 'element-plus';
|
|
|
2
2
|
import { computed, unref } from 'vue';
|
|
3
3
|
import { useGlobalConfig } from '@ctzy-web-client/web-base-client-vue';
|
|
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
|
+
}
|
|
5
14
|
const usewhereFilterPanel = (props, context) => {
|
|
6
15
|
const dataTable = useProp("dataTable");
|
|
7
16
|
const debounceDelay = useGlobalConfig("debounceDelay", 500);
|
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
import { openBlock, createElementBlock } from 'vue';
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock } from 'vue';
|
|
2
2
|
import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
return (_ctx, _cache) => {
|
|
13
|
-
return (openBlock(), createElementBlock("div"))
|
|
14
|
-
}
|
|
4
|
+
// Inject __name helper
|
|
5
|
+
if (typeof __name === 'undefined') {
|
|
6
|
+
function __name(obj, name) {
|
|
7
|
+
Object.defineProperty(obj, "name", {
|
|
8
|
+
value: name,
|
|
9
|
+
configurable: true
|
|
10
|
+
});
|
|
11
|
+
}
|
|
15
12
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
const __default__ = defineComponent({
|
|
14
|
+
name: "BwaWhereFilterPanel"
|
|
15
|
+
});
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
17
|
+
setup(__props) {
|
|
18
|
+
;
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return openBlock(), createElementBlock("div");
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var whereFilterPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "where-filter-panel.vue"]]);
|
|
19
25
|
|
|
20
26
|
export { whereFilterPanel as default };
|
|
@@ -2,6 +2,17 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
5
16
|
var _export_sfc = (sfc, props) => {
|
|
6
17
|
const target = sfc.__vccOpts || sfc;
|
|
7
18
|
for (const [key, val] of props) {
|
|
@@ -6,56 +6,53 @@ var vue = require('vue');
|
|
|
6
6
|
var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
7
7
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
type: String,
|
|
18
|
-
default: 'button',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
emits: ['click'],
|
|
22
|
-
setup(__props, { emit }) {
|
|
23
|
-
|
|
24
|
-
const props = __props;
|
|
25
|
-
|
|
26
|
-
defineOptions({
|
|
27
|
-
name: 'BwaAdvanceOperation',
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const advanceSelect = vue.inject(webBaseClientVue.advanceSelectKey);
|
|
35
|
-
|
|
36
|
-
const clickHandle = () => {
|
|
37
|
-
if (props.type !== 'button') {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
advanceSelect.hidePoppper();
|
|
42
|
-
|
|
43
|
-
emit('click');
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const ns = webBaseClientVue.useNamespace('advance');
|
|
47
|
-
|
|
48
|
-
return (_ctx, _cache) => {
|
|
49
|
-
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
50
|
-
class: vue.normalizeClass([vue.unref(ns).be('select', 'operation'), vue.unref(ns).is('border', __props.border)]),
|
|
51
|
-
onClick: clickHandle
|
|
52
|
-
}, [
|
|
53
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
54
|
-
], 2 /* CLASS */))
|
|
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
|
+
}
|
|
55
17
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
59
|
-
|
|
18
|
+
const __default__ = vue.defineComponent({
|
|
19
|
+
name: "BwaAdvanceOperation"
|
|
20
|
+
});
|
|
21
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
22
|
+
props: {
|
|
23
|
+
border: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
},
|
|
27
|
+
type: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "button"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["click"],
|
|
33
|
+
setup(__props, { emit: __emit }) {
|
|
34
|
+
;
|
|
35
|
+
const props = __props;
|
|
36
|
+
const emit = __emit;
|
|
37
|
+
const advanceSelect = vue.inject(webBaseClientVue.advanceSelectKey);
|
|
38
|
+
const clickHandle = () => {
|
|
39
|
+
if (props.type !== "button") {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
advanceSelect.hidePoppper();
|
|
43
|
+
emit("click");
|
|
44
|
+
};
|
|
45
|
+
const ns = webBaseClientVue.useNamespace("advance");
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
48
|
+
class: vue.normalizeClass([vue.unref(ns).be("select", "operation"), vue.unref(ns).is("border", __props.border)]),
|
|
49
|
+
onClick: clickHandle
|
|
50
|
+
}, [
|
|
51
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
52
|
+
], 2);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
var AdvanceOperation = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "advance-operation.vue"]]);
|
|
60
57
|
|
|
61
58
|
exports["default"] = AdvanceOperation;
|