@sdata/web-vue 3.12.0 → 3.14.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/dist/sd.css +288 -126
- package/dist/sd.min.css +43 -1
- package/es/_components/input-label/input-label.d.ts +2 -0
- package/es/_components/input-label/input-label.js +4 -2
- package/es/_components/input-label/style/index.css +2 -2
- package/es/_components/picker/input-range.vue.d.ts +6 -7
- package/es/_components/picker/input-range.vue_vue_type_script_setup_true_lang.js +63 -46
- package/es/_components/picker/input.vue.d.ts +5 -6
- package/es/_components/picker/input.vue_vue_type_script_setup_true_lang.js +52 -35
- package/es/_components/picker/style/index.scss +8 -2
- package/es/_components/resize-observer.js +1 -1
- package/es/_components/resize-trigger.vue_vue_type_script_setup_true_lang.js +9 -2
- package/es/_components/select-view/select-view.d.ts +2 -0
- package/es/_components/select-view/select-view.js +5 -1
- package/es/_components/select-view/style/index.css +5 -5
- package/es/_hooks/use-focus-trap.d.ts +10 -0
- package/es/_hooks/use-focus-trap.js +115 -0
- package/es/_hooks/use-readonly-tip.d.ts +11 -0
- package/es/_hooks/use-readonly-tip.js +66 -0
- package/es/_utils/dom.js +1 -10
- package/es/_utils/keyboard.d.ts +4 -0
- package/es/_utils/keyboard.js +21 -2
- package/es/alert/alert.vue.d.ts +2 -2
- package/es/alert/alert.vue_vue_type_script_setup_true_lang.js +12 -3
- package/es/alert/index.d.ts +5 -5
- package/es/alert/style/index.css +1 -1
- package/es/alert/style/index.scss +1 -1
- package/es/anchor/anchor-link.vue_vue_type_script_setup_true_lang.js +3 -1
- package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +2 -0
- package/es/anchor/style/index.css +1 -1
- package/es/anchor/style/index.scss +3 -1
- package/es/auto-complete/auto-complete.d.ts +9 -0
- package/es/auto-complete/auto-complete.js +19 -1
- package/es/auto-complete/index.d.ts +15 -0
- package/es/avatar/avatar.vue_vue_type_script_setup_true_lang.js +8 -2
- package/es/avatar/style/index.css +2 -2
- package/es/avatar/style/index.scss +2 -2
- package/es/back-top/back-top.vue_vue_type_script_setup_true_lang.js +5 -1
- package/es/back-top/style/index.css +1 -1
- package/es/back-top/style/index.scss +2 -1
- package/es/badge/badge.js +4 -1
- package/es/badge/style/index.css +3 -3
- package/es/badge/style/index.scss +3 -3
- package/es/breadcrumb/breadcrumb.js +1 -0
- package/es/button/button.vue.d.ts +16 -7
- package/es/button/button.vue_vue_type_script_setup_true_lang.js +62 -31
- package/es/button/index.d.ts +11 -0
- package/es/button/interface.d.ts +2 -0
- package/es/button/style/index.css +15 -6
- package/es/button/style/index.scss +25 -7
- package/es/calendar/style/event.scss +2 -2
- package/es/calendar/style/index.css +2 -2
- package/es/card/card.d.ts +312 -0
- package/es/card/card.js +39 -7
- package/es/card/index.d.ts +616 -0
- package/es/card/style/index.css +26 -3
- package/es/card/style/index.scss +34 -3
- package/es/carousel/carousel-arrow.vue.d.ts +4 -4
- package/es/carousel/carousel-arrow.vue_vue_type_script_setup_true_lang.js +20 -4
- package/es/carousel/carousel-indicator.vue_vue_type_script_setup_true_lang.js +23 -4
- package/es/carousel/carousel-item.vue_vue_type_script_setup_true_lang.js +8 -1
- package/es/carousel/carousel.js +18 -1
- package/es/carousel/style/index.css +1 -1
- package/es/carousel/style/index.scss +1 -1
- package/es/cascader/cascader.vue.d.ts +9 -8
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +158 -128
- package/es/cascader/style/index.css +2 -2
- package/es/cascader/style/index.scss +3 -1
- package/es/cascader/types.d.ts +1 -0
- package/es/checkbox/checkbox-group.js +4 -1
- package/es/checkbox/checkbox.d.ts +9 -0
- package/es/checkbox/checkbox.js +14 -0
- package/es/checkbox/index.d.ts +15 -0
- package/es/checkbox/style/index.css +1 -1
- package/es/checkbox/style/index.scss +1 -1
- package/es/collapse/collapse-item.js +21 -3
- package/es/collapse/context.d.ts +1 -1
- package/es/color-picker/color-picker.d.ts +9 -0
- package/es/color-picker/color-picker.js +39 -11
- package/es/color-picker/index.d.ts +15 -0
- package/es/config-provider/context.d.ts +9 -9
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +11 -3
- package/es/date-picker/index.d.ts +3 -6
- package/es/date-picker/panels/body.vue_vue_type_script_setup_true_lang.js +14 -1
- package/es/date-picker/picker.vue.d.ts +2 -3
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +6 -5
- package/es/date-picker/range-picker.vue.d.ts +2 -3
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/date-picker/style/index.css +5 -5
- package/es/date-picker/style/index.scss +4 -3
- package/es/drawer/drawer.vue.d.ts +1 -1
- package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +30 -9
- package/es/drawer/index.d.ts +3 -3
- package/es/dropdown/dropdown-option.vue_vue_type_script_setup_true_lang.js +5 -1
- package/es/dropdown/dropdown-panel.vue.d.ts +9 -0
- package/es/dropdown/dropdown-panel.vue_vue_type_script_setup_true_lang.js +75 -2
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/dropdown/style/index.css +1 -1
- package/es/dropdown/style/index.scss +3 -1
- package/es/empty/empty.js +1 -1
- package/es/file-previewer/file-previewer.vue.d.ts +1 -1
- package/es/file-previewer/file-previewer.vue_vue_type_script_setup_true_lang.js +7 -3
- package/es/file-previewer/index.d.ts +3 -3
- package/es/form/context.d.ts +1 -0
- package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +6 -2
- package/es/form/style/index.css +2 -2
- package/es/form/style/index.scss +2 -2
- package/es/image/image.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview-action.d.ts +7 -127
- package/es/image/preview.vue.d.ts +1 -1
- package/es/image/preview.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/index.css +288 -126
- package/es/index.js +3 -3
- package/es/input/index.d.ts +6 -6
- package/es/input/input.d.ts +3 -3
- package/es/input/input.js +34 -8
- package/es/input/style/index.css +2 -2
- package/es/input/style/input.scss +4 -4
- package/es/input-number/index.d.ts +9 -9
- package/es/input-number/input-number.d.ts +5 -5
- package/es/input-number/input-number.js +13 -9
- package/es/input-number/style/index.css +3 -3
- package/es/input-number/style/index.scss +5 -1
- package/es/input-tag/index.d.ts +9 -6
- package/es/input-tag/input-tag.d.ts +5 -3
- package/es/input-tag/input-tag.js +49 -36
- package/es/input-tag/style/index.css +8 -8
- package/es/input-tag/style/index.scss +11 -5
- package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +31 -6
- package/es/layout/style/index.css +2 -2
- package/es/layout/style/index.scss +4 -2
- package/es/link/style/index.css +1 -1
- package/es/link/style/index.scss +3 -1
- package/es/locale/interface.d.ts +1 -0
- package/es/locale/lang/en-us.js +1 -0
- package/es/locale/lang/zh-cn.js +1 -0
- package/es/locale/lang/zh-tw.js +1 -0
- package/es/mention/index.d.ts +15 -0
- package/es/mention/mention.d.ts +9 -0
- package/es/mention/mention.js +20 -1
- package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +30 -4
- package/es/menu/item.js +14 -1
- package/es/menu/style/index.css +6 -6
- package/es/menu/style/index.scss +5 -3
- package/es/message/style/index.css +3 -3
- package/es/message/style/index.scss +5 -3
- package/es/modal/index.d.ts +3 -3
- package/es/modal/modal.vue.d.ts +1 -1
- package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +30 -15
- package/es/modal/style/index.css +2 -2
- package/es/modal/style/index.scss +3 -2
- package/es/notification/style/index.css +3 -3
- package/es/notification/style/index.scss +11 -3
- package/es/page-header/page-header.vue.d.ts +6 -6
- package/es/page-header/page-header.vue_vue_type_script_setup_true_lang.js +12 -1
- package/es/pagination/page-item-ellipsis.vue_vue_type_script_setup_true_lang.js +12 -2
- package/es/pagination/page-item-step.vue.d.ts +2 -2
- package/es/pagination/page-item-step.vue_vue_type_script_setup_true_lang.js +19 -2
- package/es/pagination/page-item.vue.d.ts +2 -2
- package/es/pagination/page-item.vue_vue_type_script_setup_true_lang.js +21 -3
- package/es/pagination/pagination.js +6 -2
- package/es/pagination/style/index.css +6 -1
- package/es/pagination/style/index.scss +9 -3
- package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/popover/popover.vue_vue_type_script_setup_true_lang.js +3 -1
- package/es/progress/style/index.css +2 -2
- package/es/progress/style/index.scss +5 -3
- package/es/qr-code/qr-code-status.vue_vue_type_script_setup_true_lang.js +5 -1
- package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +11 -6
- package/es/radio/context.d.ts +1 -0
- package/es/radio/radio-group.js +6 -2
- package/es/radio/radio.js +1 -0
- package/es/radio/style/index.css +2 -2
- package/es/radio/style/index.scss +4 -2
- package/es/rate/index.d.ts +6 -6
- package/es/rate/rate.d.ts +3 -3
- package/es/rate/rate.js +42 -8
- 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 +30 -1
- package/es/result/result.vue_vue_type_script_setup_true_lang.js +7 -4
- package/es/scrollbar/style/index.css +57 -15
- package/es/scrollbar/style/index.scss +63 -15
- package/es/sd-vue.js +3 -3
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/select/index.d.ts +139 -0
- package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/select/select.d.ts +71 -0
- package/es/select/select.js +45 -6
- package/es/select/style/index.css +1 -1
- package/es/select/style/index.scss +3 -1
- package/es/selectable-card/style/index.css +2 -2
- package/es/selectable-card/style/index.scss +5 -5
- package/es/skeleton/skeleton.vue_vue_type_script_setup_true_lang.js +5 -1
- package/es/slider/slider-button.vue.d.ts +2 -0
- package/es/slider/slider-button.vue_vue_type_script_setup_true_lang.js +7 -2
- package/es/slider/slider.vue_vue_type_script_setup_true_lang.js +23 -2
- package/es/slider/style/index.css +1 -1
- package/es/slider/style/index.scss +3 -1
- package/es/spin/spin.js +7 -2
- package/es/spin/style/index.css +1 -1
- package/es/spin/style/index.scss +1 -1
- package/es/split/split.vue.d.ts +4 -4
- package/es/split/split.vue_vue_type_script_setup_true_lang.js +27 -3
- package/es/steps/context.d.ts +1 -0
- package/es/steps/step.vue_vue_type_script_setup_true_lang.js +15 -2
- package/es/steps/steps.vue_vue_type_script_setup_true_lang.js +6 -1
- package/es/steps/style/index.css +1 -1
- package/es/steps/style/index.scss +1 -1
- package/es/style/animation/index.scss +1 -0
- package/es/style/animation/reduced-motion.scss +22 -0
- package/es/style/animation/zoom.scss +7 -6
- package/es/style/icon.scss +9 -1
- package/es/style/normalize.scss +68 -0
- package/es/switch/style/index.css +1 -1
- package/es/switch/style/index.scss +4 -1
- package/es/switch/switch.vue_vue_type_script_setup_true_lang.js +6 -1
- package/es/table/style/index.css +8 -8
- package/es/table/style/index.scss +11 -8
- package/es/table/table-operation-td.d.ts +15 -0
- package/es/table/table-tbody.js +4 -1
- package/es/table/table-td.js +2 -1
- package/es/table/table-th.js +6 -4
- package/es/table/table-thead.js +4 -1
- package/es/table/table-tr.js +4 -1
- package/es/table/table.js +6 -2
- package/es/tabs/context.d.ts +3 -0
- package/es/tabs/index.d.ts +32 -0
- package/es/tabs/style/index.css +34 -5
- package/es/tabs/style/index.scss +45 -7
- package/es/tabs/tab-pane.vue.d.ts +4 -2
- package/es/tabs/tab-pane.vue_vue_type_script_setup_true_lang.js +39 -4
- package/es/tabs/tabs-nav.js +34 -1
- package/es/tabs/tabs-tab.vue_vue_type_script_setup_true_lang.js +27 -4
- package/es/tabs/tabs.d.ts +19 -0
- package/es/tabs/tabs.js +25 -2
- package/es/tag/index.d.ts +5 -5
- package/es/tag/style/index.css +1 -1
- package/es/tag/style/index.scss +3 -1
- package/es/tag/tag.vue.d.ts +2 -2
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +19 -2
- package/es/textarea/index.d.ts +15 -0
- package/es/textarea/style/index.css +2 -2
- package/es/textarea/textarea.vue.d.ts +11 -2
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +84 -47
- package/es/time-picker/index.d.ts +3 -6
- package/es/time-picker/panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/time-column.vue_vue_type_script_setup_true_lang.js +11 -3
- package/es/time-picker/time-picker.vue.d.ts +2 -3
- package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +12 -6
- package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tooltip/index.d.ts +8 -127
- package/es/tooltip/interface.d.ts +17 -0
- package/es/tooltip/tooltip.vue.d.ts +5 -88
- package/es/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +9 -69
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/transfer/style/index.css +1 -1
- package/es/transfer/style/index.scss +1 -1
- package/es/transfer/transfer-list-item.js +16 -2
- package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +27 -7
- package/es/tree/context.d.ts +2 -0
- package/es/tree/style/index.css +1 -1
- package/es/tree/style/index.scss +1 -1
- package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +82 -3
- package/es/tree-select/tree-select.vue.d.ts +16 -10
- package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +165 -133
- package/es/trigger/index.d.ts +45 -0
- package/es/trigger/trigger.d.ts +27 -0
- package/es/trigger/trigger.js +47 -5
- package/es/typography/base.js +1 -1
- package/es/typography/edit-content.vue_vue_type_script_setup_true_lang.js +11 -8
- package/es/typography/operations.vue_vue_type_script_setup_true_lang.js +38 -6
- package/es/typography/style/index.css +2 -2
- package/es/typography/style/index.scss +2 -2
- package/es/upload/style/index.css +9 -9
- package/es/upload/style/index.scss +15 -9
- package/es/upload/upload-button.js +1 -1
- package/es/upload/upload-list-item.js +18 -5
- package/es/upload/upload-picture-item.js +25 -3
- package/es/verification-code/index.d.ts +15 -6
- package/es/verification-code/verification-code.d.ts +9 -3
- package/es/verification-code/verification-code.js +10 -2
- package/json/vetur-attributes.json +63 -7
- package/json/vetur-tags.json +23 -7
- package/json/web-types.json +131 -10
- package/package.json +1 -1
- package/es/style/base.scss +0 -18
|
@@ -17,6 +17,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
17
17
|
error: BooleanConstructor;
|
|
18
18
|
focused: BooleanConstructor;
|
|
19
19
|
uninjectFormItemContext: BooleanConstructor;
|
|
20
|
+
inputAttrs: PropType<Record<string, unknown>>;
|
|
20
21
|
}>, {
|
|
21
22
|
inputRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
22
23
|
render: () => import("vue/jsx-runtime").JSX.Element;
|
|
@@ -39,6 +40,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
39
40
|
error: BooleanConstructor;
|
|
40
41
|
focused: BooleanConstructor;
|
|
41
42
|
uninjectFormItemContext: BooleanConstructor;
|
|
43
|
+
inputAttrs: PropType<Record<string, unknown>>;
|
|
42
44
|
}>> & Readonly<{
|
|
43
45
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
44
46
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
@@ -29,7 +29,8 @@ var input_label_default = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
size: String,
|
|
30
30
|
error: Boolean,
|
|
31
31
|
focused: Boolean,
|
|
32
|
-
uninjectFormItemContext: Boolean
|
|
32
|
+
uninjectFormItemContext: Boolean,
|
|
33
|
+
inputAttrs: Object
|
|
33
34
|
},
|
|
34
35
|
emits: [
|
|
35
36
|
"update:inputValue",
|
|
@@ -91,13 +92,14 @@ var input_label_default = /* @__PURE__ */ defineComponent({
|
|
|
91
92
|
const wrapperAttrs = computed(() => omit(attrs, INPUT_EVENTS));
|
|
92
93
|
const inputAttrs = computed(() => pick(attrs, INPUT_EVENTS));
|
|
93
94
|
const render = () => {
|
|
95
|
+
var _props$inputAttrs;
|
|
94
96
|
let _slot;
|
|
95
97
|
return createVNode("span", mergeProps(wrapperAttrs.value, {
|
|
96
98
|
"class": cls.value,
|
|
97
99
|
"onMousedown": handleMousedown
|
|
98
100
|
}), [
|
|
99
101
|
slots.prefix && createVNode("span", { "class": `${prefixCls}-prefix` }, [slots.prefix()]),
|
|
100
|
-
createVNode("input", mergeProps(inputAttrs.value, {
|
|
102
|
+
createVNode("input", mergeProps(inputAttrs.value, (_props$inputAttrs = props.inputAttrs) !== null && _props$inputAttrs !== void 0 ? _props$inputAttrs : {}, {
|
|
101
103
|
"ref": inputRef,
|
|
102
104
|
"class": [`${prefixCls}-input`, { [`${prefixCls}-input-hidden`]: !showInput.value }],
|
|
103
105
|
"value": computedInputValue.value,
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
border: 1px solid transparent;
|
|
39
39
|
border-radius: var(--sd-border-radius-small);
|
|
40
40
|
cursor: text;
|
|
41
|
-
transition: color 0.1s cubic-bezier(0, 0, 1, 1), border-color 0.1s cubic-bezier(0, 0, 1, 1), background-color 0.1s cubic-bezier(0, 0, 1, 1);
|
|
41
|
+
transition: color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1), border-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1), background-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
42
42
|
}
|
|
43
43
|
.sd-input-label:hover {
|
|
44
44
|
background-color: var(--sd-color-fill-3);
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
.sd-input-label .sd-input-label-clear-btn > svg {
|
|
125
125
|
position: relative;
|
|
126
|
-
transition: color 0.1s cubic-bezier(0, 0, 1, 1);
|
|
126
|
+
transition: color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
127
127
|
}
|
|
128
128
|
.sd-input-label:hover .sd-input-label-clear-btn {
|
|
129
129
|
visibility: visible;
|
|
@@ -2,13 +2,13 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import { Dayjs } from 'dayjs';
|
|
3
3
|
declare function focus(index?: number): void;
|
|
4
4
|
declare function blur(): void;
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_8: {}, __VLS_10: {}, __VLS_25: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
prefix?: (props: typeof
|
|
7
|
+
prefix?: (props: typeof __VLS_8) => any;
|
|
8
8
|
} & {
|
|
9
|
-
separator?: (props: typeof
|
|
9
|
+
separator?: (props: typeof __VLS_10) => any;
|
|
10
10
|
} & {
|
|
11
|
-
'suffix-icon'?: (props: typeof
|
|
11
|
+
'suffix-icon'?: (props: typeof __VLS_25) => any;
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
14
14
|
size: {
|
|
@@ -28,7 +28,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
30
|
readonly: {
|
|
31
|
-
type: BooleanConstructor;
|
|
31
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
32
32
|
};
|
|
33
33
|
allowClear: {
|
|
34
34
|
type: BooleanConstructor;
|
|
@@ -75,7 +75,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
75
75
|
default: boolean;
|
|
76
76
|
};
|
|
77
77
|
readonly: {
|
|
78
|
-
type: BooleanConstructor;
|
|
78
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
79
79
|
};
|
|
80
80
|
allowClear: {
|
|
81
81
|
type: BooleanConstructor;
|
|
@@ -103,7 +103,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
103
103
|
"onUpdate:focusedIndex"?: ((_index: number) => any) | undefined;
|
|
104
104
|
}>, {
|
|
105
105
|
error: boolean;
|
|
106
|
-
readonly: boolean;
|
|
107
106
|
value: (Dayjs | undefined)[];
|
|
108
107
|
disabled: boolean | boolean[];
|
|
109
108
|
placeholder: string[];
|
|
@@ -5,8 +5,10 @@ import { isArray, isDayjs, isFunction, isNumber, isUndefined } from "../../_util
|
|
|
5
5
|
import icon_hover_default from "../icon-hover.js";
|
|
6
6
|
import IconClose from "../../icon/icon-close/index.js";
|
|
7
7
|
import feedback_icon_default from "../feedback-icon.js";
|
|
8
|
+
import { isReadonlyModificationKey, useReadonlyTip, useReadonlyTipText } from "../../_hooks/use-readonly-tip.js";
|
|
8
9
|
import { useSize } from "../../_hooks/use-size.js";
|
|
9
|
-
import
|
|
10
|
+
import Tooltip from "../../tooltip/index.js";
|
|
11
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, renderSlot, toRef, toRefs, unref, useSlots, withCtx, withKeys } from "vue";
|
|
10
12
|
//#region components/_components/picker/input-range.vue?vue&type=script&setup=true&lang.ts
|
|
11
13
|
var _hoisted_1 = [
|
|
12
14
|
"disabled",
|
|
@@ -29,7 +31,7 @@ var input_range_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
29
31
|
type: [Boolean, Array],
|
|
30
32
|
default: false
|
|
31
33
|
},
|
|
32
|
-
readonly: { type: Boolean },
|
|
34
|
+
readonly: { type: [Boolean, String] },
|
|
33
35
|
allowClear: { type: Boolean },
|
|
34
36
|
placeholder: {
|
|
35
37
|
type: Array,
|
|
@@ -62,6 +64,8 @@ var input_range_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
62
64
|
error
|
|
63
65
|
});
|
|
64
66
|
const { mergedSize } = useSize(_mergedSize);
|
|
67
|
+
const { tipVisible, show: showReadonlyTip } = useReadonlyTip(toRef(props, "readonly"), mergedDisabled);
|
|
68
|
+
const readonlyTipText = useReadonlyTipText(toRef(props, "readonly"));
|
|
65
69
|
const refInput0 = ref();
|
|
66
70
|
const refInput1 = ref();
|
|
67
71
|
const getDisabled = (index) => {
|
|
@@ -110,6 +114,9 @@ var input_range_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
110
114
|
function onPressTab(e) {
|
|
111
115
|
e.preventDefault();
|
|
112
116
|
}
|
|
117
|
+
function onReadonlyKeydown(e) {
|
|
118
|
+
if (props.readonly && !mergedDisabled.value && isReadonlyModificationKey(e)) showReadonlyTip();
|
|
119
|
+
}
|
|
113
120
|
function onClear(e) {
|
|
114
121
|
emit("clear", e);
|
|
115
122
|
}
|
|
@@ -127,51 +134,61 @@ var input_range_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
127
134
|
blur
|
|
128
135
|
});
|
|
129
136
|
return (_ctx, _cache) => {
|
|
130
|
-
return openBlock(),
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
value: displayValue0.value
|
|
141
|
-
}, __props.readonly ? { readonly: true } : {}, {
|
|
142
|
-
onInput: onChange,
|
|
143
|
-
onKeydown: [withKeys(onPressEnter, ["enter"]), withKeys(onPressTab, ["tab"])],
|
|
144
|
-
onClick: _cache[0] || (_cache[0] = () => changeFocusedInput(0))
|
|
145
|
-
}), null, 16, _hoisted_1)], 2),
|
|
146
|
-
createElementVNode("span", { class: normalizeClass(`${unref(prefixCls)}-separator`) }, [renderSlot(_ctx.$slots, "separator", {}, () => [_cache[2] || (_cache[2] = createTextVNode(" - ", -1))])], 2),
|
|
147
|
-
createElementVNode("div", { class: normalizeClass(getInputWrapClassName(1)) }, [createElementVNode("input", mergeProps({
|
|
148
|
-
ref_key: "refInput1",
|
|
149
|
-
ref: refInput1,
|
|
150
|
-
disabled: disabled1.value,
|
|
151
|
-
placeholder: __props.placeholder[1],
|
|
152
|
-
value: displayValue1.value
|
|
153
|
-
}, __props.readonly ? { readonly: true } : {}, {
|
|
154
|
-
onInput: onChange,
|
|
155
|
-
onKeydown: [withKeys(onPressEnter, ["enter"]), withKeys(onPressTab, ["tab"])],
|
|
156
|
-
onClick: _cache[1] || (_cache[1] = () => changeFocusedInput(1))
|
|
157
|
-
}), null, 16, _hoisted_2)], 2),
|
|
158
|
-
createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-suffix`) }, [
|
|
159
|
-
__props.allowClear && !unref(mergedDisabled) && unref(value).length === 2 ? (openBlock(), createBlock(icon_hover_default, {
|
|
137
|
+
return openBlock(), createBlock(unref(Tooltip), {
|
|
138
|
+
"popup-visible": unref(tipVisible),
|
|
139
|
+
content: unref(readonlyTipText),
|
|
140
|
+
position: "top"
|
|
141
|
+
}, {
|
|
142
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
143
|
+
class: normalizeClass(classNames.value),
|
|
144
|
+
onKeydown: onReadonlyKeydown
|
|
145
|
+
}, [
|
|
146
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", {
|
|
160
147
|
key: 0,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
148
|
+
class: normalizeClass(`${unref(prefixCls)}-prefix`)
|
|
149
|
+
}, [renderSlot(_ctx.$slots, "prefix")], 2)) : createCommentVNode("", true),
|
|
150
|
+
createElementVNode("div", { class: normalizeClass(getInputWrapClassName(0)) }, [createElementVNode("input", mergeProps({
|
|
151
|
+
ref_key: "refInput0",
|
|
152
|
+
ref: refInput0,
|
|
153
|
+
disabled: disabled0.value,
|
|
154
|
+
placeholder: __props.placeholder[0],
|
|
155
|
+
value: displayValue0.value
|
|
156
|
+
}, __props.readonly ? { readonly: true } : {}, {
|
|
157
|
+
onInput: onChange,
|
|
158
|
+
onKeydown: [withKeys(onPressEnter, ["enter"]), withKeys(onPressTab, ["tab"])],
|
|
159
|
+
onClick: _cache[0] || (_cache[0] = () => changeFocusedInput(0))
|
|
160
|
+
}), null, 16, _hoisted_1)], 2),
|
|
161
|
+
createElementVNode("span", { class: normalizeClass(`${unref(prefixCls)}-separator`) }, [renderSlot(_ctx.$slots, "separator", {}, () => [_cache[2] || (_cache[2] = createTextVNode(" - ", -1))])], 2),
|
|
162
|
+
createElementVNode("div", { class: normalizeClass(getInputWrapClassName(1)) }, [createElementVNode("input", mergeProps({
|
|
163
|
+
ref_key: "refInput1",
|
|
164
|
+
ref: refInput1,
|
|
165
|
+
disabled: disabled1.value,
|
|
166
|
+
placeholder: __props.placeholder[1],
|
|
167
|
+
value: displayValue1.value
|
|
168
|
+
}, __props.readonly ? { readonly: true } : {}, {
|
|
169
|
+
onInput: onChange,
|
|
170
|
+
onKeydown: [withKeys(onPressEnter, ["enter"]), withKeys(onPressTab, ["tab"])],
|
|
171
|
+
onClick: _cache[1] || (_cache[1] = () => changeFocusedInput(1))
|
|
172
|
+
}), null, 16, _hoisted_2)], 2),
|
|
173
|
+
createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-suffix`) }, [
|
|
174
|
+
__props.allowClear && !unref(mergedDisabled) && unref(value).length === 2 ? (openBlock(), createBlock(icon_hover_default, {
|
|
175
|
+
key: 0,
|
|
176
|
+
prefix: unref(prefixCls),
|
|
177
|
+
class: normalizeClass(`${unref(prefixCls)}-clear-icon`),
|
|
178
|
+
onClick: onClear
|
|
179
|
+
}, {
|
|
180
|
+
default: withCtx(() => [createVNode(unref(IconClose))]),
|
|
181
|
+
_: 1
|
|
182
|
+
}, 8, ["prefix", "class"])) : createCommentVNode("", true),
|
|
183
|
+
createElementVNode("span", { class: normalizeClass(`${unref(prefixCls)}-suffix-icon`) }, [renderSlot(_ctx.$slots, "suffix-icon")], 2),
|
|
184
|
+
unref(feedback) ? (openBlock(), createBlock(feedback_icon_default, {
|
|
185
|
+
key: 1,
|
|
186
|
+
type: unref(feedback)
|
|
187
|
+
}, null, 8, ["type"])) : createCommentVNode("", true)
|
|
188
|
+
], 2)
|
|
189
|
+
], 34)]),
|
|
190
|
+
_: 3
|
|
191
|
+
}, 8, ["popup-visible", "content"]);
|
|
175
192
|
};
|
|
176
193
|
}
|
|
177
194
|
}));
|
|
@@ -2,11 +2,11 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import { Dayjs } from 'dayjs';
|
|
3
3
|
declare function focus(): void;
|
|
4
4
|
declare function blur(): void;
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_8: {}, __VLS_23: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
prefix?: (props: typeof
|
|
7
|
+
prefix?: (props: typeof __VLS_8) => any;
|
|
8
8
|
} & {
|
|
9
|
-
'suffix-icon'?: (props: typeof
|
|
9
|
+
'suffix-icon'?: (props: typeof __VLS_23) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
12
|
size: {
|
|
@@ -19,7 +19,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
19
19
|
type: BooleanConstructor;
|
|
20
20
|
};
|
|
21
21
|
readonly: {
|
|
22
|
-
type: BooleanConstructor;
|
|
22
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
23
23
|
};
|
|
24
24
|
error: {
|
|
25
25
|
type: BooleanConstructor;
|
|
@@ -59,7 +59,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
59
59
|
type: BooleanConstructor;
|
|
60
60
|
};
|
|
61
61
|
readonly: {
|
|
62
|
-
type: BooleanConstructor;
|
|
62
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
63
63
|
};
|
|
64
64
|
error: {
|
|
65
65
|
type: BooleanConstructor;
|
|
@@ -87,7 +87,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
87
87
|
"onPress-enter"?: (() => any) | undefined;
|
|
88
88
|
}>, {
|
|
89
89
|
error: boolean;
|
|
90
|
-
readonly: boolean;
|
|
91
90
|
disabled: boolean;
|
|
92
91
|
allowClear: boolean;
|
|
93
92
|
focused: boolean;
|
|
@@ -5,8 +5,10 @@ import { isDayjs, isFunction } from "../../_utils/is.js";
|
|
|
5
5
|
import icon_hover_default from "../icon-hover.js";
|
|
6
6
|
import IconClose from "../../icon/icon-close/index.js";
|
|
7
7
|
import feedback_icon_default from "../feedback-icon.js";
|
|
8
|
+
import { isReadonlyModificationKey, useReadonlyTip, useReadonlyTipText } from "../../_hooks/use-readonly-tip.js";
|
|
8
9
|
import { useSize } from "../../_hooks/use-size.js";
|
|
9
|
-
import
|
|
10
|
+
import Tooltip from "../../tooltip/index.js";
|
|
11
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, renderSlot, toRef, toRefs, unref, useSlots, withCtx, withKeys } from "vue";
|
|
10
12
|
//#region components/_components/picker/input.vue?vue&type=script&setup=true&lang.ts
|
|
11
13
|
var _hoisted_1 = [
|
|
12
14
|
"disabled",
|
|
@@ -19,7 +21,7 @@ var input_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
19
21
|
size: { type: String },
|
|
20
22
|
focused: { type: Boolean },
|
|
21
23
|
disabled: { type: Boolean },
|
|
22
|
-
readonly: { type: Boolean },
|
|
24
|
+
readonly: { type: [Boolean, String] },
|
|
23
25
|
error: { type: Boolean },
|
|
24
26
|
allowClear: { type: Boolean },
|
|
25
27
|
placeholder: { type: String },
|
|
@@ -47,6 +49,8 @@ var input_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
47
49
|
error
|
|
48
50
|
});
|
|
49
51
|
const { mergedSize } = useSize(_mergedSize);
|
|
52
|
+
const { tipVisible, show: showReadonlyTip } = useReadonlyTip(toRef(props, "readonly"), mergedDisabled);
|
|
53
|
+
const readonlyTipText = useReadonlyTipText(toRef(props, "readonly"));
|
|
50
54
|
const prefixCls = getPrefixCls("picker");
|
|
51
55
|
const classNames = computed(() => [
|
|
52
56
|
prefixCls,
|
|
@@ -75,6 +79,9 @@ var input_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
75
79
|
function onBlur(e) {
|
|
76
80
|
emit("blur", e);
|
|
77
81
|
}
|
|
82
|
+
function onReadonlyKeydown(e) {
|
|
83
|
+
if (props.readonly && !mergedDisabled.value && isReadonlyModificationKey(e)) showReadonlyTip();
|
|
84
|
+
}
|
|
78
85
|
function focus() {
|
|
79
86
|
refInput.value && refInput.value.focus && refInput.value.focus();
|
|
80
87
|
}
|
|
@@ -86,40 +93,50 @@ var input_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
86
93
|
blur
|
|
87
94
|
});
|
|
88
95
|
return (_ctx, _cache) => {
|
|
89
|
-
return openBlock(),
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
class: `${unref(prefixCls)}-start-time`,
|
|
100
|
-
value: displayValue.value
|
|
101
|
-
}, __props.readonly ? { readonly: true } : {}, {
|
|
102
|
-
onKeydown: withKeys(onPressEnter, ["enter"]),
|
|
103
|
-
onInput: onChange,
|
|
104
|
-
onBlur
|
|
105
|
-
}), null, 16, _hoisted_1)], 2),
|
|
106
|
-
createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-suffix`) }, [
|
|
107
|
-
__props.allowClear && !unref(mergedDisabled) && displayValue.value ? (openBlock(), createBlock(icon_hover_default, {
|
|
96
|
+
return openBlock(), createBlock(unref(Tooltip), {
|
|
97
|
+
"popup-visible": unref(tipVisible),
|
|
98
|
+
content: unref(readonlyTipText),
|
|
99
|
+
position: "top"
|
|
100
|
+
}, {
|
|
101
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
102
|
+
class: normalizeClass(classNames.value),
|
|
103
|
+
onKeydown: onReadonlyKeydown
|
|
104
|
+
}, [
|
|
105
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", {
|
|
108
106
|
key: 0,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
107
|
+
class: normalizeClass(`${unref(prefixCls)}-prefix`)
|
|
108
|
+
}, [renderSlot(_ctx.$slots, "prefix")], 2)) : createCommentVNode("", true),
|
|
109
|
+
createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-input`) }, [createElementVNode("input", mergeProps({
|
|
110
|
+
ref_key: "refInput",
|
|
111
|
+
ref: refInput,
|
|
112
|
+
disabled: unref(mergedDisabled),
|
|
113
|
+
placeholder: __props.placeholder,
|
|
114
|
+
class: `${unref(prefixCls)}-start-time`,
|
|
115
|
+
value: displayValue.value
|
|
116
|
+
}, __props.readonly ? { readonly: true } : {}, {
|
|
117
|
+
onKeydown: withKeys(onPressEnter, ["enter"]),
|
|
118
|
+
onInput: onChange,
|
|
119
|
+
onBlur
|
|
120
|
+
}), null, 16, _hoisted_1)], 2),
|
|
121
|
+
createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-suffix`) }, [
|
|
122
|
+
__props.allowClear && !unref(mergedDisabled) && displayValue.value ? (openBlock(), createBlock(icon_hover_default, {
|
|
123
|
+
key: 0,
|
|
124
|
+
prefix: unref(prefixCls),
|
|
125
|
+
class: normalizeClass(`${unref(prefixCls)}-clear-icon`),
|
|
126
|
+
onClick: onClear
|
|
127
|
+
}, {
|
|
128
|
+
default: withCtx(() => [createVNode(unref(IconClose))]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 8, ["prefix", "class"])) : createCommentVNode("", true),
|
|
131
|
+
createElementVNode("span", { class: normalizeClass(`${unref(prefixCls)}-suffix-icon`) }, [renderSlot(_ctx.$slots, "suffix-icon")], 2),
|
|
132
|
+
unref(feedback) ? (openBlock(), createBlock(feedback_icon_default, {
|
|
133
|
+
key: 1,
|
|
134
|
+
type: unref(feedback)
|
|
135
|
+
}, null, 8, ["type"])) : createCommentVNode("", true)
|
|
136
|
+
], 2)
|
|
137
|
+
], 34)]),
|
|
138
|
+
_: 3
|
|
139
|
+
}, 8, ["popup-visible", "content"]);
|
|
123
140
|
};
|
|
124
141
|
}
|
|
125
142
|
}));
|
|
@@ -15,7 +15,11 @@
|
|
|
15
15
|
background-color: $picker-color-bg;
|
|
16
16
|
border: 1px solid $picker-color-border;
|
|
17
17
|
border-radius: $picker-input-border-radius;
|
|
18
|
-
transition:
|
|
18
|
+
transition:
|
|
19
|
+
color theme.$transition-duration-1 theme.$transition-timing-function-standard,
|
|
20
|
+
background-color theme.$transition-duration-1 theme.$transition-timing-function-standard,
|
|
21
|
+
border-color theme.$transition-duration-1 theme.$transition-timing-function-standard,
|
|
22
|
+
box-shadow theme.$transition-duration-1 theme.$transition-timing-function-standard;
|
|
19
23
|
|
|
20
24
|
&-input {
|
|
21
25
|
display: inline-flex;
|
|
@@ -32,7 +36,9 @@
|
|
|
32
36
|
background-color: global.$color-transparent;
|
|
33
37
|
border: none;
|
|
34
38
|
outline: none;
|
|
35
|
-
transition:
|
|
39
|
+
transition:
|
|
40
|
+
color theme.$transition-duration-1 theme.$transition-timing-function-standard,
|
|
41
|
+
background-color theme.$transition-duration-1 theme.$transition-timing-function-standard;
|
|
36
42
|
|
|
37
43
|
&::placeholder {
|
|
38
44
|
color: $picker-color-placeholder;
|
|
@@ -11,7 +11,7 @@ var resize_observer_default = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
const componentRef = ref();
|
|
12
12
|
const element = computed(() => isComponentInstance(componentRef.value) ? componentRef.value.$el : componentRef.value);
|
|
13
13
|
const createResizeObserver = (target) => {
|
|
14
|
-
if (!target) return;
|
|
14
|
+
if (!target || target.nodeType !== 1) return;
|
|
15
15
|
resizeObserver = new ResizeObserver((entries) => {
|
|
16
16
|
const entry = entries[0];
|
|
17
17
|
emit("resize", entry);
|
|
@@ -4,6 +4,7 @@ import IconDragDotVertical from "../icon/icon-drag-dot-vertical/index.js";
|
|
|
4
4
|
import IconDragDot from "../icon/icon-drag-dot/index.js";
|
|
5
5
|
import { computed, createBlock, createElementVNode, defineComponent, normalizeClass, openBlock, renderSlot, toRefs, unref, withCtx } from "vue";
|
|
6
6
|
//#region components/_components/resize-trigger.vue?vue&type=script&setup=true&lang.tsx
|
|
7
|
+
var _hoisted_1 = ["aria-orientation"];
|
|
7
8
|
var resize_trigger_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "ResizeTrigger" }), {}, {
|
|
8
9
|
__name: "resize-trigger",
|
|
9
10
|
props: {
|
|
@@ -30,13 +31,19 @@ var resize_trigger_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
30
31
|
};
|
|
31
32
|
return (_ctx, _cache) => {
|
|
32
33
|
return openBlock(), createBlock(unref(resize_observer_default), { onResize }, {
|
|
33
|
-
default: withCtx(() => [createElementVNode("div", {
|
|
34
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
35
|
+
class: normalizeClass(classNames.value),
|
|
36
|
+
role: "separator",
|
|
37
|
+
tabindex: "0",
|
|
38
|
+
"aria-orientation": unref(direction),
|
|
39
|
+
"aria-label": "Resize"
|
|
40
|
+
}, [renderSlot(_ctx.$slots, "default", {}, () => [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-icon-wrapper`) }, [renderSlot(_ctx.$slots, "icon", {}, () => [isHorizontal.value ? (openBlock(), createBlock(unref(IconDragDot), {
|
|
34
41
|
key: 0,
|
|
35
42
|
class: normalizeClass(`${unref(prefixCls)}-icon`)
|
|
36
43
|
}, null, 8, ["class"])) : (openBlock(), createBlock(unref(IconDragDotVertical), {
|
|
37
44
|
key: 1,
|
|
38
45
|
class: normalizeClass(`${unref(prefixCls)}-icon`)
|
|
39
|
-
}, null, 8, ["class"]))])], 2)])],
|
|
46
|
+
}, null, 8, ["class"]))])], 2)])], 10, _hoisted_1)]),
|
|
40
47
|
_: 3
|
|
41
48
|
});
|
|
42
49
|
};
|
|
@@ -64,6 +64,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
64
64
|
type: BooleanConstructor;
|
|
65
65
|
default: boolean;
|
|
66
66
|
};
|
|
67
|
+
inputAttrs: PropType<Record<string, unknown>>;
|
|
67
68
|
}>, {
|
|
68
69
|
inputRef: import("vue").ComputedRef<HTMLInputElement>;
|
|
69
70
|
handleFocus: (ev: FocusEvent) => void;
|
|
@@ -134,6 +135,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
134
135
|
type: BooleanConstructor;
|
|
135
136
|
default: boolean;
|
|
136
137
|
};
|
|
138
|
+
inputAttrs: PropType<Record<string, unknown>>;
|
|
137
139
|
}>> & Readonly<{
|
|
138
140
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
139
141
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
@@ -73,7 +73,8 @@ var select_view_default = /* @__PURE__ */ defineComponent({
|
|
|
73
73
|
retainInputValue: {
|
|
74
74
|
type: Boolean,
|
|
75
75
|
default: false
|
|
76
|
-
}
|
|
76
|
+
},
|
|
77
|
+
inputAttrs: Object
|
|
77
78
|
},
|
|
78
79
|
emits: [
|
|
79
80
|
"remove",
|
|
@@ -132,6 +133,7 @@ var select_view_default = /* @__PURE__ */ defineComponent({
|
|
|
132
133
|
showClearBtn.value && createVNode("button", {
|
|
133
134
|
"type": "button",
|
|
134
135
|
"class": `${prefixCls}-clear-btn`,
|
|
136
|
+
"aria-label": "Clear",
|
|
135
137
|
"onClick": handleClear,
|
|
136
138
|
"onMousedown": (ev) => ev.stopPropagation()
|
|
137
139
|
}, [createVNode(icon_hover_default, null, { default: () => [createVNode(IconClose, null, null)] })]),
|
|
@@ -165,6 +167,7 @@ var select_view_default = /* @__PURE__ */ defineComponent({
|
|
|
165
167
|
"tagNowrap": props.tagNowrap,
|
|
166
168
|
"retainInputValue": true,
|
|
167
169
|
"uninjectFormItemContext": true,
|
|
170
|
+
"inputAttrs": props.inputAttrs,
|
|
168
171
|
"onRemove": handleRemove,
|
|
169
172
|
"onFocus": handleFocus,
|
|
170
173
|
"onBlur": handleBlur
|
|
@@ -187,6 +190,7 @@ var select_view_default = /* @__PURE__ */ defineComponent({
|
|
|
187
190
|
"error": mergedError.value,
|
|
188
191
|
"enabledInput": enabledInput.value,
|
|
189
192
|
"uninjectFormItemContext": true,
|
|
193
|
+
"inputAttrs": props.inputAttrs,
|
|
190
194
|
"onFocus": handleFocus,
|
|
191
195
|
"onBlur": handleBlur
|
|
192
196
|
}, {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
.sd-tag-checkable {
|
|
46
46
|
cursor: pointer;
|
|
47
|
-
transition:
|
|
47
|
+
transition: background-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1), border-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
48
48
|
}
|
|
49
49
|
.sd-tag-checkable:hover {
|
|
50
50
|
background-color: var(--sd-color-fill-2);
|
|
@@ -495,7 +495,7 @@
|
|
|
495
495
|
border: 1px solid transparent;
|
|
496
496
|
border-radius: var(--sd-border-radius-small);
|
|
497
497
|
cursor: text;
|
|
498
|
-
transition: color 0.1s cubic-bezier(0, 0, 1, 1), border-color 0.1s cubic-bezier(0, 0, 1, 1), background-color 0.1s cubic-bezier(0, 0, 1, 1);
|
|
498
|
+
transition: color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1), border-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1), background-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
499
499
|
}
|
|
500
500
|
.sd-select-view-single:hover {
|
|
501
501
|
background-color: var(--sd-color-fill-3);
|
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
}
|
|
581
581
|
.sd-select-view-single .sd-select-view-clear-btn > svg {
|
|
582
582
|
position: relative;
|
|
583
|
-
transition: color 0.1s cubic-bezier(0, 0, 1, 1);
|
|
583
|
+
transition: color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
584
584
|
}
|
|
585
585
|
.sd-select-view-single:hover .sd-select-view-clear-btn {
|
|
586
586
|
visibility: visible;
|
|
@@ -692,7 +692,7 @@
|
|
|
692
692
|
border: 1px solid transparent;
|
|
693
693
|
border-radius: var(--sd-border-radius-small);
|
|
694
694
|
cursor: text;
|
|
695
|
-
transition: color 0.1s cubic-bezier(0, 0, 1, 1), border-color 0.1s cubic-bezier(0, 0, 1, 1), background-color 0.1s cubic-bezier(0, 0, 1, 1);
|
|
695
|
+
transition: color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1), border-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1), background-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
696
696
|
}
|
|
697
697
|
.sd-select-view-multiple:hover {
|
|
698
698
|
background-color: var(--sd-color-fill-3);
|
|
@@ -777,7 +777,7 @@
|
|
|
777
777
|
}
|
|
778
778
|
.sd-select-view-multiple .sd-select-view-clear-btn > svg {
|
|
779
779
|
position: relative;
|
|
780
|
-
transition: color 0.1s cubic-bezier(0, 0, 1, 1);
|
|
780
|
+
transition: color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
781
781
|
}
|
|
782
782
|
.sd-select-view-multiple:hover .sd-select-view-clear-btn {
|
|
783
783
|
visibility: visible;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
export declare const getFocusableElements: (container: HTMLElement) => HTMLElement[];
|
|
3
|
+
export interface UseFocusTrapOptions {
|
|
4
|
+
initialFocus?: (container: HTMLElement) => HTMLElement | null | undefined;
|
|
5
|
+
}
|
|
6
|
+
export interface UseFocusTrapReturn {
|
|
7
|
+
activate: () => void;
|
|
8
|
+
deactivate: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const useFocusTrap: (containerRef: Ref<HTMLElement | undefined>, options?: UseFocusTrapOptions) => UseFocusTrapReturn;
|