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
|
@@ -22,7 +22,7 @@ export declare const audioCardProps: {
|
|
|
22
22
|
type: StringConstructor;
|
|
23
23
|
};
|
|
24
24
|
type: {
|
|
25
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
25
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
26
26
|
};
|
|
27
27
|
title: {
|
|
28
28
|
type: StringConstructor;
|
|
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
21
|
type: StringConstructor;
|
|
22
22
|
};
|
|
23
23
|
type: {
|
|
24
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
24
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
25
25
|
};
|
|
26
26
|
title: {
|
|
27
27
|
type: StringConstructor;
|
|
@@ -55,7 +55,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
55
55
|
type: StringConstructor;
|
|
56
56
|
};
|
|
57
57
|
type: {
|
|
58
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
58
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
59
59
|
};
|
|
60
60
|
title: {
|
|
61
61
|
type: StringConstructor;
|
|
@@ -23,7 +23,7 @@ declare const _AudioCard: {
|
|
|
23
23
|
type: StringConstructor;
|
|
24
24
|
};
|
|
25
25
|
type: {
|
|
26
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
26
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
27
27
|
};
|
|
28
28
|
title: {
|
|
29
29
|
type: StringConstructor;
|
|
@@ -72,7 +72,7 @@ declare const _AudioCard: {
|
|
|
72
72
|
type: StringConstructor;
|
|
73
73
|
};
|
|
74
74
|
type: {
|
|
75
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
75
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
76
76
|
};
|
|
77
77
|
title: {
|
|
78
78
|
type: StringConstructor;
|
|
@@ -115,7 +115,7 @@ declare const _AudioCard: {
|
|
|
115
115
|
type: StringConstructor;
|
|
116
116
|
};
|
|
117
117
|
type: {
|
|
118
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
118
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
119
119
|
};
|
|
120
120
|
title: {
|
|
121
121
|
type: StringConstructor;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed, unref, provide, watch, onUnmounted,
|
|
1
|
+
import { defineComponent, computed, unref, provide, watch, onUnmounted, createVNode } from 'vue';
|
|
2
2
|
import useMergeTheme from './useMergeTheme.js';
|
|
3
3
|
import { configProviderProps, useConfig, useConfigProvide } from './config-provider.api.js';
|
|
4
|
+
import { useToken } from '../theme/util/useToken.js';
|
|
4
5
|
import { ThemeManager, useThemeProvide } from '../theme/theme-context.js';
|
|
5
6
|
import stdin_default$2 from './override-element-plus.js';
|
|
6
7
|
import stdin_default$1 from '../../locale/lang/en.js';
|
|
@@ -38,13 +39,19 @@ var stdin_default = defineComponent({
|
|
|
38
39
|
themeManager.destroy();
|
|
39
40
|
});
|
|
40
41
|
useThemeProvide(themeManager);
|
|
42
|
+
stdin_default$2(themeManager);
|
|
41
43
|
const {
|
|
42
44
|
hashId
|
|
43
|
-
} =
|
|
44
|
-
|
|
45
|
+
} = useToken(themeManager);
|
|
46
|
+
watch(hashId, (newHashId, oldHashId) => {
|
|
45
47
|
if (!parentContext.theme) {
|
|
46
|
-
|
|
48
|
+
if (oldHashId) {
|
|
49
|
+
document.documentElement.classList.remove(oldHashId);
|
|
50
|
+
}
|
|
51
|
+
document.documentElement.classList.add(newHashId);
|
|
47
52
|
}
|
|
53
|
+
}, {
|
|
54
|
+
immediate: true
|
|
48
55
|
});
|
|
49
56
|
return () => {
|
|
50
57
|
return createVNode("div", {
|
|
@@ -24,8 +24,13 @@ function getRGBVar(color) {
|
|
|
24
24
|
}
|
|
25
25
|
var stdin_default = getOverrideStyleHook("OverrideElementPlus", (token) => {
|
|
26
26
|
const { hashId } = token;
|
|
27
|
+
const primaryColorPalettes = generateColorPalettes("primary", token);
|
|
28
|
+
const successColorPalettes = generateColorPalettes("success", token);
|
|
29
|
+
const warningColorPalettes = generateColorPalettes("warning", token);
|
|
30
|
+
const dangerColorPalettes = generateColorPalettes("error", token, "danger");
|
|
31
|
+
const errorColorPalettes = generateColorPalettes("error", token);
|
|
27
32
|
return {
|
|
28
|
-
[`.${hashId}`]: {
|
|
33
|
+
[`.${hashId}, .dark.${hashId}`]: {
|
|
29
34
|
"--el-color-white": token.colorWhite,
|
|
30
35
|
"--el-color-black": token.colorBlack,
|
|
31
36
|
"--el-color-primary-rgb": getRGBVar(new TinyColor(token.colorPrimary)),
|
|
@@ -64,11 +69,11 @@ var stdin_default = getOverrideStyleHook("OverrideElementPlus", (token) => {
|
|
|
64
69
|
"--el-component-size-large": token.controlHeightLG,
|
|
65
70
|
"--el-component-size": token.controlHeight,
|
|
66
71
|
"--el-component-size-small": token.controlHeightSM,
|
|
67
|
-
...
|
|
68
|
-
...
|
|
69
|
-
...
|
|
70
|
-
...
|
|
71
|
-
...
|
|
72
|
+
...primaryColorPalettes,
|
|
73
|
+
...successColorPalettes,
|
|
74
|
+
...warningColorPalettes,
|
|
75
|
+
...dangerColorPalettes,
|
|
76
|
+
...errorColorPalettes,
|
|
72
77
|
// ...generateColorPalettes('info', token),
|
|
73
78
|
"--el-bg-color": token.colorBgContainer,
|
|
74
79
|
"--el-bg-color-page": token.colorBgLayout,
|
|
@@ -106,7 +111,14 @@ var stdin_default = getOverrideStyleHook("OverrideElementPlus", (token) => {
|
|
|
106
111
|
"--el-border-style": token.lineType,
|
|
107
112
|
"--el-border-color-hover": token.colorTextDisabled,
|
|
108
113
|
"--el-border": `${token.lineWidth} ${token.lineType} ${token.colorBorder}`,
|
|
109
|
-
"--el-svg-monochrome-grey": token.colorBorder
|
|
114
|
+
"--el-svg-monochrome-grey": token.colorBorder,
|
|
115
|
+
"--el-menu-active-color": token.colorPrimary,
|
|
116
|
+
"--el-menu-text-color": token.colorTextBase,
|
|
117
|
+
"--el-menu-hover-text-color": token.colorPrimary,
|
|
118
|
+
// '--el-menu-bg-color': var(--el-fill-color-blank),
|
|
119
|
+
"--el-menu-hover-bg-color": "var(--el-color-primary-light-9)",
|
|
120
|
+
"--el-menu-item-hover-fill": "var(--el-color-primary-light-9)",
|
|
121
|
+
"--el-menu-border-color": token.colorBorder
|
|
110
122
|
},
|
|
111
123
|
".el-button": {
|
|
112
124
|
"--el-button-font-weight": "normal"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ButtonProps } from 'element-plus';
|
|
2
|
+
import { type SlotsType, type ExtractPropTypes, PropType } from 'vue';
|
|
2
3
|
export declare const copyProps: {
|
|
3
4
|
text: {
|
|
4
5
|
type: StringConstructor;
|
|
@@ -6,6 +7,10 @@ export declare const copyProps: {
|
|
|
6
7
|
color: {
|
|
7
8
|
type: StringConstructor;
|
|
8
9
|
};
|
|
10
|
+
type: {
|
|
11
|
+
type: PropType<ButtonProps["type"]>;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
9
14
|
};
|
|
10
15
|
export type CopyProps = ExtractPropTypes<typeof copyProps>;
|
|
11
16
|
export interface CopySlots {
|
|
@@ -5,6 +5,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5
5
|
color: {
|
|
6
6
|
type: StringConstructor;
|
|
7
7
|
};
|
|
8
|
+
type: {
|
|
9
|
+
type: import("vue").PropType<import("element-plus").ButtonProps["type"]>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
8
12
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
13
|
text: {
|
|
10
14
|
type: StringConstructor;
|
|
@@ -12,5 +16,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
12
16
|
color: {
|
|
13
17
|
type: StringConstructor;
|
|
14
18
|
};
|
|
15
|
-
|
|
19
|
+
type: {
|
|
20
|
+
type: import("vue").PropType<import("element-plus").ButtonProps["type"]>;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
}>> & Readonly<{}>, {
|
|
24
|
+
type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
26
|
export default _default;
|
package/components/copy/copy.js
CHANGED
|
@@ -7,7 +7,13 @@ declare const _Copy: {
|
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type: {
|
|
11
|
+
type: import("vue").PropType<import("element-plus").ButtonProps["type"]>;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
15
|
+
type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
16
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
11
17
|
P: {};
|
|
12
18
|
B: {};
|
|
13
19
|
D: {};
|
|
@@ -21,7 +27,13 @@ declare const _Copy: {
|
|
|
21
27
|
color: {
|
|
22
28
|
type: StringConstructor;
|
|
23
29
|
};
|
|
24
|
-
|
|
30
|
+
type: {
|
|
31
|
+
type: import("vue").PropType<import("element-plus").ButtonProps["type"]>;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
35
|
+
type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
36
|
+
}>;
|
|
25
37
|
__isFragment?: never;
|
|
26
38
|
__isTeleport?: never;
|
|
27
39
|
__isSuspense?: never;
|
|
@@ -32,6 +44,12 @@ declare const _Copy: {
|
|
|
32
44
|
color: {
|
|
33
45
|
type: StringConstructor;
|
|
34
46
|
};
|
|
35
|
-
|
|
47
|
+
type: {
|
|
48
|
+
type: import("vue").PropType<import("element-plus").ButtonProps["type"]>;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
52
|
+
type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
53
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
36
54
|
export { _Copy as Copy };
|
|
37
55
|
export default _Copy;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent, useTemplateRef, shallowRef, provide, ref, watch, onMounted, createVNode } from 'vue';
|
|
2
2
|
import Quill from 'quill';
|
|
3
|
-
import { debugWarn } from 'element-plus/es/utils/error.mjs';
|
|
4
3
|
import { useFormItem, CHANGE_EVENT } from 'element-plus';
|
|
5
4
|
import { editorEmits, editorProps } from './editor.api.js';
|
|
6
5
|
import stdin_default$1, { useHljsStyle } from './editor.style.js';
|
|
@@ -13,6 +12,7 @@ import stdin_default$5 from './components/table-toolbar/table-toolbar.vue.js';
|
|
|
13
12
|
import { register } from './quill.js';
|
|
14
13
|
import { useUpload } from '../upload-context.js';
|
|
15
14
|
import { useComponentConfig } from '../config-provider/config-provider.api.js';
|
|
15
|
+
import { debugWarn } from 'element-plus/es/utils/error.mjs';
|
|
16
16
|
|
|
17
17
|
var stdin_default = defineComponent({
|
|
18
18
|
name: "CoEditor",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FieldComponentCommonProps } from '../common';
|
|
2
|
-
import { type
|
|
2
|
+
import { type InputNumberRangeEmits, type InputNumberRangeProps } from '../../../input-number-range';
|
|
3
3
|
export interface FieldNumberRangeProps extends FieldComponentCommonProps {
|
|
4
4
|
componentProps?: Partial<InputNumberRangeProps> & {
|
|
5
5
|
'onUpdate:modelValue'?: (value: number | undefined) => void;
|
|
@@ -8,9 +8,9 @@ export interface FieldNumberRangeProps extends FieldComponentCommonProps {
|
|
|
8
8
|
};
|
|
9
9
|
componentSlots?: Partial<FieldNumberRangeSlots>;
|
|
10
10
|
}
|
|
11
|
-
export interface FieldNumberRangeSlots
|
|
11
|
+
export interface FieldNumberRangeSlots {
|
|
12
12
|
}
|
|
13
13
|
export interface FieldNumberRangeEmits extends InputNumberRangeEmits {
|
|
14
14
|
}
|
|
15
|
-
export interface FieldNumberRangeExpose
|
|
15
|
+
export interface FieldNumberRangeExpose {
|
|
16
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, h, mergeProps } from 'vue';
|
|
2
|
-
import stdin_default$1 from '../../../input-number-range/input-number-range.
|
|
2
|
+
import stdin_default$1 from '../../../input-number-range/input-number-range.js';
|
|
3
3
|
import { useLocale } from '../../../../hooks/useLocale.js';
|
|
4
4
|
import { addNullablePlaceholder } from '../../../../utils/vue.js';
|
|
5
5
|
|
|
@@ -3,7 +3,7 @@ import { type FieldComponentCommonProps } from '../common';
|
|
|
3
3
|
import { Props } from '../../../../hooks';
|
|
4
4
|
export type FieldRadioGroupOption = Partial<RadioProps> | string | number;
|
|
5
5
|
export interface FieldRadioGroupProps extends FieldComponentCommonProps {
|
|
6
|
-
componentProps?: Partial<RadioGroupProps
|
|
6
|
+
componentProps?: Partial<Omit<RadioGroupProps, 'options'>> & {
|
|
7
7
|
'onUpdate:modelValue'?: (value?: string | number | boolean) => void;
|
|
8
8
|
onChange?: (value?: string | number | boolean) => void;
|
|
9
9
|
[key: PropertyKey]: any;
|
|
@@ -36,6 +36,7 @@ import stdin_default$3 from './components/week/week.vue.js';
|
|
|
36
36
|
import stdin_default$2 from './components/year/year.vue.js';
|
|
37
37
|
import stdin_default$1 from './components/year-range/year-range.vue.js';
|
|
38
38
|
import stdin_default from './components/years/years.vue.js';
|
|
39
|
+
export { fieldComponentCommonProps } from './components/common.js';
|
|
39
40
|
|
|
40
41
|
const mapFieldTypeComponent = {
|
|
41
42
|
autocomplete: stdin_default$B,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { withInstall } from '../utils.js';
|
|
2
2
|
import stdin_default$1 from './field.js';
|
|
3
3
|
export { fieldProps, mapFieldTypeComponent } from './field.api.js';
|
|
4
|
+
export { fieldComponentCommonProps } from './components/common.js';
|
|
4
5
|
|
|
5
6
|
const _Field = withInstall(stdin_default$1);
|
|
6
7
|
var stdin_default = _Field;
|
|
@@ -11,7 +11,7 @@ export declare const fileCardProps: {
|
|
|
11
11
|
type: StringConstructor;
|
|
12
12
|
};
|
|
13
13
|
type: {
|
|
14
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
14
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
15
15
|
};
|
|
16
16
|
title: {
|
|
17
17
|
type: StringConstructor;
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10
10
|
type: StringConstructor;
|
|
11
11
|
};
|
|
12
12
|
type: {
|
|
13
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
13
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
14
14
|
};
|
|
15
15
|
title: {
|
|
16
16
|
type: StringConstructor;
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
30
30
|
type: StringConstructor;
|
|
31
31
|
};
|
|
32
32
|
type: {
|
|
33
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
33
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
34
34
|
};
|
|
35
35
|
title: {
|
|
36
36
|
type: StringConstructor;
|
|
@@ -12,7 +12,7 @@ declare const _FileCard: {
|
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
};
|
|
14
14
|
type: {
|
|
15
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
15
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
16
16
|
};
|
|
17
17
|
title: {
|
|
18
18
|
type: StringConstructor;
|
|
@@ -41,7 +41,7 @@ declare const _FileCard: {
|
|
|
41
41
|
type: StringConstructor;
|
|
42
42
|
};
|
|
43
43
|
type: {
|
|
44
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
44
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
45
45
|
};
|
|
46
46
|
title: {
|
|
47
47
|
type: StringConstructor;
|
|
@@ -67,7 +67,7 @@ declare const _FileCard: {
|
|
|
67
67
|
type: StringConstructor;
|
|
68
68
|
};
|
|
69
69
|
type: {
|
|
70
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
70
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
71
71
|
};
|
|
72
72
|
title: {
|
|
73
73
|
type: StringConstructor;
|
|
@@ -126,8 +126,8 @@ export interface FormItemProps<T extends FieldType> extends Partial<ElFormItemPr
|
|
|
126
126
|
fieldType?: T;
|
|
127
127
|
fieldProps?: MapFieldTypeComponentProps[T]['componentProps'];
|
|
128
128
|
fieldSlots?: MapFieldTypeComponentProps[T]['componentSlots'];
|
|
129
|
-
modelValue?: NonNullable<MapFieldTypeComponentProps[T]['componentProps']>['modelValue'] | null;
|
|
130
129
|
fieldRef?: (el: any) => void;
|
|
130
|
+
modelValue?: NonNullable<MapFieldTypeComponentProps[T]['componentProps']>['modelValue'] | null;
|
|
131
131
|
width?: FormItemWidth;
|
|
132
132
|
placeholder?: string;
|
|
133
133
|
disabled?: boolean;
|
|
@@ -141,6 +141,7 @@ export declare const defaultFormItemProps: {
|
|
|
141
141
|
fieldRef: () => void;
|
|
142
142
|
showMessage: boolean;
|
|
143
143
|
inlineMessage: boolean;
|
|
144
|
+
required: undefined;
|
|
144
145
|
};
|
|
145
146
|
export declare const exlucdeFieldSlotNames: readonly ["error", "label", "default", "tooltip", "extra"];
|
|
146
147
|
type ExlucdeFieldSlotNames = (typeof exlucdeFieldSlotNames)[number];
|
|
@@ -56,7 +56,8 @@ const defaultFormItemProps = {
|
|
|
56
56
|
fieldRef: () => {
|
|
57
57
|
},
|
|
58
58
|
showMessage: true,
|
|
59
|
-
inlineMessage: false
|
|
59
|
+
inlineMessage: false,
|
|
60
|
+
required: void 0
|
|
60
61
|
};
|
|
61
62
|
const exlucdeFieldSlotNames = ["error", "label", "default", "tooltip", "extra"];
|
|
62
63
|
const formItemPropsKeys = Object.keys(formItemProps);
|
|
@@ -37,14 +37,14 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
37
37
|
type: null,
|
|
38
38
|
required: false
|
|
39
39
|
},
|
|
40
|
-
modelValue: {
|
|
41
|
-
type: null,
|
|
42
|
-
required: false
|
|
43
|
-
},
|
|
44
40
|
fieldRef: {
|
|
45
41
|
type: Function,
|
|
46
42
|
required: false
|
|
47
43
|
},
|
|
44
|
+
modelValue: {
|
|
45
|
+
type: null,
|
|
46
|
+
required: false
|
|
47
|
+
},
|
|
48
48
|
width: {
|
|
49
49
|
type: [Number, String, Object],
|
|
50
50
|
required: false
|
|
@@ -465,8 +465,8 @@ declare const _FormItem: (<T extends import("..").FieldType>(__VLS_props: NonNul
|
|
|
465
465
|
fieldType?: T | undefined;
|
|
466
466
|
fieldProps?: import("..").MapFieldTypeComponentProps[T]["componentProps"] | undefined;
|
|
467
467
|
fieldSlots?: import("..").MapFieldTypeComponentProps[T]["componentSlots"] | undefined;
|
|
468
|
-
modelValue?: NonNullable<import("..").MapFieldTypeComponentProps[T]["componentProps"]>["modelValue"] | null | undefined;
|
|
469
468
|
fieldRef?: ((el: any) => void) | undefined;
|
|
469
|
+
modelValue?: NonNullable<import("..").MapFieldTypeComponentProps[T]["componentProps"]>["modelValue"] | null | undefined;
|
|
470
470
|
width?: import("./form-item.api").FormItemWidth | undefined;
|
|
471
471
|
placeholder?: string | undefined;
|
|
472
472
|
disabled?: boolean | undefined;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { SlotsType } from 'vue';
|
|
1
2
|
import { type FormDialogButtonProps, type FormDialogSlots } from '../form-dialog';
|
|
3
|
+
import { UnwrapSlotsType } from '../../types/helper';
|
|
2
4
|
interface UseBubbleTemplateOptions {
|
|
3
5
|
props: {
|
|
4
6
|
modelValue?: boolean;
|
|
5
7
|
beforeClose?: (done: () => void) => void;
|
|
6
8
|
} & FormDialogButtonProps;
|
|
7
|
-
slots: FormDialogSlots
|
|
9
|
+
slots: UnwrapSlotsType<SlotsType<FormDialogSlots>>;
|
|
8
10
|
emit: {
|
|
9
11
|
(event: 'update:modelValue', visible: boolean): void;
|
|
10
12
|
(event: 'open'): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, provide, createVNode, Fragment, mergeProps,
|
|
1
|
+
import { ref, provide, nextTick, createVNode, Fragment, mergeProps, isVNode } from 'vue';
|
|
2
2
|
import { formBubbleContextSymbol } from './form.api.js';
|
|
3
3
|
import { ElButton } from 'element-plus';
|
|
4
4
|
import { useTwoWayBinding } from '../../hooks/useTwoWayBinding.js';
|