@cedar-design/ui-vue 1.1.0 → 1.1.1
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/es/_components/field-presentation/EditorPanel.vue.mjs +1 -1
- package/es/_components/field-presentation/editor-pending.mjs +4 -0
- package/es/_components/field-presentation/with-field-presentation.mjs +33 -7
- package/es/_components/picker-field/PickerField.vue.mjs +6 -12
- package/es/_components/picker-field/range-labels.mjs +16 -0
- package/es/_components/selected-options/style/index.css +33 -15
- package/es/_components/selection-field/use-selection-session.mjs +1 -0
- package/es/_components/virtual-list-v2/VirtualList2.vue.mjs +21 -3
- package/es/_utils/modal-focus.mjs +9 -2
- package/es/_utils/modal-surface.mjs +9 -3
- package/es/anchor/style/index.css +1 -1
- package/es/auto-complete/auto-complete.mjs +2 -2
- package/es/auto-complete/presentation.mjs +1 -0
- package/es/auto-complete/props.mjs +2 -0
- package/es/auto-complete/style/index.css +7 -2
- package/es/back-top/style/index.css +1 -1
- package/es/button/base.mjs +6 -0
- package/es/button/index.mjs +8 -8
- package/es/button/style/index.css +1 -1
- package/es/card/Card.vue.mjs +46 -12
- package/es/carousel/style/index.css +1 -1
- package/es/cascader/CascaderMenu.vue.mjs +2 -2
- package/es/cascader/cascader-option.mjs +11 -6
- package/es/cascader/field-adapter.mjs +1 -0
- package/es/cascader/props.mjs +2 -0
- package/es/cascader/style/index.css +36 -9
- package/es/cascader/use-cascader-focus.mjs +9 -6
- package/es/cedar.css +187 -79
- package/es/cedar.esm.js +21694 -21413
- package/es/checkbox/base.mjs +6 -0
- package/es/checkbox/checkbox-group.vue.mjs +2 -2
- package/es/checkbox/index.mjs +1 -1
- package/es/checkbox/presentation.mjs +2 -2
- package/es/checkbox/style/index.css +1 -1
- package/es/countdown/use-countdown.mjs +7 -2
- package/es/date/DatePanelActions.vue.mjs +1 -1
- package/es/date/DateShortcuts.vue.mjs +1 -1
- package/es/date/picker/panels/Footer2.vue.mjs +1 -1
- package/es/date/picker/panels/Shortcuts2.vue.mjs +1 -1
- package/es/date/picker/style/index.css +1 -1
- package/es/dialog/Dialog.vue.mjs +1 -1
- package/es/ellipsis/style/index.css +1 -1
- package/es/form/FormItem2.vue.mjs +35 -7
- package/es/form/FormItemLabel.vue.mjs +4 -3
- package/es/form/focus-explicit-label.mjs +28 -0
- package/es/form/style/index.css +1 -1
- package/es/input/base.mjs +7 -0
- package/es/input/index.mjs +16 -16
- package/es/layout/style/index.css +1 -1
- package/es/nav-menu/style/index.css +1 -1
- package/es/pagination/PageInput.vue.mjs +2 -2
- package/es/pagination/style/index.css +2 -2
- package/es/people-select/PeopleSelect.mjs +23 -50
- package/es/people-select/Person.vue.mjs +1 -1
- package/es/people-select/emits.mjs +1 -1
- package/es/people-select/people-select.mjs +6 -8
- package/es/people-select/presentation.mjs +3 -1
- package/es/people-select/props.mjs +9 -3
- package/es/people-select/selection.mjs +43 -0
- package/es/people-select/style/index.css +6 -0
- package/es/progress/style/index.css +2 -2
- package/es/radio/style/index.css +1 -1
- package/es/rate/style/index.css +1 -1
- package/es/ripple/index.mjs +57 -1
- package/es/scheduler/style/index.css +1 -1
- package/es/search/HistoryContent.vue.mjs +3 -3
- package/es/search/props.mjs +0 -1
- package/es/search/search.vue.mjs +1 -1
- package/es/select/props.mjs +2 -0
- package/es/select/select.mjs +10 -4
- package/es/select/style/index.css +22 -12
- package/es/select/use-select-controller.mjs +14 -2
- package/es/slider/Slider.vue.mjs +39 -21
- package/es/slider/SliderInput.vue.mjs +4 -2
- package/es/slider/style/index.css +2 -2
- package/es/steps/style/index.css +10 -10
- package/es/switch/Switch.vue.mjs +6 -1
- package/es/switch/style/index.css +1 -1
- package/es/table/structural-slot.mjs +17 -0
- package/es/table/style/index.css +2 -2
- package/es/table/table-tbody.mjs +2 -1
- package/es/table/table-td.mjs +3 -2
- package/es/table/table-th.mjs +3 -2
- package/es/table/table-thead.mjs +2 -1
- package/es/table/table-tr.mjs +3 -2
- package/es/table/table.mjs +22 -5
- package/es/tabs/style/index.css +1 -1
- package/es/time/picker/Panel2.vue.mjs +1 -1
- package/es/time/picker/RangePanel2.vue.mjs +1 -1
- package/es/tree/style/index.css +1 -1
- package/es/tree-select/panel.mjs +3 -1
- package/es/tree-select/presentation.mjs +1 -0
- package/es/tree-select/props.mjs +2 -0
- package/es/tree-select/style/index.css +49 -7
- package/es/trigger/interaction.mjs +1 -1
- package/es/trigger/popup-move-focus.mjs +6 -6
- package/es/trigger/position.mjs +41 -3
- package/es/trigger/positioner.mjs +28 -5
- package/es/trigger/trigger.mjs +1 -1
- package/es/upload/composables/use-upload-queue.mjs +9 -1
- package/es/upload/composables/use-uploader.mjs +31 -11
- package/es/upload/upload.vue.mjs +10 -2
- package/lib/_components/field-presentation/EditorPanel.vue.js +3 -3
- package/lib/_components/field-presentation/editor-pending.js +4 -0
- package/lib/_components/field-presentation/with-field-presentation.js +32 -6
- package/lib/_components/picker-field/PickerField.vue.js +6 -12
- package/lib/_components/picker-field/range-labels.js +16 -0
- package/lib/_components/selected-options/style/index.css +33 -15
- package/lib/_components/selection-field/use-selection-session.js +1 -0
- package/lib/_components/virtual-list-v2/VirtualList2.vue.js +20 -2
- package/lib/_utils/modal-focus.js +9 -2
- package/lib/_utils/modal-surface.js +9 -3
- package/lib/anchor/style/index.css +1 -1
- package/lib/auto-complete/auto-complete.js +2 -2
- package/lib/auto-complete/presentation.js +1 -0
- package/lib/auto-complete/props.js +2 -0
- package/lib/auto-complete/style/index.css +7 -2
- package/lib/back-top/style/index.css +1 -1
- package/lib/button/base.js +6 -0
- package/lib/button/index.js +4 -4
- package/lib/button/style/index.css +1 -1
- package/lib/card/Card.vue.js +47 -13
- package/lib/carousel/style/index.css +1 -1
- package/lib/cascader/CascaderMenu.vue.js +2 -2
- package/lib/cascader/cascader-option.js +11 -6
- package/lib/cascader/field-adapter.js +1 -0
- package/lib/cascader/props.js +2 -0
- package/lib/cascader/style/index.css +36 -9
- package/lib/cascader/use-cascader-focus.js +9 -6
- package/lib/cedar.cjs.js +1149 -738
- package/lib/cedar.css +187 -79
- package/lib/checkbox/base.js +6 -0
- package/lib/checkbox/index.js +4 -4
- package/lib/checkbox/presentation.js +2 -2
- package/lib/checkbox/style/index.css +1 -1
- package/lib/countdown/use-countdown.js +7 -2
- package/lib/date/DatePanelActions.vue.js +3 -3
- package/lib/date/DateShortcuts.vue.js +2 -2
- package/lib/date/picker/panels/Footer2.vue.js +2 -2
- package/lib/date/picker/panels/Shortcuts2.vue.js +2 -2
- package/lib/date/picker/style/index.css +1 -1
- package/lib/dialog/Dialog.vue.js +3 -3
- package/lib/ellipsis/style/index.css +1 -1
- package/lib/form/FormItem2.vue.js +35 -7
- package/lib/form/FormItemLabel.vue.js +3 -2
- package/lib/form/focus-explicit-label.js +28 -0
- package/lib/form/style/index.css +1 -1
- package/lib/input/base.js +7 -0
- package/lib/input/index.js +4 -4
- package/lib/layout/style/index.css +1 -1
- package/lib/nav-menu/style/index.css +1 -1
- package/lib/pagination/PageInput.vue.js +2 -2
- package/lib/pagination/style/index.css +2 -2
- package/lib/people-select/PeopleSelect.js +22 -49
- package/lib/people-select/Person.vue.js +3 -3
- package/lib/people-select/emits.js +1 -1
- package/lib/people-select/people-select.js +6 -8
- package/lib/people-select/presentation.js +3 -1
- package/lib/people-select/props.js +9 -3
- package/lib/people-select/selection.js +43 -0
- package/lib/people-select/style/index.css +6 -0
- package/lib/progress/style/index.css +2 -2
- package/lib/radio/style/index.css +1 -1
- package/lib/rate/style/index.css +1 -1
- package/lib/ripple/index.js +57 -1
- package/lib/scheduler/style/index.css +1 -1
- package/lib/search/HistoryContent.vue.js +4 -4
- package/lib/search/props.js +0 -1
- package/lib/search/search.vue.js +2 -2
- package/lib/select/props.js +2 -0
- package/lib/select/select.js +10 -4
- package/lib/select/style/index.css +22 -12
- package/lib/select/use-select-controller.js +14 -2
- package/lib/slider/Slider.vue.js +38 -20
- package/lib/slider/SliderInput.vue.js +4 -2
- package/lib/slider/style/index.css +2 -2
- package/lib/steps/style/index.css +10 -10
- package/lib/switch/Switch.vue.js +5 -0
- package/lib/switch/style/index.css +1 -1
- package/lib/table/structural-slot.js +17 -0
- package/lib/table/style/index.css +2 -2
- package/lib/table/table-tbody.js +2 -1
- package/lib/table/table-td.js +3 -2
- package/lib/table/table-th.js +3 -2
- package/lib/table/table-thead.js +2 -1
- package/lib/table/table-tr.js +3 -2
- package/lib/table/table.js +21 -4
- package/lib/tabs/style/index.css +1 -1
- package/lib/time/picker/Panel2.vue.js +2 -2
- package/lib/time/picker/RangePanel2.vue.js +2 -2
- package/lib/tree/style/index.css +1 -1
- package/lib/tree-select/panel.js +3 -1
- package/lib/tree-select/presentation.js +1 -0
- package/lib/tree-select/props.js +2 -0
- package/lib/tree-select/style/index.css +49 -7
- package/lib/trigger/popup-move-focus.js +6 -6
- package/lib/trigger/position.js +40 -2
- package/lib/trigger/positioner.js +27 -4
- package/lib/trigger/trigger.js +1 -1
- package/lib/upload/composables/use-upload-queue.js +9 -1
- package/lib/upload/composables/use-uploader.js +31 -11
- package/lib/upload/upload.vue.js +9 -1
- package/package.json +6 -6
- package/types/_components/field-presentation/editor-pending.d.ts +3 -0
- package/types/_components/field-presentation/with-field-presentation.d.ts +2 -0
- package/types/_components/picker-field/range-labels.d.ts +1 -0
- package/types/_utils/modal-focus.d.ts +1 -0
- package/types/auto-complete/auto-complete.d.ts +9 -0
- package/types/auto-complete/index.d.ts +30 -0
- package/types/auto-complete/presentation.d.ts +9 -0
- package/types/auto-complete/props.d.ts +5 -0
- package/types/button/base.d.ts +266 -0
- package/types/button/index.d.ts +5 -1
- package/types/cascader/Cascader.vue.d.ts +9 -0
- package/types/cascader/index.d.ts +30 -0
- package/types/cascader/presentation.d.ts +15 -0
- package/types/cascader/props.d.ts +5 -0
- package/types/cascader/use-cascader-controller.d.ts +4 -0
- package/types/checkbox/base.d.ts +361 -0
- package/types/checkbox/index.d.ts +5 -1
- package/types/date/picker/DateRangePicker.vue.d.ts +12 -496
- package/types/date/picker/DateRangePickerPanel.vue.d.ts +12 -496
- package/types/date/picker/Picker.vue.d.ts +12 -496
- package/types/date/picker/PickerPanel.vue.d.ts +12 -496
- package/types/date/picker/panels/Footer.vue.d.ts +3 -124
- package/types/date/picker/panels/Shortcuts.vue.d.ts +3 -124
- package/types/date/picker/panels/date/Index.vue.d.ts +3 -124
- package/types/date/picker/panels/week/Index.vue.d.ts +3 -124
- package/types/form/FormItemLabel.vue.d.ts +2 -2
- package/types/form/context.d.ts +1 -1
- package/types/form/focus-explicit-label.d.ts +2 -0
- package/types/input/base.d.ts +481 -0
- package/types/input/index.d.ts +5 -1
- package/types/people-select/PeopleSelect.d.ts +38 -16
- package/types/people-select/emits.d.ts +3 -2
- package/types/people-select/index.d.ts +135 -63
- package/types/people-select/people-select.d.ts +47 -16
- package/types/people-select/presentation.d.ts +46 -16
- package/types/people-select/props.d.ts +17 -6
- package/types/people-select/selection.d.ts +11 -0
- package/types/people-select/types.d.ts +5 -1
- package/types/popconfirm/Popconfirm.vue.d.ts +2 -0
- package/types/popconfirm/index.d.ts +8 -0
- package/types/select/index.d.ts +30 -0
- package/types/select/native-editor-owner.d.ts +1 -0
- package/types/select/props.d.ts +5 -0
- package/types/select/select.d.ts +9 -0
- package/types/select/use-select-controller.d.ts +5 -0
- package/types/slider/SliderInput.vue.d.ts +4 -0
- package/types/table/structural-slot.d.ts +3 -0
- package/types/table/table-operation-td.d.ts +2 -0
- package/types/time/picker/Panel.vue.d.ts +3 -124
- package/types/time/picker/RangePanel.vue.d.ts +6 -248
- package/types/time/presentation/TimePanelContent.vue.d.ts +9 -372
- package/types/transfer/Transfer.vue.d.ts +4 -0
- package/types/transfer/TransferView.vue.d.ts +2 -0
- package/types/transfer/index.d.ts +16 -0
- package/types/transfer/presentation.d.ts +4 -0
- package/types/tree/BaseNode.vue.d.ts +2 -0
- package/types/tree/TransitionNodeList.vue.d.ts +2 -0
- package/types/tree-select/TreeSelect.vue.d.ts +13 -0
- package/types/tree-select/index.d.ts +50 -0
- package/types/tree-select/presentation.d.ts +13 -0
- package/types/tree-select/props.d.ts +5 -0
- package/types/trigger/position.d.ts +1 -0
- package/types/typography/EditContent.vue.d.ts +6 -0
- package/types/upload/composables/use-upload-queue.d.ts +1 -0
- package/types/upload/composables/use-uploader.d.ts +2 -0
- package/types/upload/upload.vue.d.ts +3 -3
- package/umd/_components/selected-options/style/index.css +33 -15
- package/umd/anchor/style/index.css +1 -1
- package/umd/auto-complete/style/index.css +7 -2
- package/umd/back-top/style/index.css +1 -1
- package/umd/button/style/index.css +1 -1
- package/umd/carousel/style/index.css +1 -1
- package/umd/cascader/style/index.css +36 -9
- package/umd/cedar.css +187 -79
- package/umd/cedar.js +6 -6
- package/umd/checkbox/style/index.css +1 -1
- package/umd/date/picker/style/index.css +1 -1
- package/umd/ellipsis/style/index.css +1 -1
- package/umd/form/style/index.css +1 -1
- package/umd/layout/style/index.css +1 -1
- package/umd/nav-menu/style/index.css +1 -1
- package/umd/pagination/style/index.css +2 -2
- package/umd/people-select/style/index.css +6 -0
- package/umd/progress/style/index.css +2 -2
- package/umd/radio/style/index.css +1 -1
- package/umd/rate/style/index.css +1 -1
- package/umd/scheduler/style/index.css +1 -1
- package/umd/select/style/index.css +22 -12
- package/umd/slider/style/index.css +2 -2
- package/umd/steps/style/index.css +10 -10
- package/umd/switch/style/index.css +1 -1
- package/umd/table/style/index.css +2 -2
- package/umd/tabs/style/index.css +1 -1
- package/umd/tree/style/index.css +1 -1
- package/umd/tree-select/style/index.css +49 -7
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
3
|
+
emptyValue: {
|
|
4
|
+
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string>>;
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
editMode: {
|
|
8
|
+
type: import("vue").PropType<import("..").FieldEditMode>;
|
|
9
|
+
default: undefined;
|
|
10
|
+
validator: (value: string) => boolean;
|
|
11
|
+
};
|
|
12
|
+
readPretty: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
emptyValues: {
|
|
17
|
+
type: import("vue").PropType<readonly unknown[]>;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
20
|
+
emptyText: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
beforeCommit: import("vue").PropType<import("..").BeforeFieldCommit>;
|
|
25
|
+
popupContainer: {
|
|
26
|
+
type: import("vue").PropType<import("..").PopupContainer>;
|
|
27
|
+
default: undefined;
|
|
28
|
+
validator: ((value: unknown) => value is string | false | HTMLElement) | undefined;
|
|
29
|
+
};
|
|
30
|
+
open: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
defaultOpen: BooleanConstructor;
|
|
35
|
+
modelValue: import("vue").PropType<string | null>;
|
|
36
|
+
modelModifiers: {
|
|
37
|
+
type: import("vue").PropType<{
|
|
38
|
+
trim?: boolean;
|
|
39
|
+
}>;
|
|
40
|
+
default: () => {};
|
|
41
|
+
};
|
|
42
|
+
defaultValue: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
type: {
|
|
47
|
+
type: import("vue").PropType<import("./props").InputType>;
|
|
48
|
+
default: string;
|
|
49
|
+
validator: (value: import("./props").InputType) => boolean;
|
|
50
|
+
};
|
|
51
|
+
size: {
|
|
52
|
+
type: import("vue").PropType<import("..").ComponentSize>;
|
|
53
|
+
validator: (value: import("..").ComponentSize) => boolean;
|
|
54
|
+
};
|
|
55
|
+
variant: {
|
|
56
|
+
type: import("vue").PropType<import("./props").InputVariant>;
|
|
57
|
+
validator: (value: import("./props").InputVariant) => boolean;
|
|
58
|
+
};
|
|
59
|
+
clearable: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
disabled: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: undefined;
|
|
66
|
+
};
|
|
67
|
+
readonly: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
71
|
+
error: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: undefined;
|
|
74
|
+
};
|
|
75
|
+
placeholder: StringConstructor;
|
|
76
|
+
hint: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: undefined;
|
|
79
|
+
};
|
|
80
|
+
line: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
textColor: StringConstructor;
|
|
85
|
+
focusColor: StringConstructor;
|
|
86
|
+
blurColor: StringConstructor;
|
|
87
|
+
ariaLabel: StringConstructor;
|
|
88
|
+
autofocus: BooleanConstructor;
|
|
89
|
+
enterkeyhint: import("vue").PropType<import("vue").InputHTMLAttributes["enterKeyHint"]>;
|
|
90
|
+
maxLength: {
|
|
91
|
+
type: import("vue").PropType<import("./props").InputMaxLength>;
|
|
92
|
+
default: number;
|
|
93
|
+
validator: typeof import("../_utils/text-input-value").isValidTextInputMaxLength;
|
|
94
|
+
};
|
|
95
|
+
showWordLimit: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
wordLength: import("vue").PropType<import("./props").WordLength>;
|
|
100
|
+
wordSlice: import("vue").PropType<import("./props").WordSlice>;
|
|
101
|
+
inputAttrs: import("vue").PropType<Record<string, unknown>>;
|
|
102
|
+
loading: BooleanConstructor;
|
|
103
|
+
loadingMode: {
|
|
104
|
+
type: import("vue").PropType<import("..").FieldLoadingMode>;
|
|
105
|
+
default: string;
|
|
106
|
+
validator: (value: import("..").FieldLoadingMode) => boolean;
|
|
107
|
+
};
|
|
108
|
+
}>> & Readonly<{
|
|
109
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
110
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
111
|
+
onClear?: ((event: Event) => any) | undefined;
|
|
112
|
+
onInput?: ((value: string, event: Event) => any) | undefined;
|
|
113
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
114
|
+
onChange?: ((value: string | null, event?: Event | undefined) => any) | undefined;
|
|
115
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
116
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
117
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
118
|
+
"onPress-enter"?: ((event: KeyboardEvent) => any) | undefined;
|
|
119
|
+
}>, {
|
|
120
|
+
inputRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
121
|
+
focus: (options?: FocusOptions) => void;
|
|
122
|
+
blur: () => void;
|
|
123
|
+
select: () => void;
|
|
124
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
125
|
+
click: (event: MouseEvent) => any;
|
|
126
|
+
focus: (event: FocusEvent) => any;
|
|
127
|
+
clear: (event: Event) => any;
|
|
128
|
+
input: (value: string, event: Event) => any;
|
|
129
|
+
blur: (event: FocusEvent) => any;
|
|
130
|
+
change: (value: string | null, event?: Event | undefined) => any;
|
|
131
|
+
keydown: (event: KeyboardEvent) => any;
|
|
132
|
+
"update:open": (value: boolean) => any;
|
|
133
|
+
"update:modelValue": (value: string | null) => any;
|
|
134
|
+
"press-enter": (event: KeyboardEvent) => any;
|
|
135
|
+
}, import("vue").PublicProps, {
|
|
136
|
+
error: boolean;
|
|
137
|
+
autofocus: boolean;
|
|
138
|
+
readonly: boolean;
|
|
139
|
+
type: "number" | "text" | "password" | "tel" | "email";
|
|
140
|
+
line: boolean;
|
|
141
|
+
disabled: boolean;
|
|
142
|
+
loading: boolean;
|
|
143
|
+
editMode: import("..").FieldEditMode;
|
|
144
|
+
readPretty: boolean;
|
|
145
|
+
loadingMode: "default" | "line";
|
|
146
|
+
hint: boolean;
|
|
147
|
+
clearable: boolean;
|
|
148
|
+
emptyValue: import("../_utils/empty-value").EmptyValue<string>;
|
|
149
|
+
emptyValues: readonly unknown[];
|
|
150
|
+
emptyText: string;
|
|
151
|
+
popupContainer: import("..").PopupContainer;
|
|
152
|
+
open: boolean;
|
|
153
|
+
defaultOpen: boolean;
|
|
154
|
+
modelModifiers: {
|
|
155
|
+
trim?: boolean;
|
|
156
|
+
};
|
|
157
|
+
defaultValue: string;
|
|
158
|
+
maxLength: import("../_utils/text-input-value").TextInputMaxLength;
|
|
159
|
+
showWordLimit: boolean;
|
|
160
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
161
|
+
P: {};
|
|
162
|
+
B: {};
|
|
163
|
+
D: {};
|
|
164
|
+
C: {};
|
|
165
|
+
M: {};
|
|
166
|
+
Defaults: {};
|
|
167
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
168
|
+
emptyValue: {
|
|
169
|
+
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string>>;
|
|
170
|
+
default: undefined;
|
|
171
|
+
};
|
|
172
|
+
editMode: {
|
|
173
|
+
type: import("vue").PropType<import("..").FieldEditMode>;
|
|
174
|
+
default: undefined;
|
|
175
|
+
validator: (value: string) => boolean;
|
|
176
|
+
};
|
|
177
|
+
readPretty: {
|
|
178
|
+
type: BooleanConstructor;
|
|
179
|
+
default: undefined;
|
|
180
|
+
};
|
|
181
|
+
emptyValues: {
|
|
182
|
+
type: import("vue").PropType<readonly unknown[]>;
|
|
183
|
+
default: undefined;
|
|
184
|
+
};
|
|
185
|
+
emptyText: {
|
|
186
|
+
type: StringConstructor;
|
|
187
|
+
default: undefined;
|
|
188
|
+
};
|
|
189
|
+
beforeCommit: import("vue").PropType<import("..").BeforeFieldCommit>;
|
|
190
|
+
popupContainer: {
|
|
191
|
+
type: import("vue").PropType<import("..").PopupContainer>;
|
|
192
|
+
default: undefined;
|
|
193
|
+
validator: ((value: unknown) => value is string | false | HTMLElement) | undefined;
|
|
194
|
+
};
|
|
195
|
+
open: {
|
|
196
|
+
type: BooleanConstructor;
|
|
197
|
+
default: undefined;
|
|
198
|
+
};
|
|
199
|
+
defaultOpen: BooleanConstructor;
|
|
200
|
+
modelValue: import("vue").PropType<string | null>;
|
|
201
|
+
modelModifiers: {
|
|
202
|
+
type: import("vue").PropType<{
|
|
203
|
+
trim?: boolean;
|
|
204
|
+
}>;
|
|
205
|
+
default: () => {};
|
|
206
|
+
};
|
|
207
|
+
defaultValue: {
|
|
208
|
+
type: StringConstructor;
|
|
209
|
+
default: string;
|
|
210
|
+
};
|
|
211
|
+
type: {
|
|
212
|
+
type: import("vue").PropType<import("./props").InputType>;
|
|
213
|
+
default: string;
|
|
214
|
+
validator: (value: import("./props").InputType) => boolean;
|
|
215
|
+
};
|
|
216
|
+
size: {
|
|
217
|
+
type: import("vue").PropType<import("..").ComponentSize>;
|
|
218
|
+
validator: (value: import("..").ComponentSize) => boolean;
|
|
219
|
+
};
|
|
220
|
+
variant: {
|
|
221
|
+
type: import("vue").PropType<import("./props").InputVariant>;
|
|
222
|
+
validator: (value: import("./props").InputVariant) => boolean;
|
|
223
|
+
};
|
|
224
|
+
clearable: {
|
|
225
|
+
type: BooleanConstructor;
|
|
226
|
+
default: boolean;
|
|
227
|
+
};
|
|
228
|
+
disabled: {
|
|
229
|
+
type: BooleanConstructor;
|
|
230
|
+
default: undefined;
|
|
231
|
+
};
|
|
232
|
+
readonly: {
|
|
233
|
+
type: BooleanConstructor;
|
|
234
|
+
default: undefined;
|
|
235
|
+
};
|
|
236
|
+
error: {
|
|
237
|
+
type: BooleanConstructor;
|
|
238
|
+
default: undefined;
|
|
239
|
+
};
|
|
240
|
+
placeholder: StringConstructor;
|
|
241
|
+
hint: {
|
|
242
|
+
type: BooleanConstructor;
|
|
243
|
+
default: undefined;
|
|
244
|
+
};
|
|
245
|
+
line: {
|
|
246
|
+
type: BooleanConstructor;
|
|
247
|
+
default: boolean;
|
|
248
|
+
};
|
|
249
|
+
textColor: StringConstructor;
|
|
250
|
+
focusColor: StringConstructor;
|
|
251
|
+
blurColor: StringConstructor;
|
|
252
|
+
ariaLabel: StringConstructor;
|
|
253
|
+
autofocus: BooleanConstructor;
|
|
254
|
+
enterkeyhint: import("vue").PropType<import("vue").InputHTMLAttributes["enterKeyHint"]>;
|
|
255
|
+
maxLength: {
|
|
256
|
+
type: import("vue").PropType<import("./props").InputMaxLength>;
|
|
257
|
+
default: number;
|
|
258
|
+
validator: typeof import("../_utils/text-input-value").isValidTextInputMaxLength;
|
|
259
|
+
};
|
|
260
|
+
showWordLimit: {
|
|
261
|
+
type: BooleanConstructor;
|
|
262
|
+
default: boolean;
|
|
263
|
+
};
|
|
264
|
+
wordLength: import("vue").PropType<import("./props").WordLength>;
|
|
265
|
+
wordSlice: import("vue").PropType<import("./props").WordSlice>;
|
|
266
|
+
inputAttrs: import("vue").PropType<Record<string, unknown>>;
|
|
267
|
+
loading: BooleanConstructor;
|
|
268
|
+
loadingMode: {
|
|
269
|
+
type: import("vue").PropType<import("..").FieldLoadingMode>;
|
|
270
|
+
default: string;
|
|
271
|
+
validator: (value: import("..").FieldLoadingMode) => boolean;
|
|
272
|
+
};
|
|
273
|
+
}>> & Readonly<{
|
|
274
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
275
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
276
|
+
onClear?: ((event: Event) => any) | undefined;
|
|
277
|
+
onInput?: ((value: string, event: Event) => any) | undefined;
|
|
278
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
279
|
+
onChange?: ((value: string | null, event?: Event | undefined) => any) | undefined;
|
|
280
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
281
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
282
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
283
|
+
"onPress-enter"?: ((event: KeyboardEvent) => any) | undefined;
|
|
284
|
+
}>, {
|
|
285
|
+
inputRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
286
|
+
focus: (options?: FocusOptions) => void;
|
|
287
|
+
blur: () => void;
|
|
288
|
+
select: () => void;
|
|
289
|
+
}, {}, {}, {}, {
|
|
290
|
+
error: boolean;
|
|
291
|
+
autofocus: boolean;
|
|
292
|
+
readonly: boolean;
|
|
293
|
+
type: "number" | "text" | "password" | "tel" | "email";
|
|
294
|
+
line: boolean;
|
|
295
|
+
disabled: boolean;
|
|
296
|
+
loading: boolean;
|
|
297
|
+
editMode: import("..").FieldEditMode;
|
|
298
|
+
readPretty: boolean;
|
|
299
|
+
loadingMode: "default" | "line";
|
|
300
|
+
hint: boolean;
|
|
301
|
+
clearable: boolean;
|
|
302
|
+
emptyValue: import("../_utils/empty-value").EmptyValue<string>;
|
|
303
|
+
emptyValues: readonly unknown[];
|
|
304
|
+
emptyText: string;
|
|
305
|
+
popupContainer: import("..").PopupContainer;
|
|
306
|
+
open: boolean;
|
|
307
|
+
defaultOpen: boolean;
|
|
308
|
+
modelModifiers: {
|
|
309
|
+
trim?: boolean;
|
|
310
|
+
};
|
|
311
|
+
defaultValue: string;
|
|
312
|
+
maxLength: import("../_utils/text-input-value").TextInputMaxLength;
|
|
313
|
+
showWordLimit: boolean;
|
|
314
|
+
}>;
|
|
315
|
+
__isFragment?: never;
|
|
316
|
+
__isTeleport?: never;
|
|
317
|
+
__isSuspense?: never;
|
|
318
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
319
|
+
emptyValue: {
|
|
320
|
+
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string>>;
|
|
321
|
+
default: undefined;
|
|
322
|
+
};
|
|
323
|
+
editMode: {
|
|
324
|
+
type: import("vue").PropType<import("..").FieldEditMode>;
|
|
325
|
+
default: undefined;
|
|
326
|
+
validator: (value: string) => boolean;
|
|
327
|
+
};
|
|
328
|
+
readPretty: {
|
|
329
|
+
type: BooleanConstructor;
|
|
330
|
+
default: undefined;
|
|
331
|
+
};
|
|
332
|
+
emptyValues: {
|
|
333
|
+
type: import("vue").PropType<readonly unknown[]>;
|
|
334
|
+
default: undefined;
|
|
335
|
+
};
|
|
336
|
+
emptyText: {
|
|
337
|
+
type: StringConstructor;
|
|
338
|
+
default: undefined;
|
|
339
|
+
};
|
|
340
|
+
beforeCommit: import("vue").PropType<import("..").BeforeFieldCommit>;
|
|
341
|
+
popupContainer: {
|
|
342
|
+
type: import("vue").PropType<import("..").PopupContainer>;
|
|
343
|
+
default: undefined;
|
|
344
|
+
validator: ((value: unknown) => value is string | false | HTMLElement) | undefined;
|
|
345
|
+
};
|
|
346
|
+
open: {
|
|
347
|
+
type: BooleanConstructor;
|
|
348
|
+
default: undefined;
|
|
349
|
+
};
|
|
350
|
+
defaultOpen: BooleanConstructor;
|
|
351
|
+
modelValue: import("vue").PropType<string | null>;
|
|
352
|
+
modelModifiers: {
|
|
353
|
+
type: import("vue").PropType<{
|
|
354
|
+
trim?: boolean;
|
|
355
|
+
}>;
|
|
356
|
+
default: () => {};
|
|
357
|
+
};
|
|
358
|
+
defaultValue: {
|
|
359
|
+
type: StringConstructor;
|
|
360
|
+
default: string;
|
|
361
|
+
};
|
|
362
|
+
type: {
|
|
363
|
+
type: import("vue").PropType<import("./props").InputType>;
|
|
364
|
+
default: string;
|
|
365
|
+
validator: (value: import("./props").InputType) => boolean;
|
|
366
|
+
};
|
|
367
|
+
size: {
|
|
368
|
+
type: import("vue").PropType<import("..").ComponentSize>;
|
|
369
|
+
validator: (value: import("..").ComponentSize) => boolean;
|
|
370
|
+
};
|
|
371
|
+
variant: {
|
|
372
|
+
type: import("vue").PropType<import("./props").InputVariant>;
|
|
373
|
+
validator: (value: import("./props").InputVariant) => boolean;
|
|
374
|
+
};
|
|
375
|
+
clearable: {
|
|
376
|
+
type: BooleanConstructor;
|
|
377
|
+
default: boolean;
|
|
378
|
+
};
|
|
379
|
+
disabled: {
|
|
380
|
+
type: BooleanConstructor;
|
|
381
|
+
default: undefined;
|
|
382
|
+
};
|
|
383
|
+
readonly: {
|
|
384
|
+
type: BooleanConstructor;
|
|
385
|
+
default: undefined;
|
|
386
|
+
};
|
|
387
|
+
error: {
|
|
388
|
+
type: BooleanConstructor;
|
|
389
|
+
default: undefined;
|
|
390
|
+
};
|
|
391
|
+
placeholder: StringConstructor;
|
|
392
|
+
hint: {
|
|
393
|
+
type: BooleanConstructor;
|
|
394
|
+
default: undefined;
|
|
395
|
+
};
|
|
396
|
+
line: {
|
|
397
|
+
type: BooleanConstructor;
|
|
398
|
+
default: boolean;
|
|
399
|
+
};
|
|
400
|
+
textColor: StringConstructor;
|
|
401
|
+
focusColor: StringConstructor;
|
|
402
|
+
blurColor: StringConstructor;
|
|
403
|
+
ariaLabel: StringConstructor;
|
|
404
|
+
autofocus: BooleanConstructor;
|
|
405
|
+
enterkeyhint: import("vue").PropType<import("vue").InputHTMLAttributes["enterKeyHint"]>;
|
|
406
|
+
maxLength: {
|
|
407
|
+
type: import("vue").PropType<import("./props").InputMaxLength>;
|
|
408
|
+
default: number;
|
|
409
|
+
validator: typeof import("../_utils/text-input-value").isValidTextInputMaxLength;
|
|
410
|
+
};
|
|
411
|
+
showWordLimit: {
|
|
412
|
+
type: BooleanConstructor;
|
|
413
|
+
default: boolean;
|
|
414
|
+
};
|
|
415
|
+
wordLength: import("vue").PropType<import("./props").WordLength>;
|
|
416
|
+
wordSlice: import("vue").PropType<import("./props").WordSlice>;
|
|
417
|
+
inputAttrs: import("vue").PropType<Record<string, unknown>>;
|
|
418
|
+
loading: BooleanConstructor;
|
|
419
|
+
loadingMode: {
|
|
420
|
+
type: import("vue").PropType<import("..").FieldLoadingMode>;
|
|
421
|
+
default: string;
|
|
422
|
+
validator: (value: import("..").FieldLoadingMode) => boolean;
|
|
423
|
+
};
|
|
424
|
+
}>> & Readonly<{
|
|
425
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
426
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
427
|
+
onClear?: ((event: Event) => any) | undefined;
|
|
428
|
+
onInput?: ((value: string, event: Event) => any) | undefined;
|
|
429
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
430
|
+
onChange?: ((value: string | null, event?: Event | undefined) => any) | undefined;
|
|
431
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
432
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
433
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
434
|
+
"onPress-enter"?: ((event: KeyboardEvent) => any) | undefined;
|
|
435
|
+
}>, {
|
|
436
|
+
inputRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
437
|
+
focus: (options?: FocusOptions) => void;
|
|
438
|
+
blur: () => void;
|
|
439
|
+
select: () => void;
|
|
440
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
441
|
+
click: (event: MouseEvent) => any;
|
|
442
|
+
focus: (event: FocusEvent) => any;
|
|
443
|
+
clear: (event: Event) => any;
|
|
444
|
+
input: (value: string, event: Event) => any;
|
|
445
|
+
blur: (event: FocusEvent) => any;
|
|
446
|
+
change: (value: string | null, event?: Event | undefined) => any;
|
|
447
|
+
keydown: (event: KeyboardEvent) => any;
|
|
448
|
+
"update:open": (value: boolean) => any;
|
|
449
|
+
"update:modelValue": (value: string | null) => any;
|
|
450
|
+
"press-enter": (event: KeyboardEvent) => any;
|
|
451
|
+
}, string, {
|
|
452
|
+
error: boolean;
|
|
453
|
+
autofocus: boolean;
|
|
454
|
+
readonly: boolean;
|
|
455
|
+
type: "number" | "text" | "password" | "tel" | "email";
|
|
456
|
+
line: boolean;
|
|
457
|
+
disabled: boolean;
|
|
458
|
+
loading: boolean;
|
|
459
|
+
editMode: import("..").FieldEditMode;
|
|
460
|
+
readPretty: boolean;
|
|
461
|
+
loadingMode: "default" | "line";
|
|
462
|
+
hint: boolean;
|
|
463
|
+
clearable: boolean;
|
|
464
|
+
emptyValue: import("../_utils/empty-value").EmptyValue<string>;
|
|
465
|
+
emptyValues: readonly unknown[];
|
|
466
|
+
emptyText: string;
|
|
467
|
+
popupContainer: import("..").PopupContainer;
|
|
468
|
+
open: boolean;
|
|
469
|
+
defaultOpen: boolean;
|
|
470
|
+
modelModifiers: {
|
|
471
|
+
trim?: boolean;
|
|
472
|
+
};
|
|
473
|
+
defaultValue: string;
|
|
474
|
+
maxLength: import("../_utils/text-input-value").TextInputMaxLength;
|
|
475
|
+
showWordLimit: boolean;
|
|
476
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
477
|
+
$slots: import("./types").InputSlots;
|
|
478
|
+
}) & {
|
|
479
|
+
setPropsDefaults: (defaults: Record<string, any>) => void;
|
|
480
|
+
};
|
|
481
|
+
export default _default;
|
package/types/input/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _Input from './
|
|
1
|
+
import _Input from './base';
|
|
2
2
|
import _InputGroup from './InputGroup.vue';
|
|
3
3
|
import _InputGroupLabel from './InputGroupLabel.vue';
|
|
4
4
|
import _InputPassword from './InputPassword.vue';
|
|
@@ -481,6 +481,8 @@ declare const Input: import("../_utils/global-config").CedarComponentWithInstall
|
|
|
481
481
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
482
482
|
$slots: import("./types").InputSlots;
|
|
483
483
|
}) & {
|
|
484
|
+
setPropsDefaults: (defaults: Record<string, any>) => void;
|
|
485
|
+
} & {
|
|
484
486
|
Password: {
|
|
485
487
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
486
488
|
visibility: {
|
|
@@ -4110,6 +4112,8 @@ export declare const _InputComponent: import("../_utils/global-config").CedarCom
|
|
|
4110
4112
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
4111
4113
|
$slots: import("./types").InputSlots;
|
|
4112
4114
|
}) & {
|
|
4115
|
+
setPropsDefaults: (defaults: Record<string, any>) => void;
|
|
4116
|
+
} & {
|
|
4113
4117
|
Password: {
|
|
4114
4118
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
4115
4119
|
visibility: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { PeopleSelectOption } from "./types";
|
|
1
|
+
import type { PeopleSelectValue, PeopleSelectOption } from "./types";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
emptyValue: {
|
|
4
|
-
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string>>;
|
|
4
|
+
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string | string[]>>;
|
|
5
5
|
default: undefined;
|
|
6
6
|
};
|
|
7
7
|
fallbackOption: {
|
|
@@ -57,13 +57,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
57
57
|
type: StringConstructor;
|
|
58
58
|
default: string;
|
|
59
59
|
};
|
|
60
|
+
multiple: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
60
64
|
modelValue: {
|
|
61
|
-
type: import("vue").PropType<
|
|
65
|
+
type: import("vue").PropType<PeopleSelectValue>;
|
|
62
66
|
default: undefined;
|
|
63
67
|
};
|
|
64
68
|
defaultValue: {
|
|
65
|
-
type:
|
|
66
|
-
default:
|
|
69
|
+
type: import("vue").PropType<string | string[]>;
|
|
70
|
+
default: (props: {
|
|
71
|
+
multiple?: boolean;
|
|
72
|
+
}) => "" | never[];
|
|
67
73
|
};
|
|
68
74
|
isLabel: {
|
|
69
75
|
type: BooleanConstructor;
|
|
@@ -108,6 +114,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
108
114
|
default: undefined;
|
|
109
115
|
validator: ((value: unknown) => value is string | false | HTMLElement) | undefined;
|
|
110
116
|
};
|
|
117
|
+
needConfirm: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: undefined;
|
|
120
|
+
};
|
|
111
121
|
loading: BooleanConstructor;
|
|
112
122
|
loadingMode: {
|
|
113
123
|
type: import("vue").PropType<import("..").FieldLoadingMode>;
|
|
@@ -119,17 +129,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
119
129
|
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
120
130
|
[key: string]: any;
|
|
121
131
|
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
122
|
-
'update:modelValue': (value:
|
|
132
|
+
'update:modelValue': (value: PeopleSelectValue) => boolean;
|
|
123
133
|
'update:open': (open: boolean) => boolean;
|
|
124
134
|
'open-change': (open: boolean) => boolean;
|
|
125
|
-
change: (value:
|
|
135
|
+
change: (value: PeopleSelectValue) => boolean;
|
|
126
136
|
clear: () => boolean;
|
|
127
137
|
search: (query: string) => boolean;
|
|
128
138
|
'load-error': (_error: unknown, source: "options") => boolean;
|
|
129
139
|
'action-error': (_error: unknown, action: "call" | "chat") => boolean;
|
|
130
140
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
131
141
|
emptyValue: {
|
|
132
|
-
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string>>;
|
|
142
|
+
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string | string[]>>;
|
|
133
143
|
default: undefined;
|
|
134
144
|
};
|
|
135
145
|
fallbackOption: {
|
|
@@ -185,13 +195,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
185
195
|
type: StringConstructor;
|
|
186
196
|
default: string;
|
|
187
197
|
};
|
|
198
|
+
multiple: {
|
|
199
|
+
type: BooleanConstructor;
|
|
200
|
+
default: boolean;
|
|
201
|
+
};
|
|
188
202
|
modelValue: {
|
|
189
|
-
type: import("vue").PropType<
|
|
203
|
+
type: import("vue").PropType<PeopleSelectValue>;
|
|
190
204
|
default: undefined;
|
|
191
205
|
};
|
|
192
206
|
defaultValue: {
|
|
193
|
-
type:
|
|
194
|
-
default:
|
|
207
|
+
type: import("vue").PropType<string | string[]>;
|
|
208
|
+
default: (props: {
|
|
209
|
+
multiple?: boolean;
|
|
210
|
+
}) => "" | never[];
|
|
195
211
|
};
|
|
196
212
|
isLabel: {
|
|
197
213
|
type: BooleanConstructor;
|
|
@@ -236,6 +252,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
236
252
|
default: undefined;
|
|
237
253
|
validator: ((value: unknown) => value is string | false | HTMLElement) | undefined;
|
|
238
254
|
};
|
|
255
|
+
needConfirm: {
|
|
256
|
+
type: BooleanConstructor;
|
|
257
|
+
default: undefined;
|
|
258
|
+
};
|
|
239
259
|
loading: BooleanConstructor;
|
|
240
260
|
loadingMode: {
|
|
241
261
|
type: import("vue").PropType<import("..").FieldLoadingMode>;
|
|
@@ -245,11 +265,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
245
265
|
}>> & Readonly<{
|
|
246
266
|
onClear?: (() => any) | undefined;
|
|
247
267
|
onSearch?: ((query: string) => any) | undefined;
|
|
248
|
-
onChange?: ((value:
|
|
268
|
+
onChange?: ((value: PeopleSelectValue) => any) | undefined;
|
|
249
269
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
250
270
|
"onOpen-change"?: ((open: boolean) => any) | undefined;
|
|
251
271
|
"onLoad-error"?: ((_error: unknown, source: "options") => any) | undefined;
|
|
252
|
-
"onUpdate:modelValue"?: ((value:
|
|
272
|
+
"onUpdate:modelValue"?: ((value: PeopleSelectValue) => any) | undefined;
|
|
253
273
|
"onAction-error"?: ((_error: unknown, action: "call" | "chat") => any) | undefined;
|
|
254
274
|
}>, {
|
|
255
275
|
label: string;
|
|
@@ -260,14 +280,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
260
280
|
readPretty: boolean;
|
|
261
281
|
loadingMode: "default" | "line";
|
|
262
282
|
clearable: boolean;
|
|
263
|
-
emptyValue: import("../_utils/empty-value").EmptyValue<string>;
|
|
283
|
+
emptyValue: import("../_utils/empty-value").EmptyValue<string | string[]>;
|
|
264
284
|
emptyValues: readonly unknown[];
|
|
265
285
|
emptyText: string;
|
|
266
286
|
popupContainer: import("..").PopupContainer;
|
|
267
287
|
open: boolean;
|
|
268
288
|
defaultOpen: boolean;
|
|
269
|
-
modelValue:
|
|
270
|
-
defaultValue: string;
|
|
289
|
+
modelValue: PeopleSelectValue;
|
|
290
|
+
defaultValue: string | string[];
|
|
291
|
+
multiple: boolean;
|
|
292
|
+
needConfirm: boolean;
|
|
271
293
|
options: readonly PeopleSelectOption[] | import("./types").PeopleSelectOptionsLoader;
|
|
272
294
|
searchDelay: number;
|
|
273
295
|
filterOption: boolean | ((inputValue: string, option: import("..").SelectOptionData) => boolean);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { PeopleSelectValue } from './types';
|
|
1
2
|
export declare const peopleSelectEmits: {
|
|
2
|
-
'update:modelValue': (value:
|
|
3
|
+
'update:modelValue': (value: PeopleSelectValue) => boolean;
|
|
3
4
|
'update:open': (open: boolean) => boolean;
|
|
4
5
|
'open-change': (open: boolean) => boolean;
|
|
5
|
-
change: (value:
|
|
6
|
+
change: (value: PeopleSelectValue) => boolean;
|
|
6
7
|
clear: () => boolean;
|
|
7
8
|
search: (query: string) => boolean;
|
|
8
9
|
'load-error': (_error: unknown, source: "options") => boolean;
|