cosey 0.7.5 → 0.7.7
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/components/audio-card/audio-card.api.d.ts +1 -1
- package/components/audio-card/audio-card.d.ts +2 -2
- package/components/audio-card/index.d.ts +3 -3
- package/components/config-provider/config-provider.js +11 -4
- package/components/config-provider/override-element-plus.js +19 -7
- package/components/copy/copy.api.d.ts +6 -1
- package/components/copy/copy.api.js +4 -0
- package/components/copy/copy.d.ts +11 -1
- package/components/copy/copy.js +1 -0
- package/components/copy/index.d.ts +21 -3
- package/components/editor/editor.js +1 -1
- package/components/field/components/number-range/number-range.d.ts +3 -3
- package/components/field/components/number-range/number-range.vue.js +1 -1
- package/components/field/components/radio-group/radio-group.d.ts +1 -1
- package/components/field/field.api.d.ts +1 -0
- package/components/field/field.api.js +1 -0
- package/components/field/index.js +1 -0
- package/components/file-card/file-card.api.d.ts +1 -1
- package/components/file-card/file-card.d.ts +2 -2
- package/components/file-card/index.d.ts +3 -3
- package/components/form/form-item.api.d.ts +2 -1
- package/components/form/form-item.api.js +2 -1
- package/components/form/form-item.vue.js +4 -4
- package/components/form/index.d.ts +1 -1
- package/components/form/useBubbleTemplate.d.ts +3 -1
- package/components/form/useBubbleTemplate.js +1 -1
- package/components/form-dialog/form-dialog.api.d.ts +237 -0
- package/components/form-dialog/form-dialog.api.js +53 -0
- package/components/form-dialog/form-dialog.d.ts +221 -59
- package/components/form-dialog/form-dialog.js +53 -46
- package/components/form-dialog/index.d.ts +2 -2
- package/components/form-dialog/index.js +2 -2
- package/components/form-dialog/useFormDialogWidth.d.ts +1 -1
- package/components/form-dialog/useFormDialogWidth.js +1 -1
- package/components/form-drawer/form-drawer.api.d.ts +226 -0
- package/components/form-drawer/form-drawer.api.js +26 -0
- package/components/form-drawer/form-drawer.d.ts +273 -43
- package/components/form-drawer/form-drawer.js +54 -11
- package/components/form-drawer/index.d.ts +44 -76
- package/components/form-drawer/index.js +2 -2
- package/components/form-group/form-group.api.d.ts +73 -0
- package/components/form-group/form-group.api.js +41 -0
- package/components/form-group/form-group.d.ts +143 -14
- package/components/form-group/form-group.js +69 -0
- package/components/{input-number-range/style/index.d.ts → form-group/form-group.style.d.ts} +1 -1
- package/components/form-group/{style/index.js → form-group.style.js} +2 -2
- package/components/form-group/index.d.ts +230 -22
- package/components/form-group/index.js +2 -1
- package/components/form-list/form-list.api.d.ts +1 -0
- package/components/form-query/form-query.api.js +1 -1
- package/components/image-card/image-card.api.d.ts +1 -1
- package/components/image-card/image-card.d.ts +2 -2
- package/components/image-card/index.d.ts +3 -3
- package/components/index.js +8 -6
- package/components/input-number-range/index.d.ts +118 -15
- package/components/input-number-range/index.js +2 -2
- package/components/input-number-range/input-number-range.api.d.ts +43 -0
- package/components/input-number-range/input-number-range.api.js +44 -0
- package/components/input-number-range/input-number-range.d.ts +79 -24
- package/components/input-number-range/input-number-range.js +109 -4
- package/components/{long-text/style/index.d.ts → input-number-range/input-number-range.style.d.ts} +1 -1
- package/components/input-number-range/{style/index.js → input-number-range.style.js} +1 -1
- package/components/long-text/index.d.ts +63 -17
- package/components/long-text/index.js +2 -2
- package/components/long-text/long-text.api.d.ts +23 -0
- package/components/long-text/long-text.api.js +20 -0
- package/components/long-text/long-text.d.ts +38 -14
- package/components/long-text/long-text.js +56 -6
- package/components/{scroll-view/style/index.d.ts → long-text/long-text.style.d.ts} +1 -1
- package/components/long-text/{style/index.js → long-text.style.js} +2 -2
- package/components/media-card/index.d.ts +3 -3
- package/components/media-card/media-card.api.d.ts +2 -2
- package/components/media-card/media-card.d.ts +2 -2
- package/components/media-card/media-card.style.js +2 -1
- package/components/panel/panel.api.d.ts +2 -5
- package/components/remote-select/index.d.ts +6 -6
- package/components/remote-select/remote-select.api.d.ts +1 -1
- package/components/remote-select/remote-select.d.ts +2 -2
- package/components/remote-select/remote-select.js +1 -1
- package/components/scroll-view/index.d.ts +5 -5
- package/components/scroll-view/scroll-view.style.d.ts +4 -0
- package/components/scroll-view/{style/index.js → scroll-view.style.js} +1 -1
- package/components/scroll-view/scroll-view.vue.d.ts +1 -1
- package/components/scroll-view/scroll-view.vue.js +1 -1
- package/components/stack-dialog/index.d.ts +609 -4
- package/components/stack-dialog/index.js +2 -2
- package/components/stack-dialog/stack-dialog.api.d.ts +200 -0
- package/components/stack-dialog/stack-dialog.api.js +65 -0
- package/components/stack-dialog/stack-dialog.d.ts +204 -30
- package/components/stack-dialog/stack-dialog.js +67 -59
- package/components/svga-card/index.d.ts +3 -3
- package/components/svga-card/svga-card.api.d.ts +1 -1
- package/components/svga-card/svga-card.d.ts +2 -2
- package/components/table/index.d.ts +22 -4
- package/components/table/index.js +1 -1
- package/components/table/table-column/table-column.d.ts +3 -3
- package/components/table/table-column-editor/table-column-editor.api.d.ts +17 -0
- package/components/table/table-column-editor/table-column-editor.api.js +15 -0
- package/components/table/table-column-editor/table-column-editor.d.ts +26 -11
- package/components/table/table-column-editor/table-column-editor.js +154 -4
- package/components/table/table-export/item.d.ts +15 -0
- package/components/table/table-export/item.js +37 -0
- package/components/table/table-export/list.d.ts +15 -0
- package/components/table/table-export/list.js +27 -0
- package/components/table/table-export/table-export.api.d.ts +208 -0
- package/components/table/table-export/table-export.api.js +32 -0
- package/components/table/table-export/table-export.d.ts +262 -35
- package/components/table/table-export/table-export.js +238 -26
- package/components/table/table-export/{style/index.js → table-export.style.js} +1 -1
- package/components/table/table-footer/index.d.ts +30 -6
- package/components/table/table-footer/index.js +25 -5
- package/components/table/table-footer/utils.d.ts +1 -1
- package/components/table/table-footer/utils.js +6 -2
- package/components/table/table-query/table-query.api.d.ts +172 -0
- package/components/table/table-query/table-query.api.js +31 -0
- package/components/table/table-query/table-query.d.ts +207 -44
- package/components/table/table-query/table-query.js +84 -24
- package/components/table/table-stats/table-stats.api.d.ts +17 -0
- package/components/table/table-stats/table-stats.api.js +12 -0
- package/components/table/table-stats/table-stats.d.ts +23 -14
- package/components/table/table-stats/table-stats.js +37 -5
- package/components/table/table.d.ts +8 -2
- package/components/table/table.js +7 -1
- package/components/table/table.vue.d.ts +14 -2
- package/components/table/table.vue.js +15 -12
- package/components/theme/getGlobalStyleHook.js +2 -22
- package/components/transition-group/index.d.ts +3 -3
- package/components/transition-group/transition-group.d.ts +1 -1
- package/components/upload/upload.js +1 -1
- package/components/video-card/index.d.ts +3 -3
- package/components/video-card/video-card.api.d.ts +1 -1
- package/components/video-card/video-card.d.ts +2 -2
- package/config/root-config-provider.js +1 -1
- package/hooks/useColorScheme.d.ts +2 -2
- package/hooks/useColorScheme.js +1 -1
- package/index.js +7 -2
- package/layout/layout-header/style/index.js +1 -1
- package/package.json +4 -5
- package/router/index.d.ts +1 -0
- package/router/index.js +4 -3
- package/types/helper.d.ts +8 -0
- package/utils/index.js +1 -0
- package/utils/warning.d.ts +2 -0
- package/utils/warning.js +2 -0
- package/components/form-dialog/form-dialog.vue.js +0 -63
- package/components/form-drawer/form-drawer.vue.d.ts +0 -482
- package/components/form-drawer/form-drawer.vue.js +0 -64
- package/components/form-group/form-group.vue.d.ts +0 -19
- package/components/form-group/form-group.vue.js +0 -139
- package/components/input-number-range/input-number-range.vue.d.ts +0 -18
- package/components/input-number-range/input-number-range.vue.js +0 -166
- package/components/long-text/long-text.vue.d.ts +0 -14
- package/components/long-text/long-text.vue.js +0 -94
- package/components/stack-dialog/stack-dialog.vue.js +0 -75
- package/components/table/table-column-editor/table-column-editor.vue.d.ts +0 -22
- package/components/table/table-column-editor/table-column-editor.vue.js +0 -188
- package/components/table/table-export/item.vue.d.ts +0 -7
- package/components/table/table-export/item.vue.js +0 -41
- package/components/table/table-export/list.vue.d.ts +0 -7
- package/components/table/table-export/list.vue.js +0 -32
- package/components/table/table-export/style/index.d.ts +0 -4
- package/components/table/table-export/table-export.vue.d.ts +0 -428
- package/components/table/table-export/table-export.vue.js +0 -250
- package/components/table/table-query/table-query.vue.d.ts +0 -349
- package/components/table/table-query/table-query.vue.js +0 -92
- package/components/table/table-stats/table-stats.vue.d.ts +0 -6
- package/components/table/table-stats/table-stats.vue.js +0 -52
- /package/components/scroll-view/{scroll-view.d.ts → scroll-view.api.d.ts} +0 -0
- /package/components/scroll-view/{scroll-view.js → scroll-view.api.js} +0 -0
- /package/components/{form-group/style/index.d.ts → table/table-export/table-export.style.d.ts} +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type InputNumberRangeProps, type InputNumberRangeSlots } from './input-number-range';
|
|
2
|
-
type __VLS_Slots = InputNumberRangeSlots;
|
|
3
|
-
declare const __VLS_component: import("vue").DefineComponent<InputNumberRangeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
-
change: (value: number[] | undefined) => any;
|
|
5
|
-
"update:modelValue": (value: number[] | undefined) => any;
|
|
6
|
-
}, string, import("vue").PublicProps, Readonly<InputNumberRangeProps> & Readonly<{
|
|
7
|
-
onChange?: ((value: number[] | undefined) => any) | undefined;
|
|
8
|
-
"onUpdate:modelValue"?: ((value: number[] | undefined) => any) | undefined;
|
|
9
|
-
}>, {
|
|
10
|
-
validateEvent: boolean;
|
|
11
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
|
-
export default _default;
|
|
14
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
-
new (): {
|
|
16
|
-
$slots: S;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { defineComponent, mergeDefaults, ref, watch, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createVNode } from 'vue';
|
|
2
|
-
import { defaultInputNumberRangeProps } from './input-number-range.js';
|
|
3
|
-
import stdin_default$1 from './style/index.js';
|
|
4
|
-
import { useFormItem, CHANGE_EVENT, ElInputNumber } from 'element-plus';
|
|
5
|
-
import { debugWarn } from 'element-plus/es/utils/error.mjs';
|
|
6
|
-
import { isNullish } from '../../utils/is.js';
|
|
7
|
-
import { useComponentConfig } from '../config-provider/config-provider.api.js';
|
|
8
|
-
|
|
9
|
-
var stdin_default = /* @__PURE__ */defineComponent({
|
|
10
|
-
...{
|
|
11
|
-
name: "CoInputNumberRange"
|
|
12
|
-
},
|
|
13
|
-
__name: "input-number-range",
|
|
14
|
-
props: /* @__PURE__ */mergeDefaults({
|
|
15
|
-
modelValue: {
|
|
16
|
-
type: Array,
|
|
17
|
-
required: false
|
|
18
|
-
},
|
|
19
|
-
min: {
|
|
20
|
-
type: Number,
|
|
21
|
-
required: false
|
|
22
|
-
},
|
|
23
|
-
max: {
|
|
24
|
-
type: Number,
|
|
25
|
-
required: false
|
|
26
|
-
},
|
|
27
|
-
step: {
|
|
28
|
-
type: Number,
|
|
29
|
-
required: false
|
|
30
|
-
},
|
|
31
|
-
stepStrictly: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
required: false
|
|
34
|
-
},
|
|
35
|
-
precision: {
|
|
36
|
-
type: Number,
|
|
37
|
-
required: false
|
|
38
|
-
},
|
|
39
|
-
startPlaceholder: {
|
|
40
|
-
type: String,
|
|
41
|
-
required: false
|
|
42
|
-
},
|
|
43
|
-
endPlaceholder: {
|
|
44
|
-
type: String,
|
|
45
|
-
required: false
|
|
46
|
-
},
|
|
47
|
-
readonly: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
required: false
|
|
50
|
-
},
|
|
51
|
-
disabled: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
required: false
|
|
54
|
-
},
|
|
55
|
-
validateEvent: {
|
|
56
|
-
type: Boolean,
|
|
57
|
-
required: false
|
|
58
|
-
}
|
|
59
|
-
}, defaultInputNumberRangeProps),
|
|
60
|
-
emits: ["update:modelValue", "change"],
|
|
61
|
-
setup(__props, {
|
|
62
|
-
expose: __expose,
|
|
63
|
-
emit: __emit
|
|
64
|
-
}) {
|
|
65
|
-
const props = __props;
|
|
66
|
-
const emit = __emit;
|
|
67
|
-
const {
|
|
68
|
-
prefixCls
|
|
69
|
-
} = useComponentConfig("input-number-range", props);
|
|
70
|
-
const {
|
|
71
|
-
hashId
|
|
72
|
-
} = stdin_default$1(prefixCls);
|
|
73
|
-
const {
|
|
74
|
-
formItem
|
|
75
|
-
} = useFormItem();
|
|
76
|
-
const start = ref(null);
|
|
77
|
-
const end = ref(null);
|
|
78
|
-
const innerValue = ref(props.modelValue);
|
|
79
|
-
watch([start, end], () => {
|
|
80
|
-
const startNil = isNullish(start.value);
|
|
81
|
-
const endNil = isNullish(end.value);
|
|
82
|
-
if (startNil && endNil || !startNil && !endNil) {
|
|
83
|
-
const value = startNil && endNil ? void 0 : [start.value, end.value];
|
|
84
|
-
if (value !== innerValue.value) {
|
|
85
|
-
innerValue.value = value;
|
|
86
|
-
emit("update:modelValue", value);
|
|
87
|
-
emit("change", value);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
watch(() => props.modelValue, () => {
|
|
92
|
-
if (props.validateEvent) {
|
|
93
|
-
formItem?.validate?.(CHANGE_EVENT).catch(err => debugWarn(err));
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
watch(() => props.modelValue, newValue => {
|
|
97
|
-
if (innerValue.value !== newValue) {
|
|
98
|
-
innerValue.value = newValue;
|
|
99
|
-
if (!newValue) {
|
|
100
|
-
start.value = null;
|
|
101
|
-
end.value = null;
|
|
102
|
-
} else {
|
|
103
|
-
let [startValue, endValue] = newValue.map(item => {
|
|
104
|
-
item = +item;
|
|
105
|
-
return Number.isNaN(item) ? null : item;
|
|
106
|
-
});
|
|
107
|
-
start.value = startValue;
|
|
108
|
-
end.value = endValue;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
const isFocused = ref(false);
|
|
113
|
-
const onFocusIn = () => {
|
|
114
|
-
isFocused.value = true;
|
|
115
|
-
};
|
|
116
|
-
const onFocusOut = () => {
|
|
117
|
-
isFocused.value = false;
|
|
118
|
-
};
|
|
119
|
-
__expose();
|
|
120
|
-
return (_ctx, _cache) => {
|
|
121
|
-
return openBlock(), createElementBlock("div", {
|
|
122
|
-
class: normalizeClass([unref(hashId), unref(prefixCls), {
|
|
123
|
-
"is-focus": isFocused.value
|
|
124
|
-
}, "el-input__wrapper"]),
|
|
125
|
-
onFocusin: onFocusIn,
|
|
126
|
-
onFocusout: onFocusOut
|
|
127
|
-
}, [createElementVNode("div", {
|
|
128
|
-
class: normalizeClass(`${unref(prefixCls)}-start`)
|
|
129
|
-
}, [createVNode(unref(ElInputNumber), {
|
|
130
|
-
modelValue: start.value,
|
|
131
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => start.value = $event),
|
|
132
|
-
min: _ctx.min,
|
|
133
|
-
max: _ctx.max,
|
|
134
|
-
step: _ctx.step,
|
|
135
|
-
"step-strictly": _ctx.stepStrictly,
|
|
136
|
-
precision: _ctx.precision,
|
|
137
|
-
controls: false,
|
|
138
|
-
readonly: _ctx.readonly,
|
|
139
|
-
disabled: _ctx.disabled,
|
|
140
|
-
placeholder: _ctx.startPlaceholder
|
|
141
|
-
}, null, 8, ["modelValue", "min", "max", "step", "step-strictly", "precision", "readonly", "disabled", "placeholder"])], 2
|
|
142
|
-
/* CLASS */), createElementVNode("div", {
|
|
143
|
-
class: normalizeClass(`${unref(prefixCls)}-separator`)
|
|
144
|
-
}, "-", 2
|
|
145
|
-
/* CLASS */), createElementVNode("div", {
|
|
146
|
-
class: normalizeClass(`${unref(prefixCls)}-end`)
|
|
147
|
-
}, [createVNode(unref(ElInputNumber), {
|
|
148
|
-
modelValue: end.value,
|
|
149
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => end.value = $event),
|
|
150
|
-
min: _ctx.min,
|
|
151
|
-
max: _ctx.max,
|
|
152
|
-
step: _ctx.step,
|
|
153
|
-
"step-strictly": _ctx.stepStrictly,
|
|
154
|
-
precision: _ctx.precision,
|
|
155
|
-
controls: false,
|
|
156
|
-
readonly: _ctx.readonly,
|
|
157
|
-
disabled: _ctx.disabled,
|
|
158
|
-
placeholder: _ctx.endPlaceholder
|
|
159
|
-
}, null, 8, ["modelValue", "min", "max", "step", "step-strictly", "precision", "readonly", "disabled", "placeholder"])], 2
|
|
160
|
-
/* CLASS */)], 34
|
|
161
|
-
/* CLASS, NEED_HYDRATION */);
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
export { stdin_default as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type LongTextProps, type LongTextSlots } from './long-text';
|
|
2
|
-
type __VLS_Slots = LongTextSlots;
|
|
3
|
-
declare const __VLS_component: import("vue").DefineComponent<LongTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LongTextProps> & Readonly<{}>, {
|
|
4
|
-
maxHeight: number | string;
|
|
5
|
-
maxWidth: number | string;
|
|
6
|
-
rows: number | string;
|
|
7
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
9
|
-
export default _default;
|
|
10
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
-
new (): {
|
|
12
|
-
$slots: S;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { defineComponent, mergeDefaults, computed, resolveComponent, createBlock, openBlock, withCtx, createElementVNode, normalizeStyle, normalizeClass, unref, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createVNode } from 'vue';
|
|
2
|
-
import { defaultLongTextProps } from './long-text.js';
|
|
3
|
-
import stdin_default$2 from '../copy/index.js';
|
|
4
|
-
import stdin_default$1 from './style/index.js';
|
|
5
|
-
import { addPxUnit } from '../../utils/css.js';
|
|
6
|
-
import { useComponentConfig } from '../config-provider/config-provider.api.js';
|
|
7
|
-
|
|
8
|
-
var stdin_default = /* @__PURE__ */defineComponent({
|
|
9
|
-
...{
|
|
10
|
-
name: "CoLongText"
|
|
11
|
-
},
|
|
12
|
-
__name: "long-text",
|
|
13
|
-
props: /* @__PURE__ */mergeDefaults({
|
|
14
|
-
text: {
|
|
15
|
-
type: String,
|
|
16
|
-
required: false
|
|
17
|
-
},
|
|
18
|
-
rows: {
|
|
19
|
-
type: [Number, String],
|
|
20
|
-
required: false
|
|
21
|
-
},
|
|
22
|
-
maxWidth: {
|
|
23
|
-
type: [Number, String],
|
|
24
|
-
required: false
|
|
25
|
-
},
|
|
26
|
-
maxHeight: {
|
|
27
|
-
type: [Number, String],
|
|
28
|
-
required: false
|
|
29
|
-
}
|
|
30
|
-
}, defaultLongTextProps),
|
|
31
|
-
setup(__props) {
|
|
32
|
-
const props = __props;
|
|
33
|
-
const {
|
|
34
|
-
prefixCls
|
|
35
|
-
} = useComponentConfig("long-text");
|
|
36
|
-
const {
|
|
37
|
-
hashId
|
|
38
|
-
} = stdin_default$1(prefixCls);
|
|
39
|
-
const textStyle = computed(() => {
|
|
40
|
-
return {
|
|
41
|
-
"-webkit-line-clamp": props.rows
|
|
42
|
-
};
|
|
43
|
-
});
|
|
44
|
-
return (_ctx, _cache) => {
|
|
45
|
-
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
46
|
-
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
47
|
-
return openBlock(), createBlock(_component_el_tooltip, {
|
|
48
|
-
placement: "top",
|
|
49
|
-
"show-after": 200
|
|
50
|
-
}, {
|
|
51
|
-
content: withCtx(() => [createElementVNode("div", {
|
|
52
|
-
class: normalizeClass([unref(hashId), `${unref(prefixCls)}-tooltip`])
|
|
53
|
-
}, [createVNode(_component_el_scrollbar, {
|
|
54
|
-
class: normalizeClass(`${unref(prefixCls)}-scrollbar`),
|
|
55
|
-
"max-height": _ctx.maxHeight,
|
|
56
|
-
style: normalizeStyle({
|
|
57
|
-
maxWidth: unref(addPxUnit)(_ctx.maxWidth)
|
|
58
|
-
}),
|
|
59
|
-
always: ""
|
|
60
|
-
}, {
|
|
61
|
-
default: withCtx(() => [_ctx.text ? (openBlock(), createElementBlock(Fragment, {
|
|
62
|
-
key: 0
|
|
63
|
-
}, [createTextVNode(toDisplayString(_ctx.text), 1
|
|
64
|
-
/* TEXT */)], 64
|
|
65
|
-
/* STABLE_FRAGMENT */)) : renderSlot(_ctx.$slots, "default", {
|
|
66
|
-
key: 1
|
|
67
|
-
})]),
|
|
68
|
-
_: 3
|
|
69
|
-
/* FORWARDED */
|
|
70
|
-
}, 8, ["class", "max-height", "style"]), createVNode(unref(stdin_default$2), {
|
|
71
|
-
text: _ctx.text,
|
|
72
|
-
color: "inherit",
|
|
73
|
-
class: normalizeClass(`${unref(prefixCls)}-copy`)
|
|
74
|
-
}, null, 8, ["text", "class"])], 2
|
|
75
|
-
/* CLASS */)]),
|
|
76
|
-
default: withCtx(() => [createElementVNode("div", {
|
|
77
|
-
class: normalizeClass([unref(hashId), unref(prefixCls)]),
|
|
78
|
-
style: normalizeStyle(textStyle.value)
|
|
79
|
-
}, [_ctx.text ? (openBlock(), createElementBlock(Fragment, {
|
|
80
|
-
key: 0
|
|
81
|
-
}, [createTextVNode(toDisplayString(_ctx.text), 1
|
|
82
|
-
/* TEXT */)], 64
|
|
83
|
-
/* STABLE_FRAGMENT */)) : renderSlot(_ctx.$slots, "default", {
|
|
84
|
-
key: 1
|
|
85
|
-
})], 6
|
|
86
|
-
/* CLASS, STYLE */)]),
|
|
87
|
-
_: 3
|
|
88
|
-
/* FORWARDED */
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
export { stdin_default as default };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { defineComponent, useSlots, ref, createBlock, openBlock, resolveDynamicComponent, unref, createVNode, mergeProps } from 'vue';
|
|
2
|
-
import { stackDialogProps, useStackDialog } from './stack-dialog.js';
|
|
3
|
-
import stdin_default$1 from './stack-dialog.style.js';
|
|
4
|
-
import { ElDialog } from 'element-plus';
|
|
5
|
-
import classNames from 'classnames';
|
|
6
|
-
import { elFormDialogExposeKeys } from '../form-dialog/form-dialog.js';
|
|
7
|
-
import { useComponentConfig } from '../config-provider/config-provider.api.js';
|
|
8
|
-
import { createMergedExpose, defineTemplate } from '../../utils/vue.js';
|
|
9
|
-
|
|
10
|
-
var stdin_default = /* @__PURE__ */defineComponent({
|
|
11
|
-
...{
|
|
12
|
-
name: "CoStackDialog"
|
|
13
|
-
},
|
|
14
|
-
__name: "stack-dialog",
|
|
15
|
-
props: stackDialogProps,
|
|
16
|
-
setup(__props, {
|
|
17
|
-
expose: __expose,
|
|
18
|
-
emit: __emit
|
|
19
|
-
}) {
|
|
20
|
-
const props = __props;
|
|
21
|
-
const slots = useSlots();
|
|
22
|
-
const emit = __emit;
|
|
23
|
-
const {
|
|
24
|
-
prefixCls
|
|
25
|
-
} = useComponentConfig("stack-dialog", props);
|
|
26
|
-
const {
|
|
27
|
-
hashId
|
|
28
|
-
} = stdin_default$1(prefixCls);
|
|
29
|
-
const elPopupRef = ref();
|
|
30
|
-
const expose = createMergedExpose(elFormDialogExposeKeys, () => elPopupRef.value);
|
|
31
|
-
__expose(expose);
|
|
32
|
-
const {
|
|
33
|
-
onShow,
|
|
34
|
-
onHide,
|
|
35
|
-
info
|
|
36
|
-
} = useStackDialog();
|
|
37
|
-
const template = defineTemplate(() => {
|
|
38
|
-
return createVNode(ElDialog, mergeProps({
|
|
39
|
-
"ref": elPopupRef
|
|
40
|
-
}, props, {
|
|
41
|
-
"class": [hashId.value, prefixCls.value],
|
|
42
|
-
"headerClass": classNames(props.headerClass, `${prefixCls.value}-header`),
|
|
43
|
-
"bodyClass": classNames(props.bodyClass, `${prefixCls.value}-body`),
|
|
44
|
-
"footerClass": classNames(props.footerClass, `${prefixCls.value}-footer`),
|
|
45
|
-
"onUpdate:modelValue": value => emit("update:modelValue", value),
|
|
46
|
-
"style": {
|
|
47
|
-
maxWidth: props.fullscreen ? null : "calc(100vw - 32px)",
|
|
48
|
-
...info
|
|
49
|
-
},
|
|
50
|
-
"append-to-body": true,
|
|
51
|
-
"onOpen": () => {
|
|
52
|
-
onShow();
|
|
53
|
-
emit("open");
|
|
54
|
-
},
|
|
55
|
-
"onOpened": () => {
|
|
56
|
-
onShow();
|
|
57
|
-
emit("opened");
|
|
58
|
-
},
|
|
59
|
-
"onClose": () => {
|
|
60
|
-
onHide();
|
|
61
|
-
emit("close");
|
|
62
|
-
},
|
|
63
|
-
"onClosed": () => {
|
|
64
|
-
onHide();
|
|
65
|
-
emit("closed");
|
|
66
|
-
}
|
|
67
|
-
}), slots);
|
|
68
|
-
});
|
|
69
|
-
return (_ctx, _cache) => {
|
|
70
|
-
return openBlock(), createBlock(resolveDynamicComponent(unref(template)));
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
export { stdin_default as default };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type TableColumnEditorProps } from './table-column-editor';
|
|
2
|
-
import { type TableColumnProps } from '../table-column/table-column.api';
|
|
3
|
-
declare var __VLS_49: {};
|
|
4
|
-
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof __VLS_49) => any;
|
|
6
|
-
};
|
|
7
|
-
declare const __VLS_component: import("vue").DefineComponent<TableColumnEditorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
-
reset: () => any;
|
|
9
|
-
"update:modelValue": (value: TableColumnProps[]) => any;
|
|
10
|
-
}, string, import("vue").PublicProps, Readonly<TableColumnEditorProps> & Readonly<{
|
|
11
|
-
onReset?: (() => any) | undefined;
|
|
12
|
-
"onUpdate:modelValue"?: ((value: TableColumnProps[]) => any) | undefined;
|
|
13
|
-
}>, {
|
|
14
|
-
modelValue: TableColumnProps[];
|
|
15
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
-
export default _default;
|
|
18
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
-
new (): {
|
|
20
|
-
$slots: S;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { defineComponent, mergeDefaults, useTemplateRef, ref, resolveComponent, createBlock, openBlock, mergeProps, withCtx, createElementVNode, normalizeClass, unref, createVNode, createTextVNode, toDisplayString, renderSlot, shallowReactive, nextTick } from 'vue';
|
|
2
|
-
import { defaultTableColumnEditorProps } from './table-column-editor.js';
|
|
3
|
-
import stdin_default$2 from './list.vue.js';
|
|
4
|
-
import stdin_default$1 from './table-column-editor.style.js';
|
|
5
|
-
import { ElButton } from 'element-plus';
|
|
6
|
-
import { useComponentConfig } from '../../config-provider/config-provider.api.js';
|
|
7
|
-
import { useLocale } from '../../../hooks/useLocale.js';
|
|
8
|
-
import { useTreeCheck } from '../../../hooks/useTreeCheck.js';
|
|
9
|
-
import { mapTree, walkTree } from '../../../utils/tree.js';
|
|
10
|
-
|
|
11
|
-
const _hoisted_1 = {
|
|
12
|
-
style: {
|
|
13
|
-
"margin-inline-start": "auto"
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
var stdin_default = /* @__PURE__ */defineComponent({
|
|
17
|
-
...{
|
|
18
|
-
name: "CoTableColumnEditor"
|
|
19
|
-
},
|
|
20
|
-
__name: "table-column-editor",
|
|
21
|
-
props: /* @__PURE__ */mergeDefaults({
|
|
22
|
-
modelValue: {
|
|
23
|
-
type: Array,
|
|
24
|
-
required: false
|
|
25
|
-
},
|
|
26
|
-
virtualRef: {
|
|
27
|
-
type: null,
|
|
28
|
-
required: false
|
|
29
|
-
}
|
|
30
|
-
}, defaultTableColumnEditorProps),
|
|
31
|
-
emits: ["update:modelValue", "reset"],
|
|
32
|
-
setup(__props, {
|
|
33
|
-
emit: __emit
|
|
34
|
-
}) {
|
|
35
|
-
const props = __props;
|
|
36
|
-
const emit = __emit;
|
|
37
|
-
const {
|
|
38
|
-
prefixCls
|
|
39
|
-
} = useComponentConfig("table-column-editor");
|
|
40
|
-
const {
|
|
41
|
-
t
|
|
42
|
-
} = useLocale();
|
|
43
|
-
const {
|
|
44
|
-
hashId
|
|
45
|
-
} = stdin_default$1(prefixCls);
|
|
46
|
-
const wrapperRef = useTemplateRef("wrapper");
|
|
47
|
-
const visible = ref(false);
|
|
48
|
-
const maxHeight = ref("");
|
|
49
|
-
const {
|
|
50
|
-
tree,
|
|
51
|
-
checkAllValue,
|
|
52
|
-
checkAllIndeterminate,
|
|
53
|
-
onCheckAllChange,
|
|
54
|
-
initialize,
|
|
55
|
-
setCheckedByNode
|
|
56
|
-
} = useTreeCheck({
|
|
57
|
-
childrenKey: "columns",
|
|
58
|
-
initialChecked: true
|
|
59
|
-
});
|
|
60
|
-
const setUncheckedIfHiden = () => {
|
|
61
|
-
walkTree(tree.value, "children", node => {
|
|
62
|
-
const hidden = !!node.data.hidden;
|
|
63
|
-
if (hidden) {
|
|
64
|
-
setCheckedByNode(node, false);
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
const onBeforeEnter = () => {
|
|
69
|
-
initialize(mapTree(props.modelValue, node => {
|
|
70
|
-
return shallowReactive({
|
|
71
|
-
...node
|
|
72
|
-
});
|
|
73
|
-
}, {
|
|
74
|
-
childrenKey: "columns"
|
|
75
|
-
}));
|
|
76
|
-
setUncheckedIfHiden();
|
|
77
|
-
nextTick(() => {
|
|
78
|
-
const el = wrapperRef.value;
|
|
79
|
-
if (el) {
|
|
80
|
-
const top = el.getBoundingClientRect().top;
|
|
81
|
-
maxHeight.value = `calc(100vh - ${top}px - 68px - 10px)`;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
};
|
|
85
|
-
const getUpdatedColumns = () => {
|
|
86
|
-
return mapTree(tree.value, node => {
|
|
87
|
-
return {
|
|
88
|
-
...node.data,
|
|
89
|
-
hidden: node.checkedStatus === "unchecked"
|
|
90
|
-
};
|
|
91
|
-
}, {
|
|
92
|
-
childrenKey: "children",
|
|
93
|
-
newChildrenKey: "columns"
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
const confirm = () => {
|
|
97
|
-
emit("update:modelValue", getUpdatedColumns());
|
|
98
|
-
visible.value = false;
|
|
99
|
-
};
|
|
100
|
-
const cancel = () => {
|
|
101
|
-
visible.value = false;
|
|
102
|
-
};
|
|
103
|
-
const reset = () => {
|
|
104
|
-
emit("reset");
|
|
105
|
-
visible.value = false;
|
|
106
|
-
};
|
|
107
|
-
return (_ctx, _cache) => {
|
|
108
|
-
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
109
|
-
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
110
|
-
const _component_el_popover = resolveComponent("el-popover");
|
|
111
|
-
return openBlock(), createBlock(_component_el_popover, mergeProps(_ctx.$props, {
|
|
112
|
-
visible: visible.value,
|
|
113
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = $event => visible.value = $event),
|
|
114
|
-
"virtual-triggering": "",
|
|
115
|
-
placement: "bottom",
|
|
116
|
-
width: 240,
|
|
117
|
-
trigger: "click",
|
|
118
|
-
"popper-style": "--el-popover-padding: 0; --el-checkbox-height: auto",
|
|
119
|
-
onBeforeEnter
|
|
120
|
-
}), {
|
|
121
|
-
reference: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
122
|
-
default: withCtx(() => [createElementVNode("div", {
|
|
123
|
-
ref: "wrapper",
|
|
124
|
-
class: normalizeClass([unref(hashId), unref(prefixCls)])
|
|
125
|
-
}, [createElementVNode("div", {
|
|
126
|
-
class: normalizeClass(`${unref(prefixCls)}-header`)
|
|
127
|
-
}, [createVNode(_component_el_checkbox, {
|
|
128
|
-
"model-value": unref(checkAllValue),
|
|
129
|
-
indeterminate: unref(checkAllIndeterminate),
|
|
130
|
-
onChange: unref(onCheckAllChange)
|
|
131
|
-
}, {
|
|
132
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(t)("co.common.checkAll")), 1
|
|
133
|
-
/* TEXT */)]),
|
|
134
|
-
_: 1
|
|
135
|
-
/* STABLE */
|
|
136
|
-
}, 8, ["model-value", "indeterminate", "onChange"])], 2
|
|
137
|
-
/* CLASS */), createVNode(_component_el_scrollbar, {
|
|
138
|
-
"max-height": maxHeight.value
|
|
139
|
-
}, {
|
|
140
|
-
default: withCtx(() => [createElementVNode("div", {
|
|
141
|
-
class: normalizeClass(`${unref(prefixCls)}-body`)
|
|
142
|
-
}, [createVNode(stdin_default$2, {
|
|
143
|
-
"node-list": unref(tree)
|
|
144
|
-
}, null, 8, ["node-list"])], 2
|
|
145
|
-
/* CLASS */)]),
|
|
146
|
-
_: 1
|
|
147
|
-
/* STABLE */
|
|
148
|
-
}, 8, ["max-height"]), createElementVNode("div", {
|
|
149
|
-
class: normalizeClass(`${unref(prefixCls)}-footer`)
|
|
150
|
-
}, [createVNode(unref(ElButton), {
|
|
151
|
-
size: "small",
|
|
152
|
-
link: "",
|
|
153
|
-
onClick: reset
|
|
154
|
-
}, {
|
|
155
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(t)("co.table.restoreDefault")), 1
|
|
156
|
-
/* TEXT */)]),
|
|
157
|
-
_: 1
|
|
158
|
-
/* STABLE */
|
|
159
|
-
}), createElementVNode("div", _hoisted_1, [createVNode(unref(ElButton), {
|
|
160
|
-
size: "small",
|
|
161
|
-
link: "",
|
|
162
|
-
onClick: cancel
|
|
163
|
-
}, {
|
|
164
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(t)("co.common.cancel")), 1
|
|
165
|
-
/* TEXT */)]),
|
|
166
|
-
_: 1
|
|
167
|
-
/* STABLE */
|
|
168
|
-
}), createVNode(unref(ElButton), {
|
|
169
|
-
size: "small",
|
|
170
|
-
link: "",
|
|
171
|
-
type: "primary",
|
|
172
|
-
onClick: confirm
|
|
173
|
-
}, {
|
|
174
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(t)("co.common.confirm")), 1
|
|
175
|
-
/* TEXT */)]),
|
|
176
|
-
_: 1
|
|
177
|
-
/* STABLE */
|
|
178
|
-
})])], 2
|
|
179
|
-
/* CLASS */)], 2
|
|
180
|
-
/* CLASS */)]),
|
|
181
|
-
_: 3
|
|
182
|
-
/* FORWARDED */
|
|
183
|
-
}, 16, ["visible"]);
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
export { stdin_default as default };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type TableColumnProps } from '../table-column/table-column.api';
|
|
2
|
-
import { type CheckableNode } from '../../../hooks';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
node: CheckableNode<TableColumnProps>;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
export default _default;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, createElementBlock, openBlock, createElementVNode, createBlock, createCommentVNode, normalizeClass, unref, createVNode } from 'vue';
|
|
2
|
-
import stdin_default$1 from './list.vue.js';
|
|
3
|
-
import { useTreeCheckInject } from '../../../hooks/useTreeCheck.js';
|
|
4
|
-
import { useComponentConfig } from '../../config-provider/config-provider.api.js';
|
|
5
|
-
|
|
6
|
-
var stdin_default = /* @__PURE__ */defineComponent({
|
|
7
|
-
__name: "item",
|
|
8
|
-
props: {
|
|
9
|
-
node: {
|
|
10
|
-
type: Object,
|
|
11
|
-
required: true
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
setup(__props) {
|
|
15
|
-
const props = __props;
|
|
16
|
-
const column = computed(() => props.node.data);
|
|
17
|
-
const {
|
|
18
|
-
onCheckChange
|
|
19
|
-
} = useTreeCheckInject();
|
|
20
|
-
const {
|
|
21
|
-
prefixCls
|
|
22
|
-
} = useComponentConfig("table-export");
|
|
23
|
-
return (_ctx, _cache) => {
|
|
24
|
-
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
25
|
-
return openBlock(), createElementBlock("div", null, [createElementVNode("div", {
|
|
26
|
-
class: normalizeClass(`${unref(prefixCls)}-list-item`)
|
|
27
|
-
}, [createVNode(_component_el_checkbox, {
|
|
28
|
-
label: column.value.label,
|
|
29
|
-
"model-value": _ctx.node.checkedStatus === "checked",
|
|
30
|
-
indeterminate: _ctx.node.checkedStatus === "indeterminate",
|
|
31
|
-
onChange: _cache[0] || (_cache[0] = $event => unref(onCheckChange)($event, _ctx.node))
|
|
32
|
-
}, null, 8, ["label", "model-value", "indeterminate"])], 2
|
|
33
|
-
/* CLASS */), _ctx.node.children && _ctx.node.children.length ? (openBlock(), createBlock(stdin_default$1, {
|
|
34
|
-
key: 0,
|
|
35
|
-
"node-list": _ctx.node.children
|
|
36
|
-
}, null, 8, ["node-list"])) : createCommentVNode("v-if", true)]);
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
export { stdin_default as default };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type TableColumnProps } from '../table-column/table-column.api';
|
|
2
|
-
import { type CheckableNode } from '../../../hooks';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
nodeList: CheckableNode<TableColumnProps>[] | undefined;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createBlock } from 'vue';
|
|
2
|
-
import stdin_default$1 from './item.vue.js';
|
|
3
|
-
import { useComponentConfig } from '../../config-provider/config-provider.api.js';
|
|
4
|
-
|
|
5
|
-
var stdin_default = /* @__PURE__ */defineComponent({
|
|
6
|
-
__name: "list",
|
|
7
|
-
props: {
|
|
8
|
-
nodeList: {
|
|
9
|
-
type: null,
|
|
10
|
-
required: true
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
setup(__props) {
|
|
14
|
-
const {
|
|
15
|
-
prefixCls
|
|
16
|
-
} = useComponentConfig("table-export");
|
|
17
|
-
return (_ctx, _cache) => {
|
|
18
|
-
return openBlock(), createElementBlock("div", {
|
|
19
|
-
class: normalizeClass(`${unref(prefixCls)}-list`)
|
|
20
|
-
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.nodeList, (node, i) => {
|
|
21
|
-
return openBlock(), createBlock(stdin_default$1, {
|
|
22
|
-
node,
|
|
23
|
-
key: i
|
|
24
|
-
}, null, 8, ["node"]);
|
|
25
|
-
}), 128
|
|
26
|
-
/* KEYED_FRAGMENT */))], 2
|
|
27
|
-
/* CLASS */);
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export { stdin_default as default };
|