sard 1.0.7 → 1.0.8

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 (33) hide show
  1. package/components/calendar-input/calendar-input.d.ts +2 -2
  2. package/components/calendar-input/calendar-input.js +2 -2
  3. package/components/calendar-popout/calendar-popout.d.ts +2 -2
  4. package/components/calendar-popout/common.d.ts +1 -1
  5. package/components/cascader-input/cascader-input.d.ts +2 -2
  6. package/components/cascader-input/cascader-input.js +2 -2
  7. package/components/cascader-popout/cascader-popout.d.ts +2 -2
  8. package/components/cascader-popout/common.d.ts +1 -1
  9. package/components/checkbox-input/checkbox-input.d.ts +2 -2
  10. package/components/checkbox-input/checkbox-input.js +2 -2
  11. package/components/checkbox-popout/checkbox-popout.d.ts +2 -2
  12. package/components/checkbox-popout/common.d.ts +1 -1
  13. package/components/color-picker-input/color-picker-input.d.ts +2 -2
  14. package/components/color-picker-input/color-picker-input.js +2 -2
  15. package/components/color-picker-popout/color-picker-popout.d.ts +2 -2
  16. package/components/color-picker-popout/common.d.ts +1 -1
  17. package/components/datetime-picker-input/datetime-picker-input.d.ts +2 -2
  18. package/components/datetime-picker-input/datetime-picker-input.js +2 -2
  19. package/components/datetime-picker-popout/common.d.ts +1 -1
  20. package/components/datetime-picker-popout/datetime-picker-popout.d.ts +2 -2
  21. package/components/datetime-range-picker-input/datetime-range-picker-input.d.ts +2 -2
  22. package/components/datetime-range-picker-input/datetime-range-picker-input.js +2 -2
  23. package/components/datetime-range-picker-popout/common.d.ts +1 -1
  24. package/components/datetime-range-picker-popout/datetime-range-picker-popout.d.ts +2 -2
  25. package/components/radio-input/radio-input.d.ts +2 -2
  26. package/components/radio-input/radio-input.js +2 -2
  27. package/components/radio-popout/common.d.ts +1 -1
  28. package/components/radio-popout/radio-popout.d.ts +2 -2
  29. package/components/select-input/select-input.d.ts +2 -2
  30. package/components/select-input/select-input.js +2 -2
  31. package/components/select-popout/common.d.ts +1 -1
  32. package/components/select-popout/select-popout.d.ts +2 -2
  33. package/package.json +1 -1
@@ -14,7 +14,7 @@ declare const __VLS_base: import("vue").DefineComponent<CalendarInputProps, {},
14
14
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
15
15
  "update:visible": (visible: boolean) => any;
16
16
  "update:modelValue": (value: string | string[] | Date | Date[] | undefined) => any;
17
- confirm: () => any;
17
+ confirm: (value: string | string[] | Date | Date[] | undefined) => any;
18
18
  }, string, import("vue").PublicProps, Readonly<CalendarInputProps> & Readonly<{
19
19
  onChange?: ((value: string | string[] | Date | Date[] | undefined) => any) | undefined;
20
20
  "onBefore-enter"?: ((el: Element) => any) | undefined;
@@ -28,7 +28,7 @@ declare const __VLS_base: import("vue").DefineComponent<CalendarInputProps, {},
28
28
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
29
29
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
30
30
  "onUpdate:modelValue"?: ((value: string | string[] | Date | Date[] | undefined) => any) | undefined;
31
- onConfirm?: (() => any) | undefined;
31
+ onConfirm?: ((value: string | string[] | Date | Date[] | undefined) => any) | undefined;
32
32
  }>, {
33
33
  title: string;
34
34
  min: Date;
@@ -175,8 +175,8 @@ var calendar_input_default = /*@__PURE__*/ defineComponent({
175
175
  watch(innerValue, () => {
176
176
  inputValue.value = getInputValue();
177
177
  }, { immediate: true });
178
- const onConfirm = () => {
179
- emit("confirm");
178
+ const onConfirm = (value) => {
179
+ emit("confirm", value);
180
180
  };
181
181
  return (_ctx, _cache) => {
182
182
  return openBlock(), createBlock(popout_input_default, mergeProps(unref(partitionedProps)[0], {
@@ -13,7 +13,7 @@ declare const __VLS_base: import("vue").DefineComponent<CalendarPopoutProps, {},
13
13
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
14
14
  "update:visible": (visible: boolean) => any;
15
15
  "update:modelValue": (value: string | string[] | Date | Date[] | undefined) => any;
16
- confirm: () => any;
16
+ confirm: (value: string | string[] | Date | Date[] | undefined) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<CalendarPopoutProps> & Readonly<{
18
18
  onChange?: ((value: string | string[] | Date | Date[] | undefined) => any) | undefined;
19
19
  "onBefore-enter"?: ((el: Element) => any) | undefined;
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<CalendarPopoutProps, {},
27
27
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
28
28
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((value: string | string[] | Date | Date[] | undefined) => any) | undefined;
30
- onConfirm?: (() => any) | undefined;
30
+ onConfirm?: ((value: string | string[] | Date | Date[] | undefined) => any) | undefined;
31
31
  }>, {
32
32
  title: string;
33
33
  min: Date;
@@ -14,7 +14,7 @@ export interface CalendarPopoutEmits extends MotionEmits {
14
14
  (e: 'update:visible', visible: boolean): void;
15
15
  (e: 'update:modelValue', value: Date | Date[] | string | string[] | undefined): void;
16
16
  (e: 'change', value: Date | Date[] | string | string[] | undefined): void;
17
- (e: 'confirm'): void;
17
+ (e: 'confirm', value: Date | Date[] | string | string[] | undefined): void;
18
18
  }
19
19
  export interface CalendarPopoutExpose {
20
20
  }
@@ -15,7 +15,7 @@ declare const __VLS_base: import("vue").DefineComponent<CascaderInputProps, {},
15
15
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
16
16
  "update:visible": (visible: boolean) => any;
17
17
  "update:modelValue": (value: any, selectedOptions: CascaderOption[]) => any;
18
- confirm: () => any;
18
+ confirm: (value: any, selectedOptions: CascaderOption[]) => any;
19
19
  }, string, import("vue").PublicProps, Readonly<CascaderInputProps> & Readonly<{
20
20
  onSelect?: ((option: CascaderOption, tabIndex: number) => any) | undefined;
21
21
  onChange?: ((value: any, selectedOptions: CascaderOption[]) => any) | undefined;
@@ -30,7 +30,7 @@ declare const __VLS_base: import("vue").DefineComponent<CascaderInputProps, {},
30
30
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
31
31
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
32
32
  "onUpdate:modelValue"?: ((value: any, selectedOptions: CascaderOption[]) => any) | undefined;
33
- onConfirm?: (() => any) | undefined;
33
+ onConfirm?: ((value: any, selectedOptions: CascaderOption[]) => any) | undefined;
34
34
  }>, {
35
35
  title: string;
36
36
  multiple: boolean;
@@ -184,8 +184,8 @@ var cascader_input_default = /*@__PURE__*/ defineComponent({
184
184
  watch([innerValue, renderedOptions], () => {
185
185
  inputValue.value = getMayMultilineText(getInputValue(renderedOptions.value));
186
186
  }, { immediate: true });
187
- const onConfirm = () => {
188
- emit("confirm");
187
+ const onConfirm = (value, selectedOptions) => {
188
+ emit("confirm", value, selectedOptions);
189
189
  };
190
190
  return (_ctx, _cache) => {
191
191
  return openBlock(), createBlock(popout_input_default, mergeProps(unref(partitionedProps)[0], {
@@ -14,7 +14,7 @@ declare const __VLS_base: import("vue").DefineComponent<CascaderPopoutProps, {},
14
14
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
15
15
  "update:visible": (visible: boolean) => any;
16
16
  "update:modelValue": (value: any, selectedOptions: import("../index.ts").CascaderOption[]) => any;
17
- confirm: () => any;
17
+ confirm: (value: any, selectedOptions: import("../index.ts").CascaderOption[]) => any;
18
18
  }, string, import("vue").PublicProps, Readonly<CascaderPopoutProps> & Readonly<{
19
19
  onSelect?: ((option: import("../index.ts").CascaderOption, tabIndex: number) => any) | undefined;
20
20
  onChange?: ((value: any, selectedOptions: import("../index.ts").CascaderOption[]) => any) | undefined;
@@ -29,7 +29,7 @@ declare const __VLS_base: import("vue").DefineComponent<CascaderPopoutProps, {},
29
29
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
30
30
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
31
31
  "onUpdate:modelValue"?: ((value: any, selectedOptions: import("../index.ts").CascaderOption[]) => any) | undefined;
32
- onConfirm?: (() => any) | undefined;
32
+ onConfirm?: ((value: any, selectedOptions: import("../index.ts").CascaderOption[]) => any) | undefined;
33
33
  }>, {
34
34
  title: string;
35
35
  multiple: boolean;
@@ -15,7 +15,7 @@ export interface CascaderPopoutEmits extends MotionEmits {
15
15
  (e: 'update:modelValue', value: any, selectedOptions: CascaderOption[]): void;
16
16
  (e: 'change', value: any, selectedOptions: CascaderOption[]): void;
17
17
  (e: 'select', option: CascaderOption, tabIndex: number): void;
18
- (e: 'confirm'): void;
18
+ (e: 'confirm', value: any, selectedOptions: CascaderOption[]): void;
19
19
  }
20
20
  export interface CascaderPopoutExpose {
21
21
  }
@@ -13,7 +13,7 @@ declare const __VLS_base: import("vue").DefineComponent<CheckboxInputProps, {},
13
13
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
14
14
  "update:visible": (visible: boolean) => any;
15
15
  "update:modelValue": (value: any) => any;
16
- confirm: () => any;
16
+ confirm: (value: any) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<CheckboxInputProps> & Readonly<{
18
18
  onChange?: ((value: any) => any) | undefined;
19
19
  "onBefore-enter"?: ((el: Element) => any) | undefined;
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<CheckboxInputProps, {},
27
27
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
28
28
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
30
- onConfirm?: (() => any) | undefined;
30
+ onConfirm?: ((value: any) => any) | undefined;
31
31
  }>, {
32
32
  title: string;
33
33
  options: import("../checkbox/common.ts").CheckboxGroupOption[];
@@ -139,8 +139,8 @@ var checkbox_input_default = /*@__PURE__*/ defineComponent({
139
139
  watch([innerValue, () => props.options], () => {
140
140
  inputValue.value = getInputValue();
141
141
  }, { immediate: true });
142
- const onConfirm = () => {
143
- emit("confirm");
142
+ const onConfirm = (value) => {
143
+ emit("confirm", value);
144
144
  };
145
145
  return (_ctx, _cache) => {
146
146
  return openBlock(), createBlock(popout_input_default, mergeProps(unref(partitionedProps)[0], {
@@ -13,7 +13,7 @@ declare const __VLS_base: import("vue").DefineComponent<CheckboxPopoutProps, {},
13
13
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
14
14
  "update:visible": (visible: boolean) => any;
15
15
  "update:modelValue": (value: any) => any;
16
- confirm: () => any;
16
+ confirm: (value: any) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<CheckboxPopoutProps> & Readonly<{
18
18
  onChange?: ((value: any) => any) | undefined;
19
19
  "onBefore-enter"?: ((el: Element) => any) | undefined;
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<CheckboxPopoutProps, {},
27
27
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
28
28
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
30
- onConfirm?: (() => any) | undefined;
30
+ onConfirm?: ((value: any) => any) | undefined;
31
31
  }>, {
32
32
  title: string;
33
33
  options: import("../checkbox/common.ts").CheckboxGroupOption[];
@@ -16,7 +16,7 @@ export interface CheckboxPopoutEmits extends MotionEmits {
16
16
  (e: 'update:visible', visible: boolean): void;
17
17
  (e: 'update:modelValue', value: any): void;
18
18
  (e: 'change', value: any): void;
19
- (e: 'confirm'): void;
19
+ (e: 'confirm', value: any): void;
20
20
  }
21
21
  export interface CheckboxPopoutExpose {
22
22
  }
@@ -13,7 +13,7 @@ declare const __VLS_base: import("vue").DefineComponent<ColorPickerInputProps, C
13
13
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
14
14
  "update:visible": (visible: boolean) => any;
15
15
  "update:modelValue": (value: string) => any;
16
- confirm: () => any;
16
+ confirm: (value: string) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<ColorPickerInputProps> & Readonly<{
18
18
  onChange?: ((value: string) => any) | undefined;
19
19
  "onBefore-enter"?: ((el: Element) => any) | undefined;
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<ColorPickerInputProps, C
27
27
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
28
28
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
30
- onConfirm?: (() => any) | undefined;
30
+ onConfirm?: ((value: string) => any) | undefined;
31
31
  }>, {
32
32
  title: string;
33
33
  format: import("../index.ts").ColorFormat;
@@ -118,8 +118,8 @@ var color_picker_input_default = /*@__PURE__*/ defineComponent({
118
118
  const previewStyle = computed(() => {
119
119
  return { background: innerValue.value };
120
120
  });
121
- const onConfirm = () => {
122
- emit("confirm");
121
+ const onConfirm = (value) => {
122
+ emit("confirm", value);
123
123
  };
124
124
  __expose({});
125
125
  return (_ctx, _cache) => {
@@ -13,7 +13,7 @@ declare const __VLS_base: import("vue").DefineComponent<ColorPickerPopoutProps,
13
13
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
14
14
  "update:visible": (visible: boolean) => any;
15
15
  "update:modelValue": (value: string) => any;
16
- confirm: () => any;
16
+ confirm: (value: string) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<ColorPickerPopoutProps> & Readonly<{
18
18
  onChange?: ((value: string) => any) | undefined;
19
19
  "onBefore-enter"?: ((el: Element) => any) | undefined;
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<ColorPickerPopoutProps,
27
27
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
28
28
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
30
- onConfirm?: (() => any) | undefined;
30
+ onConfirm?: ((value: string) => any) | undefined;
31
31
  }>, {
32
32
  title: string;
33
33
  format: import("../index.ts").ColorFormat;
@@ -13,7 +13,7 @@ export interface ColorPickerPopoutEmits extends MotionEmits {
13
13
  (e: 'update:visible', visible: boolean): void;
14
14
  (e: 'update:modelValue', value: string): void;
15
15
  (e: 'change', value: string): void;
16
- (e: 'confirm'): void;
16
+ (e: 'confirm', value: string): void;
17
17
  }
18
18
  export interface ColorPickerPopoutExpose {
19
19
  }
@@ -13,7 +13,7 @@ declare const __VLS_base: import("vue").DefineComponent<DatetimePickerInputProps
13
13
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
14
14
  "update:visible": (visible: boolean) => any;
15
15
  "update:modelValue": (date: string | Date | undefined) => any;
16
- confirm: () => any;
16
+ confirm: (date: string | Date | undefined) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<DatetimePickerInputProps> & Readonly<{
18
18
  onChange?: ((date: string | Date | undefined) => any) | undefined;
19
19
  "onBefore-enter"?: ((el: Element) => any) | undefined;
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<DatetimePickerInputProps
27
27
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
28
28
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((date: string | Date | undefined) => any) | undefined;
30
- onConfirm?: (() => any) | undefined;
30
+ onConfirm?: ((date: string | Date | undefined) => any) | undefined;
31
31
  }>, {
32
32
  filter: (letter: import("../index.ts").DatetimeLetter, value: number, date: Date, index: number) => boolean;
33
33
  title: string;
@@ -131,8 +131,8 @@ var datetime_picker_input_default = /*@__PURE__*/ defineComponent({
131
131
  watch(innerValue, () => {
132
132
  inputValue.value = getInputValue();
133
133
  }, { immediate: true });
134
- const onConfirm = () => {
135
- emit("confirm");
134
+ const onConfirm = (value) => {
135
+ emit("confirm", value);
136
136
  };
137
137
  return (_ctx, _cache) => {
138
138
  return openBlock(), createBlock(popout_input_default, mergeProps(unref(partitionedProps)[0], {
@@ -11,7 +11,7 @@ export interface DatetimePickerPopoutEmits extends MotionEmits {
11
11
  (e: 'update:visible', visible: boolean): void;
12
12
  (e: 'update:modelValue', date: Date | string | undefined): void;
13
13
  (e: 'change', date: Date | string | undefined): void;
14
- (e: 'confirm'): void;
14
+ (e: 'confirm', date: Date | string | undefined): void;
15
15
  }
16
16
  export interface DatetimePickerPopoutExpose {
17
17
  }
@@ -13,7 +13,7 @@ declare const __VLS_base: import("vue").DefineComponent<DatetimePickerPopoutProp
13
13
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
14
14
  "update:visible": (visible: boolean) => any;
15
15
  "update:modelValue": (date: string | Date | undefined) => any;
16
- confirm: () => any;
16
+ confirm: (date: string | Date | undefined) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<DatetimePickerPopoutProps> & Readonly<{
18
18
  onChange?: ((date: string | Date | undefined) => any) | undefined;
19
19
  "onBefore-enter"?: ((el: Element) => any) | undefined;
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<DatetimePickerPopoutProp
27
27
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
28
28
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((date: string | Date | undefined) => any) | undefined;
30
- onConfirm?: (() => any) | undefined;
30
+ onConfirm?: ((date: string | Date | undefined) => any) | undefined;
31
31
  }>, {
32
32
  filter: (letter: import("../index.ts").DatetimeLetter, value: number, date: Date, index: number) => boolean;
33
33
  title: string;
@@ -13,7 +13,7 @@ declare const __VLS_base: import("vue").DefineComponent<DatetimeRangePickerInput
13
13
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
14
14
  "update:visible": (visible: boolean) => any;
15
15
  "update:modelValue": (date: (string | Date)[] | undefined) => any;
16
- confirm: () => any;
16
+ confirm: (date: (string | Date)[] | undefined) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<DatetimeRangePickerInputProps> & Readonly<{
18
18
  onChange?: ((date: (string | Date)[] | undefined) => any) | undefined;
19
19
  "onBefore-enter"?: ((el: Element) => any) | undefined;
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<DatetimeRangePickerInput
27
27
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
28
28
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((date: (string | Date)[] | undefined) => any) | undefined;
30
- onConfirm?: (() => any) | undefined;
30
+ onConfirm?: ((date: (string | Date)[] | undefined) => any) | undefined;
31
31
  }>, {
32
32
  filter: (letter: import("../index.ts").DatetimeLetter, value: number, date: Date, index: number) => boolean;
33
33
  title: string;
@@ -141,8 +141,8 @@ var datetime_range_picker_input_default = /*@__PURE__*/ defineComponent({
141
141
  watch(innerValue, () => {
142
142
  inputValue.value = getInputValue();
143
143
  }, { immediate: true });
144
- const onConfirm = () => {
145
- emit("confirm");
144
+ const onConfirm = (date) => {
145
+ emit("confirm", date);
146
146
  };
147
147
  return (_ctx, _cache) => {
148
148
  return openBlock(), createBlock(popout_input_default, mergeProps(unref(partitionedProps)[0], {
@@ -11,7 +11,7 @@ export interface DatetimeRangePickerPopoutEmits extends MotionEmits {
11
11
  (e: 'update:visible', visible: boolean): void;
12
12
  (e: 'update:modelValue', date: (Date | string)[] | undefined): void;
13
13
  (e: 'change', date: (Date | string)[] | undefined): void;
14
- (e: 'confirm'): void;
14
+ (e: 'confirm', date: (Date | string)[] | undefined): void;
15
15
  }
16
16
  export interface DatetimeRangePickerPopoutExpose {
17
17
  }
@@ -13,7 +13,7 @@ declare const __VLS_base: import("vue").DefineComponent<DatetimeRangePickerPopou
13
13
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
14
14
  "update:visible": (visible: boolean) => any;
15
15
  "update:modelValue": (date: (string | Date)[] | undefined) => any;
16
- confirm: () => any;
16
+ confirm: (date: (string | Date)[] | undefined) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<DatetimeRangePickerPopoutProps> & Readonly<{
18
18
  onChange?: ((date: (string | Date)[] | undefined) => any) | undefined;
19
19
  "onBefore-enter"?: ((el: Element) => any) | undefined;
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<DatetimeRangePickerPopou
27
27
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
28
28
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((date: (string | Date)[] | undefined) => any) | undefined;
30
- onConfirm?: (() => any) | undefined;
30
+ onConfirm?: ((date: (string | Date)[] | undefined) => any) | undefined;
31
31
  }>, {
32
32
  filter: (letter: import("../index.ts").DatetimeLetter, value: number, date: Date, index: number) => boolean;
33
33
  title: string;
@@ -13,7 +13,7 @@ declare const __VLS_base: import("vue").DefineComponent<RadioInputProps, {}, {},
13
13
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
14
14
  "update:visible": (visible: boolean) => any;
15
15
  "update:modelValue": (value: any) => any;
16
- confirm: () => any;
16
+ confirm: (value: any) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<RadioInputProps> & Readonly<{
18
18
  onChange?: ((value: any) => any) | undefined;
19
19
  "onBefore-enter"?: ((el: Element) => any) | undefined;
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<RadioInputProps, {}, {},
27
27
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
28
28
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
30
- onConfirm?: (() => any) | undefined;
30
+ onConfirm?: ((value: any) => any) | undefined;
31
31
  }>, {
32
32
  title: string;
33
33
  options: import("../radio/common.ts").RadioGroupOption[];
@@ -136,8 +136,8 @@ var radio_input_default = /*@__PURE__*/ defineComponent({
136
136
  watch([innerValue, () => props.options], () => {
137
137
  inputValue.value = getInputValue();
138
138
  }, { immediate: true });
139
- const onConfirm = () => {
140
- emit("confirm");
139
+ const onConfirm = (value) => {
140
+ emit("confirm", value);
141
141
  };
142
142
  return (_ctx, _cache) => {
143
143
  return openBlock(), createBlock(popout_input_default, mergeProps(unref(partitionedProps)[0], {
@@ -15,7 +15,7 @@ export interface RadioPopoutEmits extends MotionEmits {
15
15
  (e: 'update:visible', visible: boolean): void;
16
16
  (e: 'update:modelValue', value: any): void;
17
17
  (e: 'change', value: any): void;
18
- (e: 'confirm'): void;
18
+ (e: 'confirm', value: any): void;
19
19
  }
20
20
  export interface RadioPopoutExpose {
21
21
  }
@@ -13,7 +13,7 @@ declare const __VLS_base: import("vue").DefineComponent<RadioPopoutProps, {}, {}
13
13
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
14
14
  "update:visible": (visible: boolean) => any;
15
15
  "update:modelValue": (value: any) => any;
16
- confirm: () => any;
16
+ confirm: (value: any) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<RadioPopoutProps> & Readonly<{
18
18
  onChange?: ((value: any) => any) | undefined;
19
19
  "onBefore-enter"?: ((el: Element) => any) | undefined;
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<RadioPopoutProps, {}, {}
27
27
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
28
28
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
30
- onConfirm?: (() => any) | undefined;
30
+ onConfirm?: ((value: any) => any) | undefined;
31
31
  }>, {
32
32
  title: string;
33
33
  options: import("../radio/common.ts").RadioGroupOption[];
@@ -13,7 +13,7 @@ declare const __VLS_base: import("vue").DefineComponent<SelectInputProps, Select
13
13
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
14
14
  "update:visible": (visible: boolean) => any;
15
15
  "update:modelValue": (value: any) => any;
16
- confirm: () => any;
16
+ confirm: (value: any) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<SelectInputProps> & Readonly<{
18
18
  onChange?: ((value: any) => any) | undefined;
19
19
  "onBefore-enter"?: ((el: Element) => any) | undefined;
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<SelectInputProps, Select
27
27
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
28
28
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
30
- onConfirm?: (() => any) | undefined;
30
+ onConfirm?: ((value: any) => any) | undefined;
31
31
  }>, {
32
32
  title: string;
33
33
  multiple: boolean;
@@ -190,8 +190,8 @@ var select_input_default = /*@__PURE__*/ defineComponent({
190
190
  ], () => {
191
191
  inputValue.value = getInputValue();
192
192
  }, { immediate: true });
193
- const onConfirm = () => {
194
- emit("confirm");
193
+ const onConfirm = (value) => {
194
+ emit("confirm", value);
195
195
  };
196
196
  __expose({});
197
197
  return (_ctx, _cache) => {
@@ -11,7 +11,7 @@ export interface SelectPopoutEmits extends MotionEmits {
11
11
  (e: 'update:visible', visible: boolean): void;
12
12
  (e: 'update:modelValue', value: any): void;
13
13
  (e: 'change', value: any): void;
14
- (e: 'confirm'): void;
14
+ (e: 'confirm', value: any): void;
15
15
  }
16
16
  export interface SelectPopoutExpose {
17
17
  }
@@ -13,7 +13,7 @@ declare const __VLS_base: import("vue").DefineComponent<SelectPopoutProps, Selec
13
13
  "visible-hook": (name: import("../index.ts").MotionHookName, el: Element) => any;
14
14
  "update:visible": (visible: boolean) => any;
15
15
  "update:modelValue": (value: any) => any;
16
- confirm: () => any;
16
+ confirm: (value: any) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<SelectPopoutProps> & Readonly<{
18
18
  onChange?: ((value: any) => any) | undefined;
19
19
  "onBefore-enter"?: ((el: Element) => any) | undefined;
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<SelectPopoutProps, Selec
27
27
  "onVisible-hook"?: ((name: import("../index.ts").MotionHookName, el: Element) => any) | undefined;
28
28
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
30
- onConfirm?: (() => any) | undefined;
30
+ onConfirm?: ((value: any) => any) | undefined;
31
31
  }>, {
32
32
  title: string;
33
33
  multiple: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sard",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "sard 是基于 Vue3 的 Web 移动端 UI 组件库",
5
5
  "keywords": [
6
6
  "UI",