@sdata/web-vue 3.19.0 → 3.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/sd.css +11 -0
  2. package/dist/sd.min.css +1 -1
  3. package/es/basic-crud-table/basic-crud-table.vue_vue_type_script_setup_true_lang.js +6 -4
  4. package/es/basic-crud-table/types.d.ts +2 -0
  5. package/es/card/card.d.ts +22 -0
  6. package/es/card/card.js +11 -2
  7. package/es/card/index.d.ts +39 -0
  8. package/es/cascader/base-cascader-panel.d.ts +3 -0
  9. package/es/cascader/base-cascader-panel.js +2 -1
  10. package/es/cascader/cascader-search-panel.d.ts +3 -0
  11. package/es/cascader/cascader-search-panel.js +2 -1
  12. package/es/cascader/cascader.vue.d.ts +20 -8
  13. package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +42 -4
  14. package/es/cascader/index.d.ts +1 -1
  15. package/es/cascader/types.d.ts +13 -0
  16. package/es/color-picker/color-picker.js +13 -1
  17. package/es/color-picker/index.d.ts +1 -1
  18. package/es/color-picker/interface.d.ts +10 -0
  19. package/es/config-provider/config-provider.vue.d.ts +67 -0
  20. package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +67 -1
  21. package/es/config-provider/context.d.ts +12 -0
  22. package/es/config-provider/index.d.ts +99 -0
  23. package/es/date-picker/index.d.ts +12 -1
  24. package/es/date-picker/interface.d.ts +19 -0
  25. package/es/date-picker/picker.vue.d.ts +23 -13
  26. package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +23 -2
  27. package/es/date-picker/range-picker.vue.d.ts +25 -14
  28. package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +21 -2
  29. package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +1 -1
  30. package/es/index.css +11 -0
  31. package/es/index.d.ts +2 -2
  32. package/es/list/index.d.ts +9 -0
  33. package/es/list/list.d.ts +7 -0
  34. package/es/list/list.js +8 -2
  35. package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +1 -1
  36. package/es/qr-code/index.d.ts +18 -12
  37. package/es/qr-code/qr-code.vue.d.ts +5 -3
  38. package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +5 -2
  39. package/es/select/index.d.ts +10 -1
  40. package/es/select/interface.d.ts +10 -0
  41. package/es/select/select-dropdown.vue.d.ts +3 -0
  42. package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +2 -4
  43. package/es/select/select.d.ts +7 -0
  44. package/es/select/select.js +30 -2
  45. package/es/sender/index.d.ts +1 -1
  46. package/es/sender/sender.vue_vue_type_script_setup_true_lang.js +117 -93
  47. package/es/sender/style/index.css +11 -0
  48. package/es/sender/style/index.scss +13 -0
  49. package/es/sender/types.d.ts +60 -3
  50. package/es/sender/use-speech.d.ts +12 -2
  51. package/es/sender/use-speech.js +293 -75
  52. package/es/spin/index.d.ts +15 -0
  53. package/es/spin/spin.d.ts +9 -0
  54. package/es/spin/spin.js +72 -10
  55. package/es/table/index.d.ts +51 -6
  56. package/es/table/interface.d.ts +3 -0
  57. package/es/table/table.d.ts +22 -3
  58. package/es/table/table.js +7 -2
  59. package/es/time-picker/index.d.ts +12 -1
  60. package/es/time-picker/interface.d.ts +10 -0
  61. package/es/time-picker/time-picker.vue.d.ts +15 -4
  62. package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +22 -2
  63. package/es/timeline/index.d.ts +39 -0
  64. package/es/timeline/timeline.d.ts +22 -0
  65. package/es/timeline/timeline.js +11 -2
  66. package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +9 -5
  67. package/es/toolbar/types.d.ts +2 -0
  68. package/es/tree-select/index.d.ts +1 -1
  69. package/es/tree-select/interface.d.ts +10 -0
  70. package/es/tree-select/tree-select.vue.d.ts +17 -1
  71. package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +27 -2
  72. package/json/vetur-attributes.json +63 -3
  73. package/json/vetur-tags.json +20 -0
  74. package/json/web-types.json +163 -3
  75. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import type { PropType } from 'vue';
2
+ import type { SpinProps } from '../spin';
2
3
  import { VirtualListProps } from '../_components/virtual-list/interface';
3
4
  import { Size } from '../_utils/constant';
4
5
  import { SdLang } from '../locale/interface';
@@ -69,6 +70,39 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
69
70
  colorPicker: {
70
71
  type: PropType<ConfigProviderColorPicker>;
71
72
  };
73
+ spinProps: {
74
+ type: PropType<SpinProps>;
75
+ };
76
+ basicCrudTableSpinProps: {
77
+ type: PropType<SpinProps>;
78
+ };
79
+ cardSpinProps: {
80
+ type: PropType<SpinProps>;
81
+ };
82
+ cascaderSpinProps: {
83
+ type: PropType<SpinProps>;
84
+ };
85
+ listSpinProps: {
86
+ type: PropType<SpinProps>;
87
+ };
88
+ qrCodeSpinProps: {
89
+ type: PropType<SpinProps>;
90
+ };
91
+ selectSpinProps: {
92
+ type: PropType<SpinProps>;
93
+ };
94
+ tableSpinProps: {
95
+ type: PropType<SpinProps>;
96
+ };
97
+ timelineSpinProps: {
98
+ type: PropType<SpinProps>;
99
+ };
100
+ toolbarSpinProps: {
101
+ type: PropType<SpinProps>;
102
+ };
103
+ treeSelectSpinProps: {
104
+ type: PropType<SpinProps>;
105
+ };
72
106
  jsonForm: {
73
107
  type: PropType<JsonFormProviderConfig>;
74
108
  };
@@ -139,6 +173,39 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
139
173
  colorPicker: {
140
174
  type: PropType<ConfigProviderColorPicker>;
141
175
  };
176
+ spinProps: {
177
+ type: PropType<SpinProps>;
178
+ };
179
+ basicCrudTableSpinProps: {
180
+ type: PropType<SpinProps>;
181
+ };
182
+ cardSpinProps: {
183
+ type: PropType<SpinProps>;
184
+ };
185
+ cascaderSpinProps: {
186
+ type: PropType<SpinProps>;
187
+ };
188
+ listSpinProps: {
189
+ type: PropType<SpinProps>;
190
+ };
191
+ qrCodeSpinProps: {
192
+ type: PropType<SpinProps>;
193
+ };
194
+ selectSpinProps: {
195
+ type: PropType<SpinProps>;
196
+ };
197
+ tableSpinProps: {
198
+ type: PropType<SpinProps>;
199
+ };
200
+ timelineSpinProps: {
201
+ type: PropType<SpinProps>;
202
+ };
203
+ toolbarSpinProps: {
204
+ type: PropType<SpinProps>;
205
+ };
206
+ treeSelectSpinProps: {
207
+ type: PropType<SpinProps>;
208
+ };
142
209
  jsonForm: {
143
210
  type: PropType<JsonFormProviderConfig>;
144
211
  };
@@ -125,6 +125,61 @@ var config_provider_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
125
125
  */
126
126
  colorPicker: { type: Object },
127
127
  /**
128
+ * @zh Spin 组件默认属性
129
+ * @en Default props for Spin
130
+ */
131
+ spinProps: { type: Object },
132
+ /**
133
+ * @zh BasicCrudTable 内部 Spin 的默认属性
134
+ * @en Default props for Spin inside BasicCrudTable
135
+ */
136
+ basicCrudTableSpinProps: { type: Object },
137
+ /**
138
+ * @zh Card 内部 Spin 的默认属性
139
+ * @en Default props for Spin inside Card
140
+ */
141
+ cardSpinProps: { type: Object },
142
+ /**
143
+ * @zh Cascader 内部 Spin 的默认属性
144
+ * @en Default props for Spin inside Cascader
145
+ */
146
+ cascaderSpinProps: { type: Object },
147
+ /**
148
+ * @zh List 内部 Spin 的默认属性
149
+ * @en Default props for Spin inside List
150
+ */
151
+ listSpinProps: { type: Object },
152
+ /**
153
+ * @zh QrCode 内部 Spin 的默认属性
154
+ * @en Default props for Spin inside QrCode
155
+ */
156
+ qrCodeSpinProps: { type: Object },
157
+ /**
158
+ * @zh Select 内部 Spin 的默认属性
159
+ * @en Default props for Spin inside Select
160
+ */
161
+ selectSpinProps: { type: Object },
162
+ /**
163
+ * @zh Table 内部 Spin 的默认属性,优先于 `spinProps`
164
+ * @en Default props for Spin inside Table, taking precedence over `spinProps`
165
+ */
166
+ tableSpinProps: { type: Object },
167
+ /**
168
+ * @zh Timeline 内部 Spin 的默认属性
169
+ * @en Default props for Spin inside Timeline
170
+ */
171
+ timelineSpinProps: { type: Object },
172
+ /**
173
+ * @zh Toolbar 内部 Spin 的默认属性
174
+ * @en Default props for Spin inside Toolbar
175
+ */
176
+ toolbarSpinProps: { type: Object },
177
+ /**
178
+ * @zh TreeSelect 内部 Spin 的默认属性
179
+ * @en Default props for Spin inside TreeSelect
180
+ */
181
+ treeSelectSpinProps: { type: Object },
182
+ /**
128
183
  * @zh JsonForm 组件默认配置
129
184
  * @en Default config for JsonForm
130
185
  */
@@ -156,7 +211,7 @@ var config_provider_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
156
211
  * @version 2.28.0
157
212
  */
158
213
  const slots = useSlots();
159
- const { prefixCls, locale, size, allowClear, autoInsertSpaceInButton, allowSearch, virtualListProps, updateAtScroll, scrollToClose, exchangeTime, rtl, datePicker, modal, drawer, pagination, colorPicker } = toRefs(props);
214
+ const { prefixCls, locale, size, allowClear, autoInsertSpaceInButton, allowSearch, virtualListProps, updateAtScroll, scrollToClose, exchangeTime, rtl, datePicker, modal, drawer, pagination, colorPicker, spinProps, basicCrudTableSpinProps, cardSpinProps, cascaderSpinProps, listSpinProps, qrCodeSpinProps, selectSpinProps, tableSpinProps, timelineSpinProps, toolbarSpinProps, treeSelectSpinProps } = toRefs(props);
160
215
  const config = reactive({
161
216
  slots,
162
217
  prefixCls,
@@ -175,6 +230,17 @@ var config_provider_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
175
230
  drawer,
176
231
  pagination,
177
232
  colorPicker,
233
+ spinProps,
234
+ basicCrudTableSpinProps,
235
+ cardSpinProps,
236
+ cascaderSpinProps,
237
+ listSpinProps,
238
+ qrCodeSpinProps,
239
+ selectSpinProps,
240
+ tableSpinProps,
241
+ timelineSpinProps,
242
+ toolbarSpinProps,
243
+ treeSelectSpinProps,
178
244
  jsonForm: toRefs(props).jsonForm,
179
245
  theme: normalizeTheme(props.theme)
180
246
  });
@@ -8,6 +8,7 @@ import type { EllipsisTooltipProps } from '../ellipsis';
8
8
  import type { JsonFormProviderConfig } from '../json-form/types';
9
9
  import type { SdLang } from '../locale/interface';
10
10
  import type { PaginationSelectProps } from '../pagination/interface';
11
+ import type { SpinProps } from '../spin';
11
12
  import type { SDThemeNormalized } from './theme';
12
13
  export interface ConfigProviderModal {
13
14
  mask?: boolean;
@@ -87,6 +88,17 @@ export interface ConfigProvider {
87
88
  drawer?: ConfigProviderDrawer;
88
89
  pagination?: ConfigProviderPagination;
89
90
  colorPicker?: ConfigProviderColorPicker;
91
+ spinProps?: SpinProps;
92
+ basicCrudTableSpinProps?: SpinProps;
93
+ cardSpinProps?: SpinProps;
94
+ cascaderSpinProps?: SpinProps;
95
+ listSpinProps?: SpinProps;
96
+ qrCodeSpinProps?: SpinProps;
97
+ selectSpinProps?: SpinProps;
98
+ tableSpinProps?: SpinProps;
99
+ timelineSpinProps?: SpinProps;
100
+ toolbarSpinProps?: SpinProps;
101
+ treeSelectSpinProps?: SpinProps;
90
102
  jsonForm?: JsonFormProviderConfig;
91
103
  theme?: SDThemeNormalized;
92
104
  }
@@ -63,6 +63,39 @@ declare const ConfigProvider: {
63
63
  colorPicker: {
64
64
  type: import("vue").PropType<import("./context").ConfigProviderColorPicker>;
65
65
  };
66
+ spinProps: {
67
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
68
+ };
69
+ basicCrudTableSpinProps: {
70
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
71
+ };
72
+ cardSpinProps: {
73
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
74
+ };
75
+ cascaderSpinProps: {
76
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
77
+ };
78
+ listSpinProps: {
79
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
80
+ };
81
+ qrCodeSpinProps: {
82
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
83
+ };
84
+ selectSpinProps: {
85
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
86
+ };
87
+ tableSpinProps: {
88
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
89
+ };
90
+ timelineSpinProps: {
91
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
92
+ };
93
+ toolbarSpinProps: {
94
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
95
+ };
96
+ treeSelectSpinProps: {
97
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
98
+ };
66
99
  jsonForm: {
67
100
  type: import("vue").PropType<import("./context").JsonFormProviderConfig>;
68
101
  };
@@ -150,6 +183,39 @@ declare const ConfigProvider: {
150
183
  colorPicker: {
151
184
  type: import("vue").PropType<import("./context").ConfigProviderColorPicker>;
152
185
  };
186
+ spinProps: {
187
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
188
+ };
189
+ basicCrudTableSpinProps: {
190
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
191
+ };
192
+ cardSpinProps: {
193
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
194
+ };
195
+ cascaderSpinProps: {
196
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
197
+ };
198
+ listSpinProps: {
199
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
200
+ };
201
+ qrCodeSpinProps: {
202
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
203
+ };
204
+ selectSpinProps: {
205
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
206
+ };
207
+ tableSpinProps: {
208
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
209
+ };
210
+ timelineSpinProps: {
211
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
212
+ };
213
+ toolbarSpinProps: {
214
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
215
+ };
216
+ treeSelectSpinProps: {
217
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
218
+ };
153
219
  jsonForm: {
154
220
  type: import("vue").PropType<import("./context").JsonFormProviderConfig>;
155
221
  };
@@ -234,6 +300,39 @@ declare const ConfigProvider: {
234
300
  colorPicker: {
235
301
  type: import("vue").PropType<import("./context").ConfigProviderColorPicker>;
236
302
  };
303
+ spinProps: {
304
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
305
+ };
306
+ basicCrudTableSpinProps: {
307
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
308
+ };
309
+ cardSpinProps: {
310
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
311
+ };
312
+ cascaderSpinProps: {
313
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
314
+ };
315
+ listSpinProps: {
316
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
317
+ };
318
+ qrCodeSpinProps: {
319
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
320
+ };
321
+ selectSpinProps: {
322
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
323
+ };
324
+ tableSpinProps: {
325
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
326
+ };
327
+ timelineSpinProps: {
328
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
329
+ };
330
+ toolbarSpinProps: {
331
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
332
+ };
333
+ treeSelectSpinProps: {
334
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
335
+ };
237
336
  jsonForm: {
238
337
  type: import("vue").PropType<import("./context").JsonFormProviderConfig>;
239
338
  };
@@ -7,7 +7,7 @@ import _QuarterPicker from './pickers/quarter-picker';
7
7
  import _WeekPicker from './pickers/week-picker';
8
8
  import _YearPicker from './pickers/year-picker';
9
9
  import _RangePicker from './range-picker.vue';
10
- export type { CalendarValue, DatePickerProps, DisabledDate, DisabledTime, DisabledTimeProps, FormatFunc, MonthPickerProps, PickerProps, QuarterPickerProps, RangeDisabledDate, RangeDisabledTime, RangePickerProps, ShortcutType, ValueFormat, WeekPickerProps, YearPickerProps, } from './interface';
10
+ export type { CalendarValue, DatePickerProps, DatePickerTriggerSlotProps, DisabledDate, DisabledTime, DisabledTimeProps, FormatFunc, MonthPickerProps, PickerProps, QuarterPickerProps, RangeDisabledDate, RangeDisabledTime, RangePickerProps, RangePickerTriggerSlotProps, ShortcutType, ValueFormat, WeekPickerProps, YearPickerProps, } from './interface';
11
11
  export type DatePickerChangeHandler = (value: CalendarValue | undefined, date: Date | undefined, dateString: string | undefined) => void;
12
12
  export type DatePickerSelectHandler = DatePickerChangeHandler;
13
13
  export type DatePickerOkHandler = DatePickerChangeHandler;
@@ -883,6 +883,17 @@ declare const DatePicker: {
883
883
  clearRangeOnReselect: boolean;
884
884
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
885
885
  $slots: {
886
+ trigger?: (props: {
887
+ value: (CalendarValue | undefined)[] | undefined;
888
+ date: (Date | undefined)[] | undefined;
889
+ displayValue: (string | undefined)[];
890
+ inputValue: (string | undefined)[] | undefined;
891
+ popupVisible: boolean;
892
+ disabled: boolean;
893
+ disabledInputs: boolean[];
894
+ readonly: boolean;
895
+ }) => any;
896
+ } & {
886
897
  default?: (props: {}) => any;
887
898
  } & {
888
899
  prefix?: (props: {}) => any;
@@ -22,6 +22,25 @@ export type RangeDisabledDate = (current: Date, type: 'start' | 'end') => boolea
22
22
  export type RangeDisabledTime = (current: Date, type: 'start' | 'end') => DisabledTimeProps;
23
23
  export type Mode = 'date' | 'year' | 'quarter' | 'month' | 'week';
24
24
  export type WeekStart = 0 | 1 | 2 | 3 | 4 | 5 | 6;
25
+ export interface DatePickerTriggerSlotProps {
26
+ value: CalendarValue | undefined;
27
+ date: Date | undefined;
28
+ displayValue: string;
29
+ inputValue: string | undefined;
30
+ popupVisible: boolean;
31
+ disabled: boolean;
32
+ readonly: boolean;
33
+ }
34
+ export interface RangePickerTriggerSlotProps {
35
+ value: Array<CalendarValue | undefined> | undefined;
36
+ date: Array<Date | undefined> | undefined;
37
+ displayValue: Array<string | undefined>;
38
+ inputValue: Array<string | undefined> | undefined;
39
+ popupVisible: boolean;
40
+ disabled: boolean;
41
+ disabledInputs: boolean[];
42
+ readonly: boolean;
43
+ }
25
44
  export interface DatePickerProps {
26
45
  dayStartOfWeek: WeekStart;
27
46
  format?: string | FormatFunc;
@@ -15,7 +15,15 @@ declare function onPanelShortcutClick(value: Dayjs, shortcut: ShortcutType): voi
15
15
  declare function onPanelHeaderLabelClick(type: 'year' | 'month'): void;
16
16
  declare function onMonthHeaderClick(): void;
17
17
  declare function onPanelHeaderSelect(date: Dayjs): void;
18
- declare var __VLS_10: {}, __VLS_26: {}, __VLS_29: {}, __VLS_37: {
18
+ declare var __VLS_10: {
19
+ value: string | number | Date | undefined;
20
+ date: Date | undefined;
21
+ displayValue: string;
22
+ inputValue: string | undefined;
23
+ popupVisible: boolean;
24
+ disabled: boolean;
25
+ readonly: boolean;
26
+ }, __VLS_12: {}, __VLS_28: {}, __VLS_31: {}, __VLS_39: {
19
27
  component: {
20
28
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
21
29
  mode: {
@@ -465,9 +473,9 @@ declare var __VLS_10: {}, __VLS_26: {}, __VLS_29: {}, __VLS_37: {
465
473
  shortcutsPosition: "left" | "right" | "bottom";
466
474
  hideTrigger: boolean;
467
475
  };
468
- }, __VLS_46: {}, __VLS_49: {
476
+ }, __VLS_48: {}, __VLS_51: {
469
477
  date: Date;
470
- }, __VLS_51: {
478
+ }, __VLS_53: {
471
479
  component: {
472
480
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
473
481
  mode: {
@@ -917,27 +925,29 @@ declare var __VLS_10: {}, __VLS_26: {}, __VLS_29: {}, __VLS_37: {
917
925
  shortcutsPosition: "left" | "right" | "bottom";
918
926
  hideTrigger: boolean;
919
927
  };
920
- }, __VLS_60: {}, __VLS_63: {
928
+ }, __VLS_62: {}, __VLS_65: {
921
929
  date: Date;
922
930
  };
923
931
  type __VLS_Slots = {} & {
924
- default?: (props: typeof __VLS_10) => any;
932
+ trigger?: (props: typeof __VLS_10) => any;
933
+ } & {
934
+ default?: (props: typeof __VLS_12) => any;
925
935
  } & {
926
- prefix?: (props: typeof __VLS_26) => any;
936
+ prefix?: (props: typeof __VLS_28) => any;
927
937
  } & {
928
- 'suffix-icon'?: (props: typeof __VLS_29) => any;
938
+ 'suffix-icon'?: (props: typeof __VLS_31) => any;
929
939
  } & {
930
- panelRender?: (props: typeof __VLS_37) => any;
940
+ panelRender?: (props: typeof __VLS_39) => any;
931
941
  } & {
932
- extra?: (props: typeof __VLS_46) => any;
942
+ extra?: (props: typeof __VLS_48) => any;
933
943
  } & {
934
- cell?: (props: typeof __VLS_49) => any;
944
+ cell?: (props: typeof __VLS_51) => any;
935
945
  } & {
936
- panelRender?: (props: typeof __VLS_51) => any;
946
+ panelRender?: (props: typeof __VLS_53) => any;
937
947
  } & {
938
- extra?: (props: typeof __VLS_60) => any;
948
+ extra?: (props: typeof __VLS_62) => any;
939
949
  } & {
940
- cell?: (props: typeof __VLS_63) => any;
950
+ cell?: (props: typeof __VLS_65) => any;
941
951
  };
942
952
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
943
953
  locale: {
@@ -282,6 +282,11 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
282
282
  const props = __props;
283
283
  const emit = __emit;
284
284
  /**
285
+ * @zh 自定义触发元素
286
+ * @en Custom trigger element
287
+ * @slot trigger
288
+ */
289
+ /**
285
290
  * @zh 自定义渲染面板
286
291
  * @en Customize panel rendering
287
292
  * @slot panelRender
@@ -445,6 +450,14 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
445
450
  return (_ref = (_previewValue$value = previewValue.value) !== null && _previewValue$value !== void 0 ? _previewValue$value : processValue.value) !== null && _ref !== void 0 ? _ref : selectedValue.value;
446
451
  });
447
452
  const [inputValue, setInputValue] = useState();
453
+ const triggerLocalValue = computed(() => selectedValue.value ? toLocal(selectedValue.value, utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value) : void 0);
454
+ const triggerValue = computed(() => selectedValue.value ? getReturnValue(selectedValue.value) : void 0);
455
+ const triggerDate = computed(() => getDateValue(triggerLocalValue.value));
456
+ const triggerDisplayValue = computed(() => {
457
+ var _getFormattedValue;
458
+ if (!triggerLocalValue.value) return "";
459
+ return isFunction(inputFormat.value) ? inputFormat.value(triggerLocalValue.value) : (_getFormattedValue = getFormattedValue(triggerLocalValue.value, inputFormat.value)) !== null && _getFormattedValue !== void 0 ? _getFormattedValue : "";
460
+ });
448
461
  const [panelVisible, setLocalPanelVisible] = useMergeState(defaultPopupVisible.value, reactive({ value: popupVisible }));
449
462
  const setPanelVisible = (newVisible) => {
450
463
  if (panelVisible.value !== newVisible) {
@@ -678,7 +691,15 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
678
691
  fn: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(scope)))]),
679
692
  key: "1"
680
693
  } : void 0]), 1040))])]),
681
- default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(input_default, mergeProps(_ctx.$attrs, {
694
+ default: withCtx(() => [renderSlot(_ctx.$slots, "trigger", {
695
+ value: triggerValue.value,
696
+ date: triggerDate.value,
697
+ displayValue: triggerDisplayValue.value,
698
+ inputValue: unref(inputValue),
699
+ popupVisible: unref(panelVisible),
700
+ disabled: unref(mergedDisabled),
701
+ readonly: Boolean(unref(readonly))
702
+ }, () => [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(input_default, mergeProps(_ctx.$attrs, {
682
703
  ref_key: "refInput",
683
704
  ref: refInput,
684
705
  size: __props.size,
@@ -725,7 +746,7 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
725
746
  "input-value",
726
747
  "value",
727
748
  "format"
728
- ])])]),
749
+ ])])])]),
729
750
  _: 3
730
751
  }, 16, [
731
752
  "floating-options",
@@ -16,7 +16,16 @@ declare function onPanelShortcutMouseEnter(value: Array<Dayjs | undefined>): voi
16
16
  declare function onPanelShortcutMouseLeave(): void;
17
17
  declare function onPanelShortcutClick(value: Array<Dayjs | undefined>, shortcut: ShortcutType): void;
18
18
  declare function onPanelConfirm(): void;
19
- declare var __VLS_10: {}, __VLS_25: {}, __VLS_28: {}, __VLS_36: {}, __VLS_39: {
19
+ declare var __VLS_10: {
20
+ value: (CalendarValue | undefined)[] | undefined;
21
+ date: (Date | undefined)[] | undefined;
22
+ displayValue: (string | undefined)[];
23
+ inputValue: (string | undefined)[] | undefined;
24
+ popupVisible: boolean;
25
+ disabled: boolean;
26
+ disabledInputs: boolean[];
27
+ readonly: boolean;
28
+ }, __VLS_12: {}, __VLS_27: {}, __VLS_30: {}, __VLS_38: {}, __VLS_41: {
20
29
  component: {
21
30
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
22
31
  mode: {
@@ -652,10 +661,10 @@ declare var __VLS_10: {}, __VLS_25: {}, __VLS_28: {}, __VLS_36: {}, __VLS_39: {
652
661
  shortcutsPosition: "left" | "right" | "bottom";
653
662
  hideTrigger: boolean;
654
663
  };
655
- }, __VLS_48: {}, __VLS_51: {
664
+ }, __VLS_50: {}, __VLS_53: {
656
665
  type: string;
657
666
  date: Date;
658
- }, __VLS_53: {
667
+ }, __VLS_55: {
659
668
  component: {
660
669
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
661
670
  mode: {
@@ -1291,30 +1300,32 @@ declare var __VLS_10: {}, __VLS_25: {}, __VLS_28: {}, __VLS_36: {}, __VLS_39: {
1291
1300
  shortcutsPosition: "left" | "right" | "bottom";
1292
1301
  hideTrigger: boolean;
1293
1302
  };
1294
- }, __VLS_62: {}, __VLS_65: {
1303
+ }, __VLS_64: {}, __VLS_67: {
1295
1304
  type: string;
1296
1305
  date: Date;
1297
1306
  };
1298
1307
  type __VLS_Slots = {} & {
1299
- default?: (props: typeof __VLS_10) => any;
1308
+ trigger?: (props: typeof __VLS_10) => any;
1309
+ } & {
1310
+ default?: (props: typeof __VLS_12) => any;
1300
1311
  } & {
1301
- prefix?: (props: typeof __VLS_25) => any;
1312
+ prefix?: (props: typeof __VLS_27) => any;
1302
1313
  } & {
1303
- 'suffix-icon'?: (props: typeof __VLS_28) => any;
1314
+ 'suffix-icon'?: (props: typeof __VLS_30) => any;
1304
1315
  } & {
1305
- separator?: (props: typeof __VLS_36) => any;
1316
+ separator?: (props: typeof __VLS_38) => any;
1306
1317
  } & {
1307
- panelRender?: (props: typeof __VLS_39) => any;
1318
+ panelRender?: (props: typeof __VLS_41) => any;
1308
1319
  } & {
1309
- extra?: (props: typeof __VLS_48) => any;
1320
+ extra?: (props: typeof __VLS_50) => any;
1310
1321
  } & {
1311
- cell?: (props: typeof __VLS_51) => any;
1322
+ cell?: (props: typeof __VLS_53) => any;
1312
1323
  } & {
1313
- panelRender?: (props: typeof __VLS_53) => any;
1324
+ panelRender?: (props: typeof __VLS_55) => any;
1314
1325
  } & {
1315
- extra?: (props: typeof __VLS_62) => any;
1326
+ extra?: (props: typeof __VLS_64) => any;
1316
1327
  } & {
1317
- cell?: (props: typeof __VLS_65) => any;
1328
+ cell?: (props: typeof __VLS_67) => any;
1318
1329
  };
1319
1330
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1320
1331
  mode: {
@@ -372,6 +372,16 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
372
372
  return (_ref = (_previewValue$value = previewValue.value) !== null && _previewValue$value !== void 0 ? _previewValue$value : processValue.value) !== null && _ref !== void 0 ? _ref : selectedValue.value;
373
373
  });
374
374
  const [inputValue, setInputValue] = useState();
375
+ const triggerLocalValue = computed(() => {
376
+ var _selectedValue$value;
377
+ return (_selectedValue$value = selectedValue.value) === null || _selectedValue$value === void 0 ? void 0 : _selectedValue$value.map((item) => item ? toLocal(item, utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value) : void 0);
378
+ });
379
+ const triggerValue = computed(() => selectedValue.value ? getReturnRangeValue(selectedValue.value, returnValueFormat.value, utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value) : void 0);
380
+ const triggerDate = computed(() => getDateValue(triggerLocalValue.value));
381
+ const triggerDisplayValue = computed(() => {
382
+ var _getFormattedValue;
383
+ return (_getFormattedValue = getFormattedValue(triggerLocalValue.value, computedFormat.value)) !== null && _getFormattedValue !== void 0 ? _getFormattedValue : [];
384
+ });
375
385
  const startHeaderMode = ref();
376
386
  const endHeaderMode = ref();
377
387
  const [panelVisible, setLocalPanelVisible] = useMergeState(defaultPopupVisible.value, reactive({ value: popupVisible }));
@@ -705,7 +715,16 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
705
715
  fn: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(scope)))]),
706
716
  key: "1"
707
717
  } : void 0]), 1040))])]),
708
- default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(input_range_default, mergeProps({
718
+ default: withCtx(() => [renderSlot(_ctx.$slots, "trigger", {
719
+ value: triggerValue.value,
720
+ date: triggerDate.value,
721
+ displayValue: triggerDisplayValue.value,
722
+ inputValue: unref(inputValue),
723
+ popupVisible: unref(panelVisible),
724
+ disabled: triggerDisabled.value,
725
+ disabledInputs: disabledArray.value,
726
+ readonly: Boolean(__props.readonly)
727
+ }, () => [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(input_range_default, mergeProps({
709
728
  ref_key: "refInput",
710
729
  ref: refInput
711
730
  }, _ctx.$attrs, {
@@ -756,7 +775,7 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
756
775
  "input-value",
757
776
  "value",
758
777
  "format"
759
- ])])]),
778
+ ])])])]),
760
779
  _: 3
761
780
  }, 16, [
762
781
  "floating-options",
@@ -11,8 +11,8 @@ import client_only_default from "../_components/client-only.js";
11
11
  import usePopupManager from "../_hooks/use-popup-manager.js";
12
12
  import { useTeleportContainer } from "../_hooks/use-teleport-container.js";
13
13
  import Button from "../button/index.js";
14
- import Ellipsis from "../ellipsis/index.js";
15
14
  import { useConfigProviderProp } from "../_hooks/use-config-provider-prop.js";
15
+ import Ellipsis from "../ellipsis/index.js";
16
16
  import { getFocusableElements, useFocusTrap } from "../_hooks/use-focus-trap.js";
17
17
  import { useOverflow } from "../_hooks/use-overflow.js";
18
18
  import { DRAWER_PLACEMENTS } from "./utils.js";
package/es/index.css CHANGED
@@ -8677,10 +8677,21 @@ body.sd-tour-active .sd-tour-popover * {
8677
8677
  animation: sender-recording-bar 0.8s ease-in-out infinite;
8678
8678
  }
8679
8679
  .sd-sender-footer {
8680
+ display: flex;
8681
+ gap: 8px;
8682
+ align-items: center;
8680
8683
  box-sizing: border-box;
8681
8684
  padding-block: 4px 12px;
8682
8685
  padding-inline: 12px;
8683
8686
  }
8687
+ .sd-sender-footer-content {
8688
+ flex: auto;
8689
+ min-width: 0;
8690
+ }
8691
+ .sd-sender-footer-suffix {
8692
+ flex: none;
8693
+ margin-inline-start: auto;
8694
+ }
8684
8695
  .sd-sender-header {
8685
8696
  overflow: hidden;
8686
8697
  border-bottom: 1px solid color-mix(in srgb, var(--sd-color-neutral-3) 10%, transparent);
package/es/index.d.ts CHANGED
@@ -129,7 +129,7 @@ export type { ScrollbarElements, ScrollbarEventListener, ScrollbarEventListenerA
129
129
  export { default as Select } from './select';
130
130
  export type { FilterOption, SelectFallbackOption, SelectFieldNames, SelectInstance, SelectOption, SelectOptionData, SelectOptionGroup, SelectProps, } from './select';
131
131
  export { default as Sender, SenderHeader, SenderSwitch } from './sender';
132
- export type { SenderActionContext, SenderAllowSpeech, SenderComponents, SenderContentSlotConfig, SenderControlledSpeechConfig, SenderCustomSlotConfig, SenderCustomSlotRender, SenderCustomSlotState, SenderEmits, SenderFocusOptions, SenderHeaderInstance, SenderHeaderProps, SenderHeaderSemanticType, SenderInsertPosition, SenderInputSlotConfig, SenderInstance, SenderProps, SenderRef, SenderResolvedSlotConfig, SenderSelectSlotConfig, SenderSemanticType, SenderSkill, SenderSkillClosableConfig, SenderSlotConfig, SenderSlotConfigBase, SenderSubmitType, SenderSwitchInstance, SenderSwitchProps, SenderTagSlotConfig, SenderTextSlotConfig, SenderValue, } from './sender';
132
+ export type { SenderActionContext, SenderAllowSpeech, SenderComponents, SenderContentSlotConfig, SenderControlledSpeechConfig, SenderCustomSlotConfig, SenderCustomSlotRender, SenderCustomSlotState, SenderEmits, SenderFocusOptions, SenderHeaderInstance, SenderHeaderProps, SenderHeaderSemanticType, SenderInsertPosition, SenderInputSlotConfig, SenderInstance, SenderProps, SenderRef, SenderResolvedSlotConfig, SenderSelectSlotConfig, SenderSemanticType, SenderSkill, SenderSkillClosableConfig, SenderSpeechConfig, SenderSpeechDataEvent, SenderSpeechEndEvent, SenderSpeechEndReason, SenderSpeechErrorEvent, SenderSpeechErrorPhase, SenderSpeechStartEvent, SenderSpeechTransportCloseEvent, SenderSpeechTransportMessageEvent, SenderSpeechTransportOpenEvent, SenderSlotConfig, SenderSlotConfigBase, SenderSubmitType, SenderSuffixPlacement, SenderSwitchInstance, SenderSwitchProps, SenderTagSlotConfig, SenderTextSlotConfig, SenderValue, } from './sender';
133
133
  export { default as Secret } from './secret';
134
134
  export type { SecretInstance } from './secret';
135
135
  export { default as Skeleton, SkeletonLine, SkeletonShape } from './skeleton';
@@ -139,7 +139,7 @@ export type { SliderChangeHandler, SliderFormatTooltip, SliderInstance, SliderVa
139
139
  export { default as Space } from './space';
140
140
  export type { SpaceInstance } from './space';
141
141
  export { default as Spin } from './spin';
142
- export type { SpinInstance } from './spin';
142
+ export type { SpinInstance, SpinProps } from './spin';
143
143
  export { default as Split } from './split';
144
144
  export type { SplitInstance } from './split';
145
145
  export { default as Statistic, Countdown } from './statistic';