@wfrog/vc-ui 1.7.0 → 1.9.0

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 (43) hide show
  1. package/dist/es/components/drawer/drawer.d.ts +7 -0
  2. package/dist/es/components/drawer/drawer.mjs +71 -23
  3. package/dist/es/components/drawer/drawer.vue.d.ts +9 -3
  4. package/dist/es/components/drawer/index.css +39 -18
  5. package/dist/es/components/explorer-filter/explorer-filter.mjs +2 -2
  6. package/dist/es/components/explorer-footer/explorer-footer.mjs +2 -2
  7. package/dist/es/components/explorer-form/explorer-form.mjs +2 -2
  8. package/dist/es/components/explorer-list/explorer-list.mjs +2 -2
  9. package/dist/es/components/{explorer-dialog-form/explorer-dialog-form.d.ts → explorer-modal-form/explorer-modal-form.d.ts} +5 -4
  10. package/dist/es/components/{explorer-dialog-form/explorer-dialog-form.mjs → explorer-modal-form/explorer-modal-form.mjs} +24 -20
  11. package/dist/es/components/{explorer-dialog-form/explorer-dialog-form.vue.d.ts → explorer-modal-form/explorer-modal-form.vue.d.ts} +6 -6
  12. package/dist/es/components/explorer-modal-form/index.css +5 -0
  13. package/dist/es/components/{explorer-dialog-form → explorer-modal-form}/index.d.ts +1 -1
  14. package/dist/es/components/{explorer-dialog-form → explorer-modal-form}/index.mjs +1 -1
  15. package/dist/es/components/explorer-panel/explorer-panel.mjs +3 -3
  16. package/dist/es/components/explorer-panel/index.css +6 -3
  17. package/dist/es/components/explorer-query/explorer-query.mjs +3 -3
  18. package/dist/es/components/explorer-query/index.css +2 -2
  19. package/dist/es/components/explorer-tools/explorer-tools.mjs +6 -6
  20. package/dist/es/components/explorer-tools/index.css +8 -8
  21. package/dist/es/components/transfer/index.css +38 -0
  22. package/dist/es/components/transfer/index.d.ts +4 -0
  23. package/dist/es/components/transfer/index.mjs +6 -0
  24. package/dist/es/components/transfer/transfer.d.ts +12 -0
  25. package/dist/es/components/transfer/transfer.mjs +122 -0
  26. package/dist/es/components/transfer/transfer.vue.d.ts +12 -0
  27. package/dist/es/components/transfer-panel/components/transfer-child-panel.d.ts +19 -0
  28. package/dist/es/components/transfer-panel/components/transfer-child-panel.vue.d.ts +31 -0
  29. package/dist/es/components/transfer-panel/index.css +100 -0
  30. package/dist/es/components/transfer-panel/index.d.ts +4 -0
  31. package/dist/es/components/transfer-panel/index.mjs +6 -0
  32. package/dist/es/components/transfer-panel/transfer-panel.d.ts +13 -0
  33. package/dist/es/components/transfer-panel/transfer-panel.mjs +289 -0
  34. package/dist/es/components/transfer-panel/transfer-panel.vue.d.ts +14 -0
  35. package/dist/es/components/tree-picker/index.css +2 -2
  36. package/dist/es/components/tree-picker/tree-picker.mjs +4 -4
  37. package/dist/es/components/upload-file/upload-file.mjs +2 -2
  38. package/dist/es/index.d.ts +3 -1
  39. package/dist/es/index.mjs +14 -10
  40. package/dist/global.d.ts +3 -1
  41. package/dist/index.css +200 -39
  42. package/package.json +1 -1
  43. package/dist/es/components/explorer-dialog-form/index.css +0 -6
@@ -1,6 +1,6 @@
1
1
  /* source: src/components/explorer-query/explorer-query.vue */
2
2
  ._explorer-query_1a5c2_1 {
3
- padding-bottom: var(--f439917e);
3
+ padding-bottom: var(--v4fedc6d4);
4
4
  display: flex;
5
5
  column-gap: 8px;
6
6
  justify-content: space-between;
@@ -8,7 +8,7 @@
8
8
  border-bottom: 1px solid var(--el-border-color-lighter);
9
9
  }
10
10
  ._form-container_1a5c2_10 {
11
- height: var(--v2fbb1e90);
11
+ height: var(--v2a8bf085);
12
12
  overflow: hidden;
13
13
  }
14
14
  ._form-container_1a5c2_10._expand_1a5c2_14 {
@@ -456,7 +456,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
456
456
  const _component_ElRadioButton = ElRadioButton;
457
457
  const _component_ElRadioGroup = ElRadioGroup;
458
458
  return openBlock(), createElementBlock("div", {
459
- class: normalizeClass(unref($style)["explorer-tools"])
459
+ class: normalizeClass([unref($style)["explorer-tools"], "vc-explorer-tools"])
460
460
  }, [
461
461
  createElementVNode("div", {
462
462
  class: normalizeClass(unref($style).buttons)
@@ -560,12 +560,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
560
560
  }
561
561
  });
562
562
 
563
- /* unplugin-vue-components disabled */const buttons = "_buttons_n8m18_10";
564
- const tools = "_tools_n8m18_19";
565
- const layout = "_layout_n8m18_30";
566
- const fullscreen = "_fullscreen_n8m18_35";
563
+ /* unplugin-vue-components disabled */const buttons = "_buttons_wenpv_10";
564
+ const tools = "_tools_wenpv_19";
565
+ const layout = "_layout_wenpv_30";
566
+ const fullscreen = "_fullscreen_wenpv_35";
567
567
  const style0 = {
568
- "explorer-tools": "_explorer-tools_n8m18_1",
568
+ "explorer-tools": "_explorer-tools_wenpv_1",
569
569
  buttons: buttons,
570
570
  tools: tools,
571
571
  layout: layout,
@@ -17,37 +17,37 @@
17
17
  }
18
18
  ._divider_971vy_21 {
19
19
  margin: 8px 0;
20
- }._explorer-tools_n8m18_1 {
20
+ }._explorer-tools_wenpv_1 {
21
21
  display: flex;
22
22
  align-items: center;
23
23
  justify-content: space-between;
24
- padding: 8px 0;
24
+ padding: 0 0 8px 0;
25
25
  flex-wrap: wrap;
26
26
  row-gap: 8px;
27
27
  }
28
- ._buttons_n8m18_10 {
28
+ ._buttons_wenpv_10 {
29
29
  display: flex;
30
30
  align-items: center;
31
31
  column-gap: 8px;
32
32
  }
33
- ._buttons_n8m18_10 button {
33
+ ._buttons_wenpv_10 button {
34
34
  margin-left: 0 !important;
35
35
  }
36
- ._tools_n8m18_19 {
36
+ ._tools_wenpv_19 {
37
37
  display: flex;
38
38
  align-items: center;
39
39
  column-gap: 8px;
40
40
  }
41
- ._tools_n8m18_19 > button {
41
+ ._tools_wenpv_19 > button {
42
42
  padding: 4px;
43
43
  font-size: 18px;
44
44
  margin-left: 0 !important;
45
45
  }
46
- ._layout_n8m18_30 .el-radio-button__inner {
46
+ ._layout_wenpv_30 .el-radio-button__inner {
47
47
  padding: 6px 8px;
48
48
  font-size: 18px;
49
49
  }
50
- ._fullscreen_n8m18_35 {
50
+ ._fullscreen_wenpv_35 {
51
51
  position: fixed !important;
52
52
  background-color: var(--el-bg-color) !important;
53
53
  top: 0 !important;
@@ -0,0 +1,38 @@
1
+ /* source: src/components/transfer/transfer.vue */
2
+ ._popover_1kcfx_1 {
3
+ width: auto !important;
4
+ min-width: 80px !important;
5
+ }
6
+ ._container_1kcfx_6 {
7
+ display: flex;
8
+ }
9
+ ._container_1kcfx_6 .el-cascader-menu {
10
+ min-width: 80px;
11
+ }
12
+ ._wrapper_1kcfx_13 {
13
+ display: inline-block;
14
+ width: unset;
15
+ min-width: var(--v4c7f4a02);
16
+ }
17
+ ._wrapper_1kcfx_13._block_1kcfx_18 {
18
+ display: block;
19
+ width: var(--v4c7f4a02);
20
+ }
21
+ ._wrapper_1kcfx_13 .el-tag .el-icon {
22
+ display: none;
23
+ }
24
+ ._select_1kcfx_26 {
25
+ width: 100%;
26
+ }
27
+ ._select_1kcfx_26 .el-input__wrapper.is-focus {
28
+ box-shadow: 0 0 0 1px var(--el-input-focus-border-color, var(--el-color-primary)) inset !important;
29
+ }
30
+ ._is-active_1kcfx_33 .el-input__inner {
31
+ border-color: var(--color-primary);
32
+ }
33
+ ._is-active_1kcfx_33 .el-icon {
34
+ transform: rotateZ(-180deg) !important;
35
+ }
36
+ ._popper_1kcfx_40 {
37
+ display: none !important;
38
+ }
@@ -0,0 +1,4 @@
1
+ import { SFCWithInstall } from '../../utils/typescript';
2
+ import { default as Component } from './transfer.vue';
3
+ export declare const VcTransfer: SFCWithInstall<typeof Component>;
4
+ export default VcTransfer;
@@ -0,0 +1,6 @@
1
+ import { w as withInstall } from '../../chunk/ClZGuAIb.mjs';
2
+ import { C as Component } from './transfer.mjs';
3
+
4
+ const VcTransfer = withInstall(Component);
5
+
6
+ export { VcTransfer, VcTransfer as default };
@@ -0,0 +1,12 @@
1
+ import { ITransferChildItem } from '../transfer-panel/components/transfer-child-panel';
2
+ export interface ITransferProps {
3
+ modelValue?: string[] | number[];
4
+ data?: ITransferChildItem[];
5
+ placeholder?: string;
6
+ width?: string;
7
+ block?: boolean;
8
+ disabled?: boolean;
9
+ }
10
+ export interface ITransferEmits {
11
+ (e: 'update:modelValue', value: string[] | number[]): void;
12
+ }
@@ -0,0 +1,122 @@
1
+ import './index.css'
2
+ import '../../chunk/By7FMB3I.mjs';
3
+ import '../../chunk/D1Ki7NcP.mjs';
4
+ /* empty css */
5
+ import { defineComponent, useCssVars, unref, computed, useCssModule, useTemplateRef, createBlock, openBlock, withCtx, createElementVNode, normalizeClass, createVNode, isRef, mergeProps } from 'vue';
6
+ import { useFormDisabled } from 'element-plus';
7
+ import { C as Component$2 } from '../select/select.mjs';
8
+ import { C as Component$1 } from '../transfer-panel/transfer-panel.mjs';
9
+ import { useVModel, useToggle, useThrottleFn, onClickOutside } from '@vueuse/core';
10
+ import { E as ElPopover } from '../../chunk/BzqDqZOf.mjs';
11
+ import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
12
+
13
+ const _sfc_main = /* @__PURE__ */ defineComponent({
14
+ __name: "transfer",
15
+ props: {
16
+ modelValue: {},
17
+ data: {},
18
+ placeholder: { default: "请选择" },
19
+ width: {},
20
+ block: { type: Boolean },
21
+ disabled: { type: Boolean, default: void 0 }
22
+ },
23
+ emits: ["update:modelValue"],
24
+ setup(__props, { emit: __emit }) {
25
+ useCssVars((_ctx) => ({
26
+ "v4c7f4a02": unref(myWidth)
27
+ }));
28
+ const props = __props;
29
+ const emits = __emit;
30
+ const myValue = useVModel(props, "modelValue", emits);
31
+ const [popoverVisible, togglePopoverVisible] = useToggle();
32
+ const formDisabled = useFormDisabled();
33
+ const handleSelectClick = useThrottleFn(() => {
34
+ !formDisabled.value && togglePopoverVisible();
35
+ }, 300);
36
+ const myWidth = computed(() => {
37
+ return props.width || (props.block ? "100%" : "240px");
38
+ });
39
+ const $style = useCssModule();
40
+ const selectClassName = computed(() => ({ [$style["is-active"]]: popoverVisible.value, [$style.block]: props.block }));
41
+ const containerRef = useTemplateRef("containerRef");
42
+ onClickOutside(containerRef, (event) => {
43
+ let target = event.target;
44
+ let result = false;
45
+ do {
46
+ result = target.classList ? target.classList.contains($style.select) : false;
47
+ target = target.parentNode;
48
+ } while (result === false && target !== null && target.nodeName !== "BODY");
49
+ !result && togglePopoverVisible(false);
50
+ });
51
+ return (_ctx, _cache) => {
52
+ const _component_ElPopover = ElPopover;
53
+ return openBlock(), createBlock(_component_ElPopover, {
54
+ visible: unref(popoverVisible),
55
+ placement: "bottom",
56
+ "popper-class": unref($style).popover
57
+ }, {
58
+ reference: withCtx(() => [
59
+ createElementVNode("div", {
60
+ class: normalizeClass(unref($style).wrapper),
61
+ onClickCapture: _cache[2] || (_cache[2] = //@ts-ignore
62
+ (...args) => unref(handleSelectClick) && unref(handleSelectClick)(...args))
63
+ }, [
64
+ createVNode(Component$2, mergeProps({
65
+ modelValue: unref(myValue),
66
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(myValue) ? myValue.value = $event : null),
67
+ block: __props.block,
68
+ placeholder: __props.placeholder,
69
+ class: [unref($style).select, unref(selectClassName)],
70
+ options: __props.data,
71
+ disabled: unref(formDisabled)
72
+ }, { ..._ctx.$attrs, multiple: true }, {
73
+ "popper-class": unref($style).popper
74
+ }), null, 16, ["modelValue", "block", "placeholder", "class", "options", "disabled", "popper-class"])
75
+ ], 34)
76
+ ]),
77
+ default: withCtx(() => [
78
+ createElementVNode("div", {
79
+ ref_key: "containerRef",
80
+ ref: containerRef,
81
+ class: normalizeClass(unref($style).container)
82
+ }, [
83
+ createVNode(Component$1, {
84
+ modelValue: unref(myValue),
85
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(myValue) ? myValue.value = $event : null),
86
+ data: __props.data
87
+ }, null, 8, ["modelValue", "data"])
88
+ ], 2)
89
+ ]),
90
+ _: 1
91
+ }, 8, ["visible", "popper-class"]);
92
+ };
93
+ }
94
+ });
95
+
96
+ /* unplugin-vue-components disabled */const popover = "_popover_1kcfx_1";
97
+ const container = "_container_1kcfx_6";
98
+ const wrapper = "_wrapper_1kcfx_13";
99
+ const block = "_block_1kcfx_18";
100
+ const select = "_select_1kcfx_26";
101
+ const popper = "_popper_1kcfx_40";
102
+ const style0 = {
103
+ popover: popover,
104
+ container: container,
105
+ wrapper: wrapper,
106
+ block: block,
107
+ select: select,
108
+ "is-active": "_is-active_1kcfx_33",
109
+ popper: popper
110
+ };
111
+
112
+ const cssModules = {
113
+ "$style": style0
114
+ };
115
+ const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
116
+
117
+ const __vite_glob_0_56 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
118
+ __proto__: null,
119
+ default: Component
120
+ }, Symbol.toStringTag, { value: 'Module' }));
121
+
122
+ export { Component as C, __vite_glob_0_56 as _ };
@@ -0,0 +1,12 @@
1
+ import { ITransferProps } from './transfer';
2
+ declare const _default: import('vue').DefineComponent<ITransferProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ "update:modelValue": (value: string[] | number[]) => any;
4
+ }, string, import('vue').PublicProps, Readonly<ITransferProps> & Readonly<{
5
+ "onUpdate:modelValue"?: ((value: string[] | number[]) => any) | undefined;
6
+ }>, {
7
+ placeholder: string;
8
+ disabled: boolean;
9
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
10
+ containerRef: HTMLDivElement;
11
+ }, any>;
12
+ export default _default;
@@ -0,0 +1,19 @@
1
+ export interface ITransferChildItem {
2
+ label: string;
3
+ icon?: string;
4
+ value: string | number;
5
+ }
6
+ export interface ITransferChildPanelProps {
7
+ title?: string;
8
+ data?: ITransferChildItem[];
9
+ placeholder?: string;
10
+ type: 'source' | 'choiced';
11
+ width: string;
12
+ modelValue?: string[] | number[];
13
+ debounce?: number;
14
+ disabled?: boolean;
15
+ }
16
+ export interface ITransferChildPanelEmits {
17
+ (e: 'change', type: number, item?: ITransferChildItem): void;
18
+ (e: 'update:modelValue', value: string[] | number[]): void;
19
+ }
@@ -0,0 +1,31 @@
1
+ import { ITransferChildItem, ITransferChildPanelProps } from './transfer-child-panel';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {
6
+ data: ITransferChildItem;
7
+ index: number;
8
+ }): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLDivElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<ITransferChildPanelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ change: (type: number, item?: ITransferChildItem | undefined) => any;
16
+ "update:modelValue": (value: string[] | number[]) => any;
17
+ }, string, import('vue').PublicProps, Readonly<ITransferChildPanelProps> & Readonly<{
18
+ onChange?: ((type: number, item?: ITransferChildItem | undefined) => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: string[] | number[]) => any) | undefined;
20
+ }>, {
21
+ placeholder: string;
22
+ disabled: boolean;
23
+ debounce: number;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
+ export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,100 @@
1
+ /* source: src/components/transfer-panel/components/transfer-child-panel.vue,src/components/transfer-panel/transfer-panel.vue */
2
+ ._transfer-child-panel_ipfuy_1 {
3
+ display: flex;
4
+ flex-direction: column;
5
+ padding: 4px;
6
+ position: relative;
7
+ row-gap: 4px;
8
+ width: var(--v4db18f20);
9
+ }
10
+ ._item_ipfuy_10 {
11
+ padding: 4px 8px;
12
+ display: flex;
13
+ justify-content: space-between;
14
+ align-items: center;
15
+ font-size: var(--el-font-size-base);
16
+ color: var(--el-text-color-regular);
17
+ min-height: 32px;
18
+ box-sizing: border-box;
19
+ line-height: 1;
20
+ }
21
+ ._item_ipfuy_10._source_ipfuy_21 {
22
+ cursor: pointer;
23
+ }
24
+ ._item_ipfuy_10:hover {
25
+ background-color: var(--el-color-primary-light-9);
26
+ }
27
+ ._item_ipfuy_10:hover ._actions_ipfuy_27 {
28
+ display: inline-flex;
29
+ align-items: flex-start;
30
+ }
31
+ ._item_ipfuy_10._active_ipfuy_31 {
32
+ color: var(--el-color-primary);
33
+ background-color: var(--el-color-primary-light-9);
34
+ }
35
+ ._label_ipfuy_36 {
36
+ overflow: hidden;
37
+ text-overflow: ellipsis;
38
+ white-space: nowrap;
39
+ }
40
+ ._icon_ipfuy_42 {
41
+ margin-right: 4px;
42
+ }
43
+ ._actions_ipfuy_27 {
44
+ display: none;
45
+ column-gap: 4px;
46
+ }
47
+ ._actions_ipfuy_27 > button {
48
+ margin-left: 0 !important;
49
+ font-size: 1.2em;
50
+ border: 1px solid var(--el-border-color-light) !important;
51
+ }
52
+ ._actions_ipfuy_27 > button:hover {
53
+ border-color: var(--el-border-color-dark) !important;
54
+ }
55
+ ._operation_ipfuy_59 {
56
+ position: absolute;
57
+ z-index: 10;
58
+ bottom: 0;
59
+ right: 0;
60
+ width: 40px;
61
+ height: 20px;
62
+ display: flex;
63
+ justify-content: center;
64
+ align-items: center;
65
+ background-color: var(--el-bg-color-page);
66
+ cursor: pointer;
67
+ }
68
+ ._operation_ipfuy_59:hover .el-text {
69
+ color: var(--el-color-primary);
70
+ }
71
+ ._transfer-child-panel_ipfuy_1._disabled_ipfuy_76 ._item_ipfuy_10 {
72
+ cursor: not-allowed;
73
+ }
74
+ ._transfer-child-panel_ipfuy_1._disabled_ipfuy_76 ._item_ipfuy_10:hover {
75
+ background-color: inherit;
76
+ }
77
+ ._transfer-child-panel_ipfuy_1._disabled_ipfuy_76 ._item_ipfuy_10._active_ipfuy_31 {
78
+ color: var(--el-color-info);
79
+ background-color: var(--el-fill-color-light);
80
+ }
81
+ ._transfer-child-panel_ipfuy_1._disabled_ipfuy_76 ._actions_ipfuy_27 {
82
+ display: none !important;
83
+ }
84
+ ._transfer-child-panel_ipfuy_1._disabled_ipfuy_76 ._operation_ipfuy_59 {
85
+ cursor: not-allowed;
86
+ }
87
+ ._transfer-child-panel_ipfuy_1._disabled_ipfuy_76 ._operation_ipfuy_59:hover .el-text {
88
+ color: var(--el-color-info);
89
+ }._transfer-panel_1mztg_1 {
90
+ display: flex;
91
+ height: var(--v7fe0a745);
92
+ border-radius: var(--el-border-radius-base);
93
+ border: 1px solid var(--el-border-color-light);
94
+ width: fit-content;
95
+ }
96
+ ._divider_1mztg_9 {
97
+ width: 1px;
98
+ height: 100%;
99
+ background-color: var(--el-border-color-light);
100
+ }
@@ -0,0 +1,4 @@
1
+ import { SFCWithInstall } from '../../utils/typescript';
2
+ import { default as Component } from './transfer-panel.vue';
3
+ export declare const VcTransferPanel: SFCWithInstall<typeof Component>;
4
+ export default VcTransferPanel;
@@ -0,0 +1,6 @@
1
+ import { w as withInstall } from '../../chunk/ClZGuAIb.mjs';
2
+ import { C as Component } from './transfer-panel.mjs';
3
+
4
+ const VcTransferPanel = withInstall(Component);
5
+
6
+ export { VcTransferPanel, VcTransferPanel as default };
@@ -0,0 +1,13 @@
1
+ import { ITransferChildItem } from './components/transfer-child-panel';
2
+ export interface ITransferPanelProps {
3
+ modelValue?: string[] | number[];
4
+ title?: string;
5
+ data?: ITransferChildItem[];
6
+ height?: string | number;
7
+ halfWidth?: string | number;
8
+ disabled?: boolean;
9
+ }
10
+ export interface ITransferPanelEmits {
11
+ (e: 'change', type: number, item?: ITransferChildItem): void;
12
+ (e: 'update:modelValue', value: string[] | number[]): void;
13
+ }