@sdata/web-vue 2.3.1 → 2.6.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.
- package/README.md +1 -1
- package/dist/sd.css +117 -191
- package/dist/sd.min.css +1 -1
- package/es/_components/transition/expand-transition.vue.d.ts +2 -2
- package/es/_hooks/use-responsive.d.ts +2 -2
- package/es/_hooks/use-theme-mode.d.ts +3 -0
- package/es/{calendar/hooks/use-calendar-theme.js → _hooks/use-theme-mode.js} +14 -10
- package/es/_utils/responsive-observe.d.ts +5 -4
- package/es/_utils/responsive-observe.js +2 -1
- package/es/alert/index.d.ts +3 -3
- package/es/anchor/index.d.ts +3 -3
- package/es/avatar/index.d.ts +20 -20
- package/es/border-beam/border-beam.js +5 -0
- package/es/border-beam/border-beam.vue.d.ts +52 -0
- package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +623 -0
- package/es/border-beam/index.d.ts +106 -0
- package/es/border-beam/index.js +10 -0
- package/es/border-beam/pulseDriver.d.ts +2 -0
- package/es/border-beam/pulseDriver.js +74 -0
- package/es/border-beam/style/css.js +2 -0
- package/es/border-beam/style/index.css +21 -0
- package/es/border-beam/style/index.d.ts +2 -0
- package/es/border-beam/style/index.js +2 -0
- package/es/border-beam/style/index.scss +12 -0
- package/es/border-beam/style/token.scss +12 -0
- package/es/border-beam/styles.d.ts +42 -0
- package/es/border-beam/styles.js +3545 -0
- package/es/border-beam/types.d.ts +27 -0
- package/es/button/index.d.ts +24 -24
- package/es/calendar/components/cell.vue.d.ts +26 -26
- package/es/calendar/components/index.vue.d.ts +1 -1
- package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/calendar/index.d.ts +5 -5
- package/es/carousel/index.d.ts +3 -3
- package/es/cascader/cascader.vue.d.ts +8 -8
- package/es/checkbox/checkbox.d.ts +3 -3
- package/es/collapse/collapse-item.d.ts +5 -5
- package/es/collapse/index.d.ts +3 -3
- package/es/components.d.ts +1 -0
- package/es/config-provider/index.d.ts +21 -21
- package/es/date-picker/index.d.ts +14 -14
- package/es/date-picker/panels/date/index.vue.d.ts +2 -2
- package/es/date-picker/panels/month/index.vue.d.ts +2 -2
- package/es/date-picker/panels/quarter/index.vue.d.ts +2 -2
- package/es/date-picker/panels/week/index.vue.d.ts +2 -2
- package/es/date-picker/panels/year/index.vue.d.ts +2 -2
- package/es/date-picker/picker-panel.vue.d.ts +12 -12
- package/es/date-picker/picker.vue.d.ts +14 -14
- package/es/date-picker/range-picker.vue.d.ts +15 -15
- package/es/descriptions/index.d.ts +24 -24
- package/es/drawer/drawer.vue.d.ts +5 -5
- package/es/drawer/index.d.ts +15 -15
- package/es/dropdown/dropdown-button.vue.d.ts +4 -4
- package/es/dropdown/index.d.ts +15 -15
- package/es/ellipsis/ellipsis.vue.d.ts +7 -7
- package/es/ellipsis/performant-ellipsis.vue.d.ts +5 -5
- package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/form/index.d.ts +3 -3
- package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +10 -10
- package/es/icon/icon-menu/icon-menu.js +5 -0
- package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-menu/index.js +9 -0
- package/es/image/preview.vue.d.ts +2 -2
- package/es/index.css +117 -191
- package/es/index.d.ts +3 -1
- package/es/index.js +3 -2
- package/es/index.scss +1 -0
- package/es/input/index.d.ts +7 -7
- package/es/input/input-password.vue.d.ts +3 -3
- package/es/json-form/index.d.ts +9 -9
- package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/json-form/json-form.vue.d.ts +3 -3
- package/es/layout/content.vue.d.ts +2 -2
- package/es/layout/content.vue_vue_type_script_setup_true_lang.js +8 -3
- package/es/layout/context.d.ts +12 -9
- package/es/layout/context.js +11 -3
- package/es/layout/footer.vue.d.ts +2 -2
- package/es/layout/footer.vue_vue_type_script_setup_true_lang.js +8 -3
- package/es/layout/header.vue.d.ts +3 -30
- package/es/layout/header.vue_vue_type_script_setup_true_lang.js +9 -339
- package/es/layout/hooks/use-has-sider.d.ts +2 -0
- package/es/layout/hooks/use-has-sider.js +38 -0
- package/es/layout/index.d.ts +91 -380
- package/es/layout/index.js +2 -2
- package/es/layout/interface.d.ts +12 -46
- package/es/layout/layout.vue.d.ts +4 -2
- package/es/layout/layout.vue_vue_type_script_setup_true_lang.js +38 -14
- package/es/layout/sider.vue.d.ts +47 -183
- package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +191 -370
- package/es/layout/style/index.css +112 -190
- package/es/layout/style/index.scss +127 -239
- package/es/layout/style/token.scss +46 -26
- package/es/link/index.d.ts +6 -6
- package/es/list/index.d.ts +18 -18
- package/es/menu/base-menu.vue.d.ts +1 -1
- package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +14 -14
- package/es/menu/item.d.ts +1 -1
- package/es/menu/menu.d.ts +12 -12
- package/es/menu/menu.js +3 -3
- package/es/modal/index.d.ts +15 -15
- package/es/modal/modal.vue.d.ts +4 -4
- package/es/popconfirm/index.d.ts +12 -12
- package/es/popover/index.d.ts +12 -12
- package/es/progress/index.d.ts +6 -6
- package/es/qr-code/index.d.ts +3 -3
- package/es/radio/radio.d.ts +3 -3
- package/es/resize-box/resize-box.vue.d.ts +4 -4
- package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +7 -7
- package/es/result/index.d.ts +3 -3
- package/es/scrollbar/style/index.css +1 -1
- package/es/scrollbar/style/index.scss +4 -1
- package/es/sd-vue.js +3 -1
- package/es/select/select.d.ts +17 -17
- package/es/slider/index.d.ts +3 -3
- package/es/split/split.vue.d.ts +4 -4
- package/es/split/split.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/steps/index.d.ts +6 -6
- package/es/tabs/index.d.ts +6 -6
- package/es/tag/index.d.ts +6 -6
- package/es/tag/tag.vue.d.ts +2 -2
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/theme-provider/index.d.ts +9 -9
- package/es/time-picker/index.d.ts +6 -6
- package/es/time-picker/time-picker.vue.d.ts +2 -2
- package/es/timeline/index.d.ts +3 -3
- package/es/timeline/timeline.d.ts +1 -1
- package/es/tooltip/index.d.ts +3 -3
- package/es/tour/index.d.ts +3 -3
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/tree/expand-transition.vue.d.ts +2 -2
- package/es/tree/node-switcher.vue.d.ts +1 -1
- package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +23 -23
- package/es/tree-select/tree-select.vue.d.ts +9 -9
- package/json/vetur-attributes.json +23 -156
- package/json/vetur-tags.json +12 -44
- package/json/web-types.json +38 -304
- package/package.json +5 -5
- package/es/calendar/hooks/use-calendar-theme.d.ts +0 -4
- package/es/layout/utils.d.ts +0 -1
- package/es/layout/utils.js +0 -11
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type BorderBeamSize = 'sm' | 'md' | 'line' | 'pulse-outside' | 'pulse-inner';
|
|
2
|
+
export type BorderBeamTheme = 'dark' | 'light' | 'auto';
|
|
3
|
+
export type BorderBeamColorVariant = 'colorful' | 'mono' | 'ocean' | 'sunset';
|
|
4
|
+
export type BorderBeamFlowPreset = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center';
|
|
5
|
+
export interface BorderBeamFlowPoint {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
}
|
|
9
|
+
export type BorderBeamFlowCoordinate = BorderBeamFlowPreset | BorderBeamFlowPoint;
|
|
10
|
+
export interface BorderBeamExposed {
|
|
11
|
+
flowFrom: (coordinate?: BorderBeamFlowCoordinate) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface SizeConfig {
|
|
14
|
+
borderRadius: number;
|
|
15
|
+
borderWidth: number;
|
|
16
|
+
width?: number;
|
|
17
|
+
height?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface ThemeColors {
|
|
20
|
+
strokeOpacity: number;
|
|
21
|
+
innerOpacity: number;
|
|
22
|
+
bloomOpacity: number;
|
|
23
|
+
innerShadow: string;
|
|
24
|
+
saturation: number;
|
|
25
|
+
brightness?: number;
|
|
26
|
+
hairlineOpacity?: number;
|
|
27
|
+
}
|
package/es/button/index.d.ts
CHANGED
|
@@ -5,16 +5,16 @@ import _Button from './button.vue';
|
|
|
5
5
|
declare const Button: {
|
|
6
6
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
type: {
|
|
8
|
-
type: import("vue").PropType<import("./constants").ButtonTypes>;
|
|
8
|
+
type: import("vue").PropType<import("./constants.ts").ButtonTypes>;
|
|
9
9
|
};
|
|
10
10
|
shape: {
|
|
11
|
-
type: import("vue").PropType<import("../_utils/constant").BorderShape>;
|
|
11
|
+
type: import("vue").PropType<import("../_utils/constant.ts").BorderShape>;
|
|
12
12
|
};
|
|
13
13
|
status: {
|
|
14
|
-
type: import("vue").PropType<import("
|
|
14
|
+
type: import("vue").PropType<import("../index.ts").Status>;
|
|
15
15
|
};
|
|
16
16
|
size: {
|
|
17
|
-
type: import("vue").PropType<import("
|
|
17
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
18
18
|
};
|
|
19
19
|
long: {
|
|
20
20
|
type: BooleanConstructor;
|
|
@@ -60,16 +60,16 @@ declare const Button: {
|
|
|
60
60
|
Defaults: {};
|
|
61
61
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
62
62
|
type: {
|
|
63
|
-
type: import("vue").PropType<import("./constants").ButtonTypes>;
|
|
63
|
+
type: import("vue").PropType<import("./constants.ts").ButtonTypes>;
|
|
64
64
|
};
|
|
65
65
|
shape: {
|
|
66
|
-
type: import("vue").PropType<import("../_utils/constant").BorderShape>;
|
|
66
|
+
type: import("vue").PropType<import("../_utils/constant.ts").BorderShape>;
|
|
67
67
|
};
|
|
68
68
|
status: {
|
|
69
|
-
type: import("vue").PropType<import("
|
|
69
|
+
type: import("vue").PropType<import("../index.ts").Status>;
|
|
70
70
|
};
|
|
71
71
|
size: {
|
|
72
|
-
type: import("vue").PropType<import("
|
|
72
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
73
73
|
};
|
|
74
74
|
long: {
|
|
75
75
|
type: BooleanConstructor;
|
|
@@ -110,16 +110,16 @@ declare const Button: {
|
|
|
110
110
|
__isSuspense?: never;
|
|
111
111
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
112
112
|
type: {
|
|
113
|
-
type: import("vue").PropType<import("./constants").ButtonTypes>;
|
|
113
|
+
type: import("vue").PropType<import("./constants.ts").ButtonTypes>;
|
|
114
114
|
};
|
|
115
115
|
shape: {
|
|
116
|
-
type: import("vue").PropType<import("../_utils/constant").BorderShape>;
|
|
116
|
+
type: import("vue").PropType<import("../_utils/constant.ts").BorderShape>;
|
|
117
117
|
};
|
|
118
118
|
status: {
|
|
119
|
-
type: import("vue").PropType<import("
|
|
119
|
+
type: import("vue").PropType<import("../index.ts").Status>;
|
|
120
120
|
};
|
|
121
121
|
size: {
|
|
122
|
-
type: import("vue").PropType<import("
|
|
122
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
123
123
|
};
|
|
124
124
|
long: {
|
|
125
125
|
type: BooleanConstructor;
|
|
@@ -174,16 +174,16 @@ declare const Button: {
|
|
|
174
174
|
Group: {
|
|
175
175
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
176
176
|
type: {
|
|
177
|
-
type: import("vue").PropType<import("./constants").ButtonTypes>;
|
|
177
|
+
type: import("vue").PropType<import("./constants.ts").ButtonTypes>;
|
|
178
178
|
};
|
|
179
179
|
status: {
|
|
180
|
-
type: import("vue").PropType<import("
|
|
180
|
+
type: import("vue").PropType<import("../index.ts").Status>;
|
|
181
181
|
};
|
|
182
182
|
shape: {
|
|
183
|
-
type: import("vue").PropType<import("../_utils/constant").BorderShape>;
|
|
183
|
+
type: import("vue").PropType<import("../_utils/constant.ts").BorderShape>;
|
|
184
184
|
};
|
|
185
185
|
size: {
|
|
186
|
-
type: import("vue").PropType<import("
|
|
186
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
187
187
|
};
|
|
188
188
|
disabled: {
|
|
189
189
|
type: BooleanConstructor;
|
|
@@ -199,16 +199,16 @@ declare const Button: {
|
|
|
199
199
|
Defaults: {};
|
|
200
200
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
201
201
|
type: {
|
|
202
|
-
type: import("vue").PropType<import("./constants").ButtonTypes>;
|
|
202
|
+
type: import("vue").PropType<import("./constants.ts").ButtonTypes>;
|
|
203
203
|
};
|
|
204
204
|
status: {
|
|
205
|
-
type: import("vue").PropType<import("
|
|
205
|
+
type: import("vue").PropType<import("../index.ts").Status>;
|
|
206
206
|
};
|
|
207
207
|
shape: {
|
|
208
|
-
type: import("vue").PropType<import("../_utils/constant").BorderShape>;
|
|
208
|
+
type: import("vue").PropType<import("../_utils/constant.ts").BorderShape>;
|
|
209
209
|
};
|
|
210
210
|
size: {
|
|
211
|
-
type: import("vue").PropType<import("
|
|
211
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
212
212
|
};
|
|
213
213
|
disabled: {
|
|
214
214
|
type: BooleanConstructor;
|
|
@@ -221,16 +221,16 @@ declare const Button: {
|
|
|
221
221
|
__isSuspense?: never;
|
|
222
222
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
223
223
|
type: {
|
|
224
|
-
type: import("vue").PropType<import("./constants").ButtonTypes>;
|
|
224
|
+
type: import("vue").PropType<import("./constants.ts").ButtonTypes>;
|
|
225
225
|
};
|
|
226
226
|
status: {
|
|
227
|
-
type: import("vue").PropType<import("
|
|
227
|
+
type: import("vue").PropType<import("../index.ts").Status>;
|
|
228
228
|
};
|
|
229
229
|
shape: {
|
|
230
|
-
type: import("vue").PropType<import("../_utils/constant").BorderShape>;
|
|
230
|
+
type: import("vue").PropType<import("../_utils/constant.ts").BorderShape>;
|
|
231
231
|
};
|
|
232
232
|
size: {
|
|
233
|
-
type: import("vue").PropType<import("
|
|
233
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
234
234
|
};
|
|
235
235
|
disabled: {
|
|
236
236
|
type: BooleanConstructor;
|
|
@@ -70,15 +70,15 @@ declare var __VLS_1: {
|
|
|
70
70
|
view: Record<string, any>;
|
|
71
71
|
schedule: any;
|
|
72
72
|
events: any;
|
|
73
|
-
},
|
|
73
|
+
}, __VLS_30: {
|
|
74
74
|
event: Record<string, any>;
|
|
75
|
-
},
|
|
75
|
+
}, __VLS_34: `event.${any}`, __VLS_35: {
|
|
76
76
|
event: Record<string, any>;
|
|
77
|
-
},
|
|
77
|
+
}, __VLS_38: {
|
|
78
78
|
event: Record<string, any>;
|
|
79
|
-
},
|
|
79
|
+
}, __VLS_41: {
|
|
80
80
|
event: Record<string, any>;
|
|
81
|
-
},
|
|
81
|
+
}, __VLS_43: {
|
|
82
82
|
cell: {
|
|
83
83
|
goNarrower: () => any;
|
|
84
84
|
goBroader: () => any;
|
|
@@ -92,7 +92,7 @@ declare var __VLS_1: {
|
|
|
92
92
|
content: any;
|
|
93
93
|
};
|
|
94
94
|
view: Record<string, any>;
|
|
95
|
-
},
|
|
95
|
+
}, __VLS_45: {
|
|
96
96
|
cell: {
|
|
97
97
|
goNarrower: () => any;
|
|
98
98
|
goBroader: () => any;
|
|
@@ -106,7 +106,7 @@ declare var __VLS_1: {
|
|
|
106
106
|
content: any;
|
|
107
107
|
};
|
|
108
108
|
view: Record<string, any>;
|
|
109
|
-
},
|
|
109
|
+
}, __VLS_47: {
|
|
110
110
|
cell: {
|
|
111
111
|
goNarrower: () => any;
|
|
112
112
|
goBroader: () => any;
|
|
@@ -120,24 +120,24 @@ declare var __VLS_1: {
|
|
|
120
120
|
content: any;
|
|
121
121
|
};
|
|
122
122
|
view: Record<string, any>;
|
|
123
|
-
},
|
|
123
|
+
}, __VLS_66: {
|
|
124
124
|
event: Record<string, any>;
|
|
125
|
-
},
|
|
125
|
+
}, __VLS_70: `event.${any}`, __VLS_71: {
|
|
126
126
|
event: Record<string, any>;
|
|
127
|
-
},
|
|
127
|
+
}, __VLS_74: {
|
|
128
128
|
event: Record<string, any>;
|
|
129
|
-
},
|
|
129
|
+
}, __VLS_77: {
|
|
130
130
|
event: Record<string, any>;
|
|
131
|
-
},
|
|
131
|
+
}, __VLS_79: {
|
|
132
132
|
events: any;
|
|
133
|
-
},
|
|
133
|
+
}, __VLS_81: {
|
|
134
134
|
now: any;
|
|
135
135
|
timeFormatted: any;
|
|
136
136
|
};
|
|
137
137
|
type __VLS_Slots = {} & {
|
|
138
|
-
[K in NonNullable<typeof
|
|
138
|
+
[K in NonNullable<typeof __VLS_34>]?: (props: typeof __VLS_35) => any;
|
|
139
139
|
} & {
|
|
140
|
-
[K in NonNullable<typeof
|
|
140
|
+
[K in NonNullable<typeof __VLS_70>]?: (props: typeof __VLS_71) => any;
|
|
141
141
|
} & {
|
|
142
142
|
cell?: (props: typeof __VLS_1) => any;
|
|
143
143
|
} & {
|
|
@@ -151,27 +151,27 @@ type __VLS_Slots = {} & {
|
|
|
151
151
|
} & {
|
|
152
152
|
'cell-events'?: (props: typeof __VLS_11) => any;
|
|
153
153
|
} & {
|
|
154
|
-
'event.all-day'?: (props: typeof
|
|
154
|
+
'event.all-day'?: (props: typeof __VLS_30) => any;
|
|
155
155
|
} & {
|
|
156
|
-
event?: (props: typeof
|
|
156
|
+
event?: (props: typeof __VLS_38) => any;
|
|
157
157
|
} & {
|
|
158
|
-
'event-content'?: (props: typeof
|
|
158
|
+
'event-content'?: (props: typeof __VLS_41) => any;
|
|
159
159
|
} & {
|
|
160
|
-
'cell-date'?: (props: typeof
|
|
160
|
+
'cell-date'?: (props: typeof __VLS_43) => any;
|
|
161
161
|
} & {
|
|
162
|
-
'cell-content'?: (props: typeof
|
|
162
|
+
'cell-content'?: (props: typeof __VLS_45) => any;
|
|
163
163
|
} & {
|
|
164
|
-
'cell-events'?: (props: typeof
|
|
164
|
+
'cell-events'?: (props: typeof __VLS_47) => any;
|
|
165
165
|
} & {
|
|
166
|
-
'event.all-day'?: (props: typeof
|
|
166
|
+
'event.all-day'?: (props: typeof __VLS_66) => any;
|
|
167
167
|
} & {
|
|
168
|
-
event?: (props: typeof
|
|
168
|
+
event?: (props: typeof __VLS_74) => any;
|
|
169
169
|
} & {
|
|
170
|
-
'event-content'?: (props: typeof
|
|
170
|
+
'event-content'?: (props: typeof __VLS_77) => any;
|
|
171
171
|
} & {
|
|
172
|
-
'event-count'?: (props: typeof
|
|
172
|
+
'event-count'?: (props: typeof __VLS_79) => any;
|
|
173
173
|
} & {
|
|
174
|
-
'now-line'?: (props: typeof
|
|
174
|
+
'now-line'?: (props: typeof __VLS_81) => any;
|
|
175
175
|
};
|
|
176
176
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
177
177
|
start: {
|
|
@@ -570,6 +570,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
570
570
|
sm: boolean;
|
|
571
571
|
xs: boolean;
|
|
572
572
|
datePicker: boolean;
|
|
573
|
+
theme: string | boolean;
|
|
573
574
|
editableEvents: boolean | Record<string, any>;
|
|
574
575
|
timeFrom: number;
|
|
575
576
|
timeTo: number;
|
|
@@ -596,7 +597,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
596
597
|
multidayEvents: boolean;
|
|
597
598
|
snapToInterval: number;
|
|
598
599
|
startWeekOnSunday: boolean;
|
|
599
|
-
theme: string | boolean;
|
|
600
600
|
timeFormat: string;
|
|
601
601
|
titleBar: boolean;
|
|
602
602
|
todayButton: boolean;
|
|
@@ -2,10 +2,10 @@ import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/hel
|
|
|
2
2
|
import { getPrefixCls } from "../../_utils/global-config.js";
|
|
3
3
|
import { _asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/asyncToGenerator.js";
|
|
4
4
|
import Scrollbar from "../../scrollbar/index.js";
|
|
5
|
+
import { useThemeMode } from "../../_hooks/use-theme-mode.js";
|
|
5
6
|
import { calendarElInjectionKey, calendarInjectionKey } from "../context.js";
|
|
6
7
|
import { useCalendar } from "../core/index.js";
|
|
7
8
|
import { props } from "../core/props-definitions.js";
|
|
8
|
-
import { useCalendarTheme } from "../hooks/use-calendar-theme.js";
|
|
9
9
|
import body_default from "./body.js";
|
|
10
10
|
import header_default from "./header.js";
|
|
11
11
|
import headings_bar_default from "./headings-bar.js";
|
|
@@ -45,7 +45,8 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
45
45
|
prefixCls
|
|
46
46
|
});
|
|
47
47
|
const { config, view, dateUtils, touch: touchState } = calendar;
|
|
48
|
-
const
|
|
48
|
+
const themeMode = useThemeMode(calendarEl);
|
|
49
|
+
const isDark = computed(() => themeMode.value === "dark");
|
|
49
50
|
const syncCalendarPrefixedClasses = (rootEl) => {
|
|
50
51
|
if (!rootEl) return;
|
|
51
52
|
const matchCalendarPrefix = (cls) => {
|
package/es/calendar/index.d.ts
CHANGED
|
@@ -213,6 +213,7 @@ declare const Calendar: {
|
|
|
213
213
|
sm: boolean;
|
|
214
214
|
xs: boolean;
|
|
215
215
|
datePicker: boolean;
|
|
216
|
+
theme: string | boolean;
|
|
216
217
|
editableEvents: boolean | Record<string, any>;
|
|
217
218
|
timeFrom: number;
|
|
218
219
|
timeTo: number;
|
|
@@ -239,7 +240,6 @@ declare const Calendar: {
|
|
|
239
240
|
multidayEvents: boolean;
|
|
240
241
|
snapToInterval: number;
|
|
241
242
|
startWeekOnSunday: boolean;
|
|
242
|
-
theme: string | boolean;
|
|
243
243
|
timeFormat: string;
|
|
244
244
|
titleBar: boolean;
|
|
245
245
|
todayButton: boolean;
|
|
@@ -454,6 +454,7 @@ declare const Calendar: {
|
|
|
454
454
|
sm: boolean;
|
|
455
455
|
xs: boolean;
|
|
456
456
|
datePicker: boolean;
|
|
457
|
+
theme: string | boolean;
|
|
457
458
|
editableEvents: boolean | Record<string, any>;
|
|
458
459
|
timeFrom: number;
|
|
459
460
|
timeTo: number;
|
|
@@ -480,7 +481,6 @@ declare const Calendar: {
|
|
|
480
481
|
multidayEvents: boolean;
|
|
481
482
|
snapToInterval: number;
|
|
482
483
|
startWeekOnSunday: boolean;
|
|
483
|
-
theme: string | boolean;
|
|
484
484
|
timeFormat: string;
|
|
485
485
|
titleBar: boolean;
|
|
486
486
|
todayButton: boolean;
|
|
@@ -704,6 +704,7 @@ declare const Calendar: {
|
|
|
704
704
|
sm: boolean;
|
|
705
705
|
xs: boolean;
|
|
706
706
|
datePicker: boolean;
|
|
707
|
+
theme: string | boolean;
|
|
707
708
|
editableEvents: boolean | Record<string, any>;
|
|
708
709
|
timeFrom: number;
|
|
709
710
|
timeTo: number;
|
|
@@ -730,7 +731,6 @@ declare const Calendar: {
|
|
|
730
731
|
multidayEvents: boolean;
|
|
731
732
|
snapToInterval: number;
|
|
732
733
|
startWeekOnSunday: boolean;
|
|
733
|
-
theme: string | boolean;
|
|
734
734
|
timeFormat: string;
|
|
735
735
|
titleBar: boolean;
|
|
736
736
|
todayButton: boolean;
|
|
@@ -746,13 +746,13 @@ declare const Calendar: {
|
|
|
746
746
|
}) => any) | undefined;
|
|
747
747
|
} & {
|
|
748
748
|
diy?: (props: {
|
|
749
|
-
calendar: import("./context").CalendarState;
|
|
749
|
+
calendar: import("./context.ts").CalendarState;
|
|
750
750
|
}) => any;
|
|
751
751
|
} & {
|
|
752
752
|
header?: (props: {
|
|
753
753
|
view: Record<string, any>;
|
|
754
754
|
availableViews: any;
|
|
755
|
-
calendar: import("./context").CalendarState;
|
|
755
|
+
calendar: import("./context.ts").CalendarState;
|
|
756
756
|
}) => any;
|
|
757
757
|
} & {
|
|
758
758
|
'previous-button'?: (props: {}) => any;
|
package/es/carousel/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ declare const Carousel: {
|
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
31
|
direction: {
|
|
32
|
-
type: import("vue").PropType<import("
|
|
32
|
+
type: import("vue").PropType<import("../index.ts").Direction>;
|
|
33
33
|
default: string;
|
|
34
34
|
};
|
|
35
35
|
showArrow: {
|
|
@@ -107,7 +107,7 @@ declare const Carousel: {
|
|
|
107
107
|
default: string;
|
|
108
108
|
};
|
|
109
109
|
direction: {
|
|
110
|
-
type: import("vue").PropType<import("
|
|
110
|
+
type: import("vue").PropType<import("../index.ts").Direction>;
|
|
111
111
|
default: string;
|
|
112
112
|
};
|
|
113
113
|
showArrow: {
|
|
@@ -179,7 +179,7 @@ declare const Carousel: {
|
|
|
179
179
|
default: string;
|
|
180
180
|
};
|
|
181
181
|
direction: {
|
|
182
|
-
type: import("vue").PropType<import("
|
|
182
|
+
type: import("vue").PropType<import("../index.ts").Direction>;
|
|
183
183
|
default: string;
|
|
184
184
|
};
|
|
185
185
|
showArrow: {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { CascaderModelValue, CascaderOption } from './interface';
|
|
2
2
|
import type { CascaderProps } from './types';
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_19: any, __VLS_22: {}, __VLS_25: {}, __VLS_28: {}, __VLS_31: {}, __VLS_41: {}, __VLS_50: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
label?: (props: typeof
|
|
5
|
+
label?: (props: typeof __VLS_19) => any;
|
|
6
6
|
} & {
|
|
7
|
-
prefix?: (props: typeof
|
|
7
|
+
prefix?: (props: typeof __VLS_22) => any;
|
|
8
8
|
} & {
|
|
9
|
-
'arrow-icon'?: (props: typeof
|
|
9
|
+
'arrow-icon'?: (props: typeof __VLS_25) => any;
|
|
10
10
|
} & {
|
|
11
|
-
'loading-icon'?: (props: typeof
|
|
11
|
+
'loading-icon'?: (props: typeof __VLS_28) => any;
|
|
12
12
|
} & {
|
|
13
|
-
'search-icon'?: (props: typeof
|
|
13
|
+
'search-icon'?: (props: typeof __VLS_31) => any;
|
|
14
14
|
} & {
|
|
15
|
-
empty?: (props: typeof
|
|
15
|
+
empty?: (props: typeof __VLS_41) => any;
|
|
16
16
|
} & {
|
|
17
|
-
empty?: (props: typeof
|
|
17
|
+
empty?: (props: typeof __VLS_50) => any;
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_base: import("vue").DefineComponent<CascaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
20
|
search: (value: string) => any;
|
|
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
67
67
|
type: StringConstructor;
|
|
68
68
|
};
|
|
69
69
|
size: {
|
|
70
|
-
type: PropType<import("../index.
|
|
70
|
+
type: PropType<import("../index.ts").Size>;
|
|
71
71
|
default: string;
|
|
72
72
|
};
|
|
73
73
|
disabled: {
|
|
@@ -93,7 +93,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
93
93
|
type: StringConstructor;
|
|
94
94
|
};
|
|
95
95
|
size: {
|
|
96
|
-
type: PropType<import("../index.
|
|
96
|
+
type: PropType<import("../index.ts").Size>;
|
|
97
97
|
default: string;
|
|
98
98
|
};
|
|
99
99
|
disabled: {
|
|
@@ -114,7 +114,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
114
114
|
type: StringConstructor;
|
|
115
115
|
};
|
|
116
116
|
size: {
|
|
117
|
-
type: PropType<import("../index.
|
|
117
|
+
type: PropType<import("../index.ts").Size>;
|
|
118
118
|
default: string;
|
|
119
119
|
};
|
|
120
120
|
disabled: {
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
37
37
|
type: StringConstructor;
|
|
38
38
|
};
|
|
39
39
|
size: {
|
|
40
|
-
type: import("vue").PropType<import("../index.
|
|
40
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
41
41
|
default: string;
|
|
42
42
|
};
|
|
43
43
|
disabled: {
|
|
@@ -63,7 +63,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
63
63
|
type: StringConstructor;
|
|
64
64
|
};
|
|
65
65
|
size: {
|
|
66
|
-
type: import("vue").PropType<import("../index.
|
|
66
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
67
67
|
default: string;
|
|
68
68
|
};
|
|
69
69
|
disabled: {
|
|
@@ -84,7 +84,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
84
84
|
type: StringConstructor;
|
|
85
85
|
};
|
|
86
86
|
size: {
|
|
87
|
-
type: import("vue").PropType<import("../index.
|
|
87
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
88
88
|
default: string;
|
|
89
89
|
};
|
|
90
90
|
disabled: {
|
|
@@ -126,7 +126,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
126
126
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
127
127
|
click: (_ev: MouseEvent) => any;
|
|
128
128
|
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
129
|
-
install: (app: import("vue").App, options?: import("../_utils/types.
|
|
129
|
+
install: (app: import("vue").App, options?: import("../_utils/types.ts").SDIconOptions) => void;
|
|
130
130
|
};
|
|
131
131
|
IconCaretLeft: {
|
|
132
132
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../icon/icon-caret-left/icon-caret-left.vue").Props> & Readonly<{
|
|
@@ -151,7 +151,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
151
151
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
152
152
|
click: (_ev: MouseEvent) => any;
|
|
153
153
|
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
154
|
-
install: (app: import("vue").App, options?: import("../_utils/types.
|
|
154
|
+
install: (app: import("vue").App, options?: import("../_utils/types.ts").SDIconOptions) => void;
|
|
155
155
|
};
|
|
156
156
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
157
157
|
export default _default;
|
package/es/collapse/index.d.ts
CHANGED
|
@@ -184,7 +184,7 @@ declare const Collapse: {
|
|
|
184
184
|
type: StringConstructor;
|
|
185
185
|
};
|
|
186
186
|
size: {
|
|
187
|
-
type: import("vue").PropType<import("
|
|
187
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
188
188
|
default: string;
|
|
189
189
|
};
|
|
190
190
|
disabled: {
|
|
@@ -210,7 +210,7 @@ declare const Collapse: {
|
|
|
210
210
|
type: StringConstructor;
|
|
211
211
|
};
|
|
212
212
|
size: {
|
|
213
|
-
type: import("vue").PropType<import("
|
|
213
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
214
214
|
default: string;
|
|
215
215
|
};
|
|
216
216
|
disabled: {
|
|
@@ -231,7 +231,7 @@ declare const Collapse: {
|
|
|
231
231
|
type: StringConstructor;
|
|
232
232
|
};
|
|
233
233
|
size: {
|
|
234
|
-
type: import("vue").PropType<import("
|
|
234
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
235
235
|
default: string;
|
|
236
236
|
};
|
|
237
237
|
disabled: {
|
package/es/components.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ declare module 'vue' {
|
|
|
13
13
|
SdAvatar: SDVue['Avatar'];
|
|
14
14
|
SdAvatarGroup: SDVue['AvatarGroup'];
|
|
15
15
|
SdBackTop: SDVue['BackTop'];
|
|
16
|
+
SdBorderBeam: SDVue['BorderBeam'];
|
|
16
17
|
SdBadge: SDVue['Badge'];
|
|
17
18
|
SdBreadcrumb: SDVue['Breadcrumb'];
|
|
18
19
|
SdBreadcrumbItem: SDVue['BreadcrumbItem'];
|
|
@@ -8,10 +8,10 @@ declare const ConfigProvider: {
|
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
10
|
locale: {
|
|
11
|
-
type: import("vue").PropType<import("../locale/interface").SDLang>;
|
|
11
|
+
type: import("vue").PropType<import("../locale/interface.ts").SDLang>;
|
|
12
12
|
};
|
|
13
13
|
size: {
|
|
14
|
-
type: import("vue").PropType<import("
|
|
14
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
15
15
|
};
|
|
16
16
|
allowClear: {
|
|
17
17
|
type: BooleanConstructor;
|
|
@@ -26,7 +26,7 @@ declare const ConfigProvider: {
|
|
|
26
26
|
default: boolean;
|
|
27
27
|
};
|
|
28
28
|
virtualListProps: {
|
|
29
|
-
type: import("vue").PropType<import("../_components/virtual-list/interface").VirtualListProps>;
|
|
29
|
+
type: import("vue").PropType<import("../_components/virtual-list/interface.ts").VirtualListProps>;
|
|
30
30
|
};
|
|
31
31
|
global: {
|
|
32
32
|
type: BooleanConstructor;
|
|
@@ -49,16 +49,16 @@ declare const ConfigProvider: {
|
|
|
49
49
|
default: boolean;
|
|
50
50
|
};
|
|
51
51
|
datePicker: {
|
|
52
|
-
type: import("vue").PropType<import("./context").ConfigProviderDatePicker>;
|
|
52
|
+
type: import("vue").PropType<import("./context.ts").ConfigProviderDatePicker>;
|
|
53
53
|
};
|
|
54
54
|
modal: {
|
|
55
|
-
type: import("vue").PropType<import("./context").ConfigProviderModal>;
|
|
55
|
+
type: import("vue").PropType<import("./context.ts").ConfigProviderModal>;
|
|
56
56
|
};
|
|
57
57
|
drawer: {
|
|
58
|
-
type: import("vue").PropType<import("./context").ConfigProviderDrawer>;
|
|
58
|
+
type: import("vue").PropType<import("./context.ts").ConfigProviderDrawer>;
|
|
59
59
|
};
|
|
60
60
|
jsonForm: {
|
|
61
|
-
type: import("vue").PropType<import("./context").JsonFormProviderConfig>;
|
|
61
|
+
type: import("vue").PropType<import("./context.ts").JsonFormProviderConfig>;
|
|
62
62
|
};
|
|
63
63
|
theme: {
|
|
64
64
|
type: import("vue").PropType<import("./theme").SDThemeConfig>;
|
|
@@ -89,10 +89,10 @@ declare const ConfigProvider: {
|
|
|
89
89
|
default: string;
|
|
90
90
|
};
|
|
91
91
|
locale: {
|
|
92
|
-
type: import("vue").PropType<import("../locale/interface").SDLang>;
|
|
92
|
+
type: import("vue").PropType<import("../locale/interface.ts").SDLang>;
|
|
93
93
|
};
|
|
94
94
|
size: {
|
|
95
|
-
type: import("vue").PropType<import("
|
|
95
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
96
96
|
};
|
|
97
97
|
allowClear: {
|
|
98
98
|
type: BooleanConstructor;
|
|
@@ -107,7 +107,7 @@ declare const ConfigProvider: {
|
|
|
107
107
|
default: boolean;
|
|
108
108
|
};
|
|
109
109
|
virtualListProps: {
|
|
110
|
-
type: import("vue").PropType<import("../_components/virtual-list/interface").VirtualListProps>;
|
|
110
|
+
type: import("vue").PropType<import("../_components/virtual-list/interface.ts").VirtualListProps>;
|
|
111
111
|
};
|
|
112
112
|
global: {
|
|
113
113
|
type: BooleanConstructor;
|
|
@@ -130,16 +130,16 @@ declare const ConfigProvider: {
|
|
|
130
130
|
default: boolean;
|
|
131
131
|
};
|
|
132
132
|
datePicker: {
|
|
133
|
-
type: import("vue").PropType<import("./context").ConfigProviderDatePicker>;
|
|
133
|
+
type: import("vue").PropType<import("./context.ts").ConfigProviderDatePicker>;
|
|
134
134
|
};
|
|
135
135
|
modal: {
|
|
136
|
-
type: import("vue").PropType<import("./context").ConfigProviderModal>;
|
|
136
|
+
type: import("vue").PropType<import("./context.ts").ConfigProviderModal>;
|
|
137
137
|
};
|
|
138
138
|
drawer: {
|
|
139
|
-
type: import("vue").PropType<import("./context").ConfigProviderDrawer>;
|
|
139
|
+
type: import("vue").PropType<import("./context.ts").ConfigProviderDrawer>;
|
|
140
140
|
};
|
|
141
141
|
jsonForm: {
|
|
142
|
-
type: import("vue").PropType<import("./context").JsonFormProviderConfig>;
|
|
142
|
+
type: import("vue").PropType<import("./context.ts").JsonFormProviderConfig>;
|
|
143
143
|
};
|
|
144
144
|
theme: {
|
|
145
145
|
type: import("vue").PropType<import("./theme").SDThemeConfig>;
|
|
@@ -167,10 +167,10 @@ declare const ConfigProvider: {
|
|
|
167
167
|
default: string;
|
|
168
168
|
};
|
|
169
169
|
locale: {
|
|
170
|
-
type: import("vue").PropType<import("../locale/interface").SDLang>;
|
|
170
|
+
type: import("vue").PropType<import("../locale/interface.ts").SDLang>;
|
|
171
171
|
};
|
|
172
172
|
size: {
|
|
173
|
-
type: import("vue").PropType<import("
|
|
173
|
+
type: import("vue").PropType<import("../index.ts").Size>;
|
|
174
174
|
};
|
|
175
175
|
allowClear: {
|
|
176
176
|
type: BooleanConstructor;
|
|
@@ -185,7 +185,7 @@ declare const ConfigProvider: {
|
|
|
185
185
|
default: boolean;
|
|
186
186
|
};
|
|
187
187
|
virtualListProps: {
|
|
188
|
-
type: import("vue").PropType<import("../_components/virtual-list/interface").VirtualListProps>;
|
|
188
|
+
type: import("vue").PropType<import("../_components/virtual-list/interface.ts").VirtualListProps>;
|
|
189
189
|
};
|
|
190
190
|
global: {
|
|
191
191
|
type: BooleanConstructor;
|
|
@@ -208,16 +208,16 @@ declare const ConfigProvider: {
|
|
|
208
208
|
default: boolean;
|
|
209
209
|
};
|
|
210
210
|
datePicker: {
|
|
211
|
-
type: import("vue").PropType<import("./context").ConfigProviderDatePicker>;
|
|
211
|
+
type: import("vue").PropType<import("./context.ts").ConfigProviderDatePicker>;
|
|
212
212
|
};
|
|
213
213
|
modal: {
|
|
214
|
-
type: import("vue").PropType<import("./context").ConfigProviderModal>;
|
|
214
|
+
type: import("vue").PropType<import("./context.ts").ConfigProviderModal>;
|
|
215
215
|
};
|
|
216
216
|
drawer: {
|
|
217
|
-
type: import("vue").PropType<import("./context").ConfigProviderDrawer>;
|
|
217
|
+
type: import("vue").PropType<import("./context.ts").ConfigProviderDrawer>;
|
|
218
218
|
};
|
|
219
219
|
jsonForm: {
|
|
220
|
-
type: import("vue").PropType<import("./context").JsonFormProviderConfig>;
|
|
220
|
+
type: import("vue").PropType<import("./context.ts").JsonFormProviderConfig>;
|
|
221
221
|
};
|
|
222
222
|
theme: {
|
|
223
223
|
type: import("vue").PropType<import("./theme").SDThemeConfig>;
|