@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
|
@@ -3,7 +3,7 @@ import { peopleSelectProps } from "./props";
|
|
|
3
3
|
declare const PeopleSelect: import("../_utils/global-config").CedarComponentWithInstall<{
|
|
4
4
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
5
5
|
emptyValue: {
|
|
6
|
-
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string>>;
|
|
6
|
+
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string | string[]>>;
|
|
7
7
|
default: undefined;
|
|
8
8
|
};
|
|
9
9
|
fallbackOption: {
|
|
@@ -59,13 +59,19 @@ declare const PeopleSelect: import("../_utils/global-config").CedarComponentWith
|
|
|
59
59
|
type: StringConstructor;
|
|
60
60
|
default: string;
|
|
61
61
|
};
|
|
62
|
+
multiple: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
62
66
|
modelValue: {
|
|
63
|
-
type: import("vue").PropType<
|
|
67
|
+
type: import("vue").PropType<import("./types").PeopleSelectValue>;
|
|
64
68
|
default: undefined;
|
|
65
69
|
};
|
|
66
70
|
defaultValue: {
|
|
67
|
-
type:
|
|
68
|
-
default:
|
|
71
|
+
type: import("vue").PropType<string | string[]>;
|
|
72
|
+
default: (props: {
|
|
73
|
+
multiple?: boolean;
|
|
74
|
+
}) => "" | never[];
|
|
69
75
|
};
|
|
70
76
|
isLabel: {
|
|
71
77
|
type: BooleanConstructor;
|
|
@@ -110,6 +116,10 @@ declare const PeopleSelect: import("../_utils/global-config").CedarComponentWith
|
|
|
110
116
|
default: undefined;
|
|
111
117
|
validator: ((value: unknown) => value is string | false | HTMLElement) | undefined;
|
|
112
118
|
};
|
|
119
|
+
needConfirm: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: undefined;
|
|
122
|
+
};
|
|
113
123
|
loading: BooleanConstructor;
|
|
114
124
|
loadingMode: {
|
|
115
125
|
type: import("vue").PropType<import("..").FieldLoadingMode>;
|
|
@@ -119,21 +129,21 @@ declare const PeopleSelect: import("../_utils/global-config").CedarComponentWith
|
|
|
119
129
|
}>> & Readonly<{
|
|
120
130
|
onClear?: (() => any) | undefined;
|
|
121
131
|
onSearch?: ((query: string) => any) | undefined;
|
|
122
|
-
onChange?: ((value:
|
|
132
|
+
onChange?: ((value: import("./types").PeopleSelectValue) => any) | undefined;
|
|
123
133
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
124
134
|
"onOpen-change"?: ((open: boolean) => any) | undefined;
|
|
125
135
|
"onLoad-error"?: ((_error: unknown, source: "options") => any) | undefined;
|
|
126
|
-
"onUpdate:modelValue"?: ((value:
|
|
136
|
+
"onUpdate:modelValue"?: ((value: import("./types").PeopleSelectValue) => any) | undefined;
|
|
127
137
|
"onAction-error"?: ((_error: unknown, action: "call" | "chat") => any) | undefined;
|
|
128
138
|
}>, () => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
129
139
|
[key: string]: any;
|
|
130
140
|
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
131
141
|
[key: string]: any;
|
|
132
142
|
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
133
|
-
'update:modelValue': (value:
|
|
143
|
+
'update:modelValue': (value: import("./types").PeopleSelectValue) => boolean;
|
|
134
144
|
'update:open': (open: boolean) => boolean;
|
|
135
145
|
'open-change': (open: boolean) => boolean;
|
|
136
|
-
change: (value:
|
|
146
|
+
change: (value: import("./types").PeopleSelectValue) => boolean;
|
|
137
147
|
clear: () => boolean;
|
|
138
148
|
search: (query: string) => boolean;
|
|
139
149
|
'load-error': (_error: unknown, source: "options") => boolean;
|
|
@@ -147,14 +157,16 @@ declare const PeopleSelect: import("../_utils/global-config").CedarComponentWith
|
|
|
147
157
|
readPretty: boolean;
|
|
148
158
|
loadingMode: "default" | "line";
|
|
149
159
|
clearable: boolean;
|
|
150
|
-
emptyValue: import("../_utils/empty-value").EmptyValue<string>;
|
|
160
|
+
emptyValue: import("../_utils/empty-value").EmptyValue<string | string[]>;
|
|
151
161
|
emptyValues: readonly unknown[];
|
|
152
162
|
emptyText: string;
|
|
153
163
|
popupContainer: import("..").PopupContainer;
|
|
154
164
|
open: boolean;
|
|
155
165
|
defaultOpen: boolean;
|
|
156
|
-
modelValue:
|
|
157
|
-
defaultValue: string;
|
|
166
|
+
modelValue: import("./types").PeopleSelectValue;
|
|
167
|
+
defaultValue: string | string[];
|
|
168
|
+
multiple: boolean;
|
|
169
|
+
needConfirm: boolean;
|
|
158
170
|
options: readonly import("./types").PeopleSelectOption[] | import("./types").PeopleSelectOptionsLoader;
|
|
159
171
|
searchDelay: number;
|
|
160
172
|
filterOption: boolean | ((inputValue: string, option: import("..").SelectOptionData) => boolean);
|
|
@@ -176,7 +188,7 @@ declare const PeopleSelect: import("../_utils/global-config").CedarComponentWith
|
|
|
176
188
|
Defaults: {};
|
|
177
189
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
178
190
|
emptyValue: {
|
|
179
|
-
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string>>;
|
|
191
|
+
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string | string[]>>;
|
|
180
192
|
default: undefined;
|
|
181
193
|
};
|
|
182
194
|
fallbackOption: {
|
|
@@ -232,13 +244,19 @@ declare const PeopleSelect: import("../_utils/global-config").CedarComponentWith
|
|
|
232
244
|
type: StringConstructor;
|
|
233
245
|
default: string;
|
|
234
246
|
};
|
|
247
|
+
multiple: {
|
|
248
|
+
type: BooleanConstructor;
|
|
249
|
+
default: boolean;
|
|
250
|
+
};
|
|
235
251
|
modelValue: {
|
|
236
|
-
type: import("vue").PropType<
|
|
252
|
+
type: import("vue").PropType<import("./types").PeopleSelectValue>;
|
|
237
253
|
default: undefined;
|
|
238
254
|
};
|
|
239
255
|
defaultValue: {
|
|
240
|
-
type:
|
|
241
|
-
default:
|
|
256
|
+
type: import("vue").PropType<string | string[]>;
|
|
257
|
+
default: (props: {
|
|
258
|
+
multiple?: boolean;
|
|
259
|
+
}) => "" | never[];
|
|
242
260
|
};
|
|
243
261
|
isLabel: {
|
|
244
262
|
type: BooleanConstructor;
|
|
@@ -283,6 +301,10 @@ declare const PeopleSelect: import("../_utils/global-config").CedarComponentWith
|
|
|
283
301
|
default: undefined;
|
|
284
302
|
validator: ((value: unknown) => value is string | false | HTMLElement) | undefined;
|
|
285
303
|
};
|
|
304
|
+
needConfirm: {
|
|
305
|
+
type: BooleanConstructor;
|
|
306
|
+
default: undefined;
|
|
307
|
+
};
|
|
286
308
|
loading: BooleanConstructor;
|
|
287
309
|
loadingMode: {
|
|
288
310
|
type: import("vue").PropType<import("..").FieldLoadingMode>;
|
|
@@ -292,11 +314,11 @@ declare const PeopleSelect: import("../_utils/global-config").CedarComponentWith
|
|
|
292
314
|
}>> & Readonly<{
|
|
293
315
|
onClear?: (() => any) | undefined;
|
|
294
316
|
onSearch?: ((query: string) => any) | undefined;
|
|
295
|
-
onChange?: ((value:
|
|
317
|
+
onChange?: ((value: import("./types").PeopleSelectValue) => any) | undefined;
|
|
296
318
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
297
319
|
"onOpen-change"?: ((open: boolean) => any) | undefined;
|
|
298
320
|
"onLoad-error"?: ((_error: unknown, source: "options") => any) | undefined;
|
|
299
|
-
"onUpdate:modelValue"?: ((value:
|
|
321
|
+
"onUpdate:modelValue"?: ((value: import("./types").PeopleSelectValue) => any) | undefined;
|
|
300
322
|
"onAction-error"?: ((_error: unknown, action: "call" | "chat") => any) | undefined;
|
|
301
323
|
}>, () => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
302
324
|
[key: string]: any;
|
|
@@ -311,14 +333,16 @@ declare const PeopleSelect: import("../_utils/global-config").CedarComponentWith
|
|
|
311
333
|
readPretty: boolean;
|
|
312
334
|
loadingMode: "default" | "line";
|
|
313
335
|
clearable: boolean;
|
|
314
|
-
emptyValue: import("../_utils/empty-value").EmptyValue<string>;
|
|
336
|
+
emptyValue: import("../_utils/empty-value").EmptyValue<string | string[]>;
|
|
315
337
|
emptyValues: readonly unknown[];
|
|
316
338
|
emptyText: string;
|
|
317
339
|
popupContainer: import("..").PopupContainer;
|
|
318
340
|
open: boolean;
|
|
319
341
|
defaultOpen: boolean;
|
|
320
|
-
modelValue:
|
|
321
|
-
defaultValue: string;
|
|
342
|
+
modelValue: import("./types").PeopleSelectValue;
|
|
343
|
+
defaultValue: string | string[];
|
|
344
|
+
multiple: boolean;
|
|
345
|
+
needConfirm: boolean;
|
|
322
346
|
options: readonly import("./types").PeopleSelectOption[] | import("./types").PeopleSelectOptionsLoader;
|
|
323
347
|
searchDelay: number;
|
|
324
348
|
filterOption: boolean | ((inputValue: string, option: import("..").SelectOptionData) => boolean);
|
|
@@ -337,7 +361,7 @@ declare const PeopleSelect: import("../_utils/global-config").CedarComponentWith
|
|
|
337
361
|
__isSuspense?: never;
|
|
338
362
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
339
363
|
emptyValue: {
|
|
340
|
-
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string>>;
|
|
364
|
+
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string | string[]>>;
|
|
341
365
|
default: undefined;
|
|
342
366
|
};
|
|
343
367
|
fallbackOption: {
|
|
@@ -393,13 +417,19 @@ declare const PeopleSelect: import("../_utils/global-config").CedarComponentWith
|
|
|
393
417
|
type: StringConstructor;
|
|
394
418
|
default: string;
|
|
395
419
|
};
|
|
420
|
+
multiple: {
|
|
421
|
+
type: BooleanConstructor;
|
|
422
|
+
default: boolean;
|
|
423
|
+
};
|
|
396
424
|
modelValue: {
|
|
397
|
-
type: import("vue").PropType<
|
|
425
|
+
type: import("vue").PropType<import("./types").PeopleSelectValue>;
|
|
398
426
|
default: undefined;
|
|
399
427
|
};
|
|
400
428
|
defaultValue: {
|
|
401
|
-
type:
|
|
402
|
-
default:
|
|
429
|
+
type: import("vue").PropType<string | string[]>;
|
|
430
|
+
default: (props: {
|
|
431
|
+
multiple?: boolean;
|
|
432
|
+
}) => "" | never[];
|
|
403
433
|
};
|
|
404
434
|
isLabel: {
|
|
405
435
|
type: BooleanConstructor;
|
|
@@ -444,6 +474,10 @@ declare const PeopleSelect: import("../_utils/global-config").CedarComponentWith
|
|
|
444
474
|
default: undefined;
|
|
445
475
|
validator: ((value: unknown) => value is string | false | HTMLElement) | undefined;
|
|
446
476
|
};
|
|
477
|
+
needConfirm: {
|
|
478
|
+
type: BooleanConstructor;
|
|
479
|
+
default: undefined;
|
|
480
|
+
};
|
|
447
481
|
loading: BooleanConstructor;
|
|
448
482
|
loadingMode: {
|
|
449
483
|
type: import("vue").PropType<import("..").FieldLoadingMode>;
|
|
@@ -453,21 +487,21 @@ declare const PeopleSelect: import("../_utils/global-config").CedarComponentWith
|
|
|
453
487
|
}>> & Readonly<{
|
|
454
488
|
onClear?: (() => any) | undefined;
|
|
455
489
|
onSearch?: ((query: string) => any) | undefined;
|
|
456
|
-
onChange?: ((value:
|
|
490
|
+
onChange?: ((value: import("./types").PeopleSelectValue) => any) | undefined;
|
|
457
491
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
458
492
|
"onOpen-change"?: ((open: boolean) => any) | undefined;
|
|
459
493
|
"onLoad-error"?: ((_error: unknown, source: "options") => any) | undefined;
|
|
460
|
-
"onUpdate:modelValue"?: ((value:
|
|
494
|
+
"onUpdate:modelValue"?: ((value: import("./types").PeopleSelectValue) => any) | undefined;
|
|
461
495
|
"onAction-error"?: ((_error: unknown, action: "call" | "chat") => any) | undefined;
|
|
462
496
|
}>, () => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
463
497
|
[key: string]: any;
|
|
464
498
|
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
465
499
|
[key: string]: any;
|
|
466
500
|
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
467
|
-
'update:modelValue': (value:
|
|
501
|
+
'update:modelValue': (value: import("./types").PeopleSelectValue) => boolean;
|
|
468
502
|
'update:open': (open: boolean) => boolean;
|
|
469
503
|
'open-change': (open: boolean) => boolean;
|
|
470
|
-
change: (value:
|
|
504
|
+
change: (value: import("./types").PeopleSelectValue) => boolean;
|
|
471
505
|
clear: () => boolean;
|
|
472
506
|
search: (query: string) => boolean;
|
|
473
507
|
'load-error': (_error: unknown, source: "options") => boolean;
|
|
@@ -481,14 +515,16 @@ declare const PeopleSelect: import("../_utils/global-config").CedarComponentWith
|
|
|
481
515
|
readPretty: boolean;
|
|
482
516
|
loadingMode: "default" | "line";
|
|
483
517
|
clearable: boolean;
|
|
484
|
-
emptyValue: import("../_utils/empty-value").EmptyValue<string>;
|
|
518
|
+
emptyValue: import("../_utils/empty-value").EmptyValue<string | string[]>;
|
|
485
519
|
emptyValues: readonly unknown[];
|
|
486
520
|
emptyText: string;
|
|
487
521
|
popupContainer: import("..").PopupContainer;
|
|
488
522
|
open: boolean;
|
|
489
523
|
defaultOpen: boolean;
|
|
490
|
-
modelValue:
|
|
491
|
-
defaultValue: string;
|
|
524
|
+
modelValue: import("./types").PeopleSelectValue;
|
|
525
|
+
defaultValue: string | string[];
|
|
526
|
+
multiple: boolean;
|
|
527
|
+
needConfirm: boolean;
|
|
492
528
|
options: readonly import("./types").PeopleSelectOption[] | import("./types").PeopleSelectOptionsLoader;
|
|
493
529
|
searchDelay: number;
|
|
494
530
|
filterOption: boolean | ((inputValue: string, option: import("..").SelectOptionData) => boolean);
|
|
@@ -509,7 +545,7 @@ export { PeopleSelect };
|
|
|
509
545
|
export declare const _PeopleSelectComponent: import("../_utils/global-config").CedarComponentWithInstall<{
|
|
510
546
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
511
547
|
emptyValue: {
|
|
512
|
-
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string>>;
|
|
548
|
+
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string | string[]>>;
|
|
513
549
|
default: undefined;
|
|
514
550
|
};
|
|
515
551
|
fallbackOption: {
|
|
@@ -565,13 +601,19 @@ export declare const _PeopleSelectComponent: import("../_utils/global-config").C
|
|
|
565
601
|
type: StringConstructor;
|
|
566
602
|
default: string;
|
|
567
603
|
};
|
|
604
|
+
multiple: {
|
|
605
|
+
type: BooleanConstructor;
|
|
606
|
+
default: boolean;
|
|
607
|
+
};
|
|
568
608
|
modelValue: {
|
|
569
|
-
type: import("vue").PropType<
|
|
609
|
+
type: import("vue").PropType<import("./types").PeopleSelectValue>;
|
|
570
610
|
default: undefined;
|
|
571
611
|
};
|
|
572
612
|
defaultValue: {
|
|
573
|
-
type:
|
|
574
|
-
default:
|
|
613
|
+
type: import("vue").PropType<string | string[]>;
|
|
614
|
+
default: (props: {
|
|
615
|
+
multiple?: boolean;
|
|
616
|
+
}) => "" | never[];
|
|
575
617
|
};
|
|
576
618
|
isLabel: {
|
|
577
619
|
type: BooleanConstructor;
|
|
@@ -616,6 +658,10 @@ export declare const _PeopleSelectComponent: import("../_utils/global-config").C
|
|
|
616
658
|
default: undefined;
|
|
617
659
|
validator: ((value: unknown) => value is string | false | HTMLElement) | undefined;
|
|
618
660
|
};
|
|
661
|
+
needConfirm: {
|
|
662
|
+
type: BooleanConstructor;
|
|
663
|
+
default: undefined;
|
|
664
|
+
};
|
|
619
665
|
loading: BooleanConstructor;
|
|
620
666
|
loadingMode: {
|
|
621
667
|
type: import("vue").PropType<import("..").FieldLoadingMode>;
|
|
@@ -625,21 +671,21 @@ export declare const _PeopleSelectComponent: import("../_utils/global-config").C
|
|
|
625
671
|
}>> & Readonly<{
|
|
626
672
|
onClear?: (() => any) | undefined;
|
|
627
673
|
onSearch?: ((query: string) => any) | undefined;
|
|
628
|
-
onChange?: ((value:
|
|
674
|
+
onChange?: ((value: import("./types").PeopleSelectValue) => any) | undefined;
|
|
629
675
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
630
676
|
"onOpen-change"?: ((open: boolean) => any) | undefined;
|
|
631
677
|
"onLoad-error"?: ((_error: unknown, source: "options") => any) | undefined;
|
|
632
|
-
"onUpdate:modelValue"?: ((value:
|
|
678
|
+
"onUpdate:modelValue"?: ((value: import("./types").PeopleSelectValue) => any) | undefined;
|
|
633
679
|
"onAction-error"?: ((_error: unknown, action: "call" | "chat") => any) | undefined;
|
|
634
680
|
}>, () => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
635
681
|
[key: string]: any;
|
|
636
682
|
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
637
683
|
[key: string]: any;
|
|
638
684
|
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
639
|
-
'update:modelValue': (value:
|
|
685
|
+
'update:modelValue': (value: import("./types").PeopleSelectValue) => boolean;
|
|
640
686
|
'update:open': (open: boolean) => boolean;
|
|
641
687
|
'open-change': (open: boolean) => boolean;
|
|
642
|
-
change: (value:
|
|
688
|
+
change: (value: import("./types").PeopleSelectValue) => boolean;
|
|
643
689
|
clear: () => boolean;
|
|
644
690
|
search: (query: string) => boolean;
|
|
645
691
|
'load-error': (_error: unknown, source: "options") => boolean;
|
|
@@ -653,14 +699,16 @@ export declare const _PeopleSelectComponent: import("../_utils/global-config").C
|
|
|
653
699
|
readPretty: boolean;
|
|
654
700
|
loadingMode: "default" | "line";
|
|
655
701
|
clearable: boolean;
|
|
656
|
-
emptyValue: import("../_utils/empty-value").EmptyValue<string>;
|
|
702
|
+
emptyValue: import("../_utils/empty-value").EmptyValue<string | string[]>;
|
|
657
703
|
emptyValues: readonly unknown[];
|
|
658
704
|
emptyText: string;
|
|
659
705
|
popupContainer: import("..").PopupContainer;
|
|
660
706
|
open: boolean;
|
|
661
707
|
defaultOpen: boolean;
|
|
662
|
-
modelValue:
|
|
663
|
-
defaultValue: string;
|
|
708
|
+
modelValue: import("./types").PeopleSelectValue;
|
|
709
|
+
defaultValue: string | string[];
|
|
710
|
+
multiple: boolean;
|
|
711
|
+
needConfirm: boolean;
|
|
664
712
|
options: readonly import("./types").PeopleSelectOption[] | import("./types").PeopleSelectOptionsLoader;
|
|
665
713
|
searchDelay: number;
|
|
666
714
|
filterOption: boolean | ((inputValue: string, option: import("..").SelectOptionData) => boolean);
|
|
@@ -682,7 +730,7 @@ export declare const _PeopleSelectComponent: import("../_utils/global-config").C
|
|
|
682
730
|
Defaults: {};
|
|
683
731
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
684
732
|
emptyValue: {
|
|
685
|
-
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string>>;
|
|
733
|
+
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string | string[]>>;
|
|
686
734
|
default: undefined;
|
|
687
735
|
};
|
|
688
736
|
fallbackOption: {
|
|
@@ -738,13 +786,19 @@ export declare const _PeopleSelectComponent: import("../_utils/global-config").C
|
|
|
738
786
|
type: StringConstructor;
|
|
739
787
|
default: string;
|
|
740
788
|
};
|
|
789
|
+
multiple: {
|
|
790
|
+
type: BooleanConstructor;
|
|
791
|
+
default: boolean;
|
|
792
|
+
};
|
|
741
793
|
modelValue: {
|
|
742
|
-
type: import("vue").PropType<
|
|
794
|
+
type: import("vue").PropType<import("./types").PeopleSelectValue>;
|
|
743
795
|
default: undefined;
|
|
744
796
|
};
|
|
745
797
|
defaultValue: {
|
|
746
|
-
type:
|
|
747
|
-
default:
|
|
798
|
+
type: import("vue").PropType<string | string[]>;
|
|
799
|
+
default: (props: {
|
|
800
|
+
multiple?: boolean;
|
|
801
|
+
}) => "" | never[];
|
|
748
802
|
};
|
|
749
803
|
isLabel: {
|
|
750
804
|
type: BooleanConstructor;
|
|
@@ -789,6 +843,10 @@ export declare const _PeopleSelectComponent: import("../_utils/global-config").C
|
|
|
789
843
|
default: undefined;
|
|
790
844
|
validator: ((value: unknown) => value is string | false | HTMLElement) | undefined;
|
|
791
845
|
};
|
|
846
|
+
needConfirm: {
|
|
847
|
+
type: BooleanConstructor;
|
|
848
|
+
default: undefined;
|
|
849
|
+
};
|
|
792
850
|
loading: BooleanConstructor;
|
|
793
851
|
loadingMode: {
|
|
794
852
|
type: import("vue").PropType<import("..").FieldLoadingMode>;
|
|
@@ -798,11 +856,11 @@ export declare const _PeopleSelectComponent: import("../_utils/global-config").C
|
|
|
798
856
|
}>> & Readonly<{
|
|
799
857
|
onClear?: (() => any) | undefined;
|
|
800
858
|
onSearch?: ((query: string) => any) | undefined;
|
|
801
|
-
onChange?: ((value:
|
|
859
|
+
onChange?: ((value: import("./types").PeopleSelectValue) => any) | undefined;
|
|
802
860
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
803
861
|
"onOpen-change"?: ((open: boolean) => any) | undefined;
|
|
804
862
|
"onLoad-error"?: ((_error: unknown, source: "options") => any) | undefined;
|
|
805
|
-
"onUpdate:modelValue"?: ((value:
|
|
863
|
+
"onUpdate:modelValue"?: ((value: import("./types").PeopleSelectValue) => any) | undefined;
|
|
806
864
|
"onAction-error"?: ((_error: unknown, action: "call" | "chat") => any) | undefined;
|
|
807
865
|
}>, () => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
808
866
|
[key: string]: any;
|
|
@@ -817,14 +875,16 @@ export declare const _PeopleSelectComponent: import("../_utils/global-config").C
|
|
|
817
875
|
readPretty: boolean;
|
|
818
876
|
loadingMode: "default" | "line";
|
|
819
877
|
clearable: boolean;
|
|
820
|
-
emptyValue: import("../_utils/empty-value").EmptyValue<string>;
|
|
878
|
+
emptyValue: import("../_utils/empty-value").EmptyValue<string | string[]>;
|
|
821
879
|
emptyValues: readonly unknown[];
|
|
822
880
|
emptyText: string;
|
|
823
881
|
popupContainer: import("..").PopupContainer;
|
|
824
882
|
open: boolean;
|
|
825
883
|
defaultOpen: boolean;
|
|
826
|
-
modelValue:
|
|
827
|
-
defaultValue: string;
|
|
884
|
+
modelValue: import("./types").PeopleSelectValue;
|
|
885
|
+
defaultValue: string | string[];
|
|
886
|
+
multiple: boolean;
|
|
887
|
+
needConfirm: boolean;
|
|
828
888
|
options: readonly import("./types").PeopleSelectOption[] | import("./types").PeopleSelectOptionsLoader;
|
|
829
889
|
searchDelay: number;
|
|
830
890
|
filterOption: boolean | ((inputValue: string, option: import("..").SelectOptionData) => boolean);
|
|
@@ -843,7 +903,7 @@ export declare const _PeopleSelectComponent: import("../_utils/global-config").C
|
|
|
843
903
|
__isSuspense?: never;
|
|
844
904
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
845
905
|
emptyValue: {
|
|
846
|
-
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string>>;
|
|
906
|
+
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string | string[]>>;
|
|
847
907
|
default: undefined;
|
|
848
908
|
};
|
|
849
909
|
fallbackOption: {
|
|
@@ -899,13 +959,19 @@ export declare const _PeopleSelectComponent: import("../_utils/global-config").C
|
|
|
899
959
|
type: StringConstructor;
|
|
900
960
|
default: string;
|
|
901
961
|
};
|
|
962
|
+
multiple: {
|
|
963
|
+
type: BooleanConstructor;
|
|
964
|
+
default: boolean;
|
|
965
|
+
};
|
|
902
966
|
modelValue: {
|
|
903
|
-
type: import("vue").PropType<
|
|
967
|
+
type: import("vue").PropType<import("./types").PeopleSelectValue>;
|
|
904
968
|
default: undefined;
|
|
905
969
|
};
|
|
906
970
|
defaultValue: {
|
|
907
|
-
type:
|
|
908
|
-
default:
|
|
971
|
+
type: import("vue").PropType<string | string[]>;
|
|
972
|
+
default: (props: {
|
|
973
|
+
multiple?: boolean;
|
|
974
|
+
}) => "" | never[];
|
|
909
975
|
};
|
|
910
976
|
isLabel: {
|
|
911
977
|
type: BooleanConstructor;
|
|
@@ -950,6 +1016,10 @@ export declare const _PeopleSelectComponent: import("../_utils/global-config").C
|
|
|
950
1016
|
default: undefined;
|
|
951
1017
|
validator: ((value: unknown) => value is string | false | HTMLElement) | undefined;
|
|
952
1018
|
};
|
|
1019
|
+
needConfirm: {
|
|
1020
|
+
type: BooleanConstructor;
|
|
1021
|
+
default: undefined;
|
|
1022
|
+
};
|
|
953
1023
|
loading: BooleanConstructor;
|
|
954
1024
|
loadingMode: {
|
|
955
1025
|
type: import("vue").PropType<import("..").FieldLoadingMode>;
|
|
@@ -959,21 +1029,21 @@ export declare const _PeopleSelectComponent: import("../_utils/global-config").C
|
|
|
959
1029
|
}>> & Readonly<{
|
|
960
1030
|
onClear?: (() => any) | undefined;
|
|
961
1031
|
onSearch?: ((query: string) => any) | undefined;
|
|
962
|
-
onChange?: ((value:
|
|
1032
|
+
onChange?: ((value: import("./types").PeopleSelectValue) => any) | undefined;
|
|
963
1033
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
964
1034
|
"onOpen-change"?: ((open: boolean) => any) | undefined;
|
|
965
1035
|
"onLoad-error"?: ((_error: unknown, source: "options") => any) | undefined;
|
|
966
|
-
"onUpdate:modelValue"?: ((value:
|
|
1036
|
+
"onUpdate:modelValue"?: ((value: import("./types").PeopleSelectValue) => any) | undefined;
|
|
967
1037
|
"onAction-error"?: ((_error: unknown, action: "call" | "chat") => any) | undefined;
|
|
968
1038
|
}>, () => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
969
1039
|
[key: string]: any;
|
|
970
1040
|
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
971
1041
|
[key: string]: any;
|
|
972
1042
|
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
973
|
-
'update:modelValue': (value:
|
|
1043
|
+
'update:modelValue': (value: import("./types").PeopleSelectValue) => boolean;
|
|
974
1044
|
'update:open': (open: boolean) => boolean;
|
|
975
1045
|
'open-change': (open: boolean) => boolean;
|
|
976
|
-
change: (value:
|
|
1046
|
+
change: (value: import("./types").PeopleSelectValue) => boolean;
|
|
977
1047
|
clear: () => boolean;
|
|
978
1048
|
search: (query: string) => boolean;
|
|
979
1049
|
'load-error': (_error: unknown, source: "options") => boolean;
|
|
@@ -987,14 +1057,16 @@ export declare const _PeopleSelectComponent: import("../_utils/global-config").C
|
|
|
987
1057
|
readPretty: boolean;
|
|
988
1058
|
loadingMode: "default" | "line";
|
|
989
1059
|
clearable: boolean;
|
|
990
|
-
emptyValue: import("../_utils/empty-value").EmptyValue<string>;
|
|
1060
|
+
emptyValue: import("../_utils/empty-value").EmptyValue<string | string[]>;
|
|
991
1061
|
emptyValues: readonly unknown[];
|
|
992
1062
|
emptyText: string;
|
|
993
1063
|
popupContainer: import("..").PopupContainer;
|
|
994
1064
|
open: boolean;
|
|
995
1065
|
defaultOpen: boolean;
|
|
996
|
-
modelValue:
|
|
997
|
-
defaultValue: string;
|
|
1066
|
+
modelValue: import("./types").PeopleSelectValue;
|
|
1067
|
+
defaultValue: string | string[];
|
|
1068
|
+
multiple: boolean;
|
|
1069
|
+
needConfirm: boolean;
|
|
998
1070
|
options: readonly import("./types").PeopleSelectOption[] | import("./types").PeopleSelectOptionsLoader;
|
|
999
1071
|
searchDelay: number;
|
|
1000
1072
|
filterOption: boolean | ((inputValue: string, option: import("..").SelectOptionData) => boolean);
|
|
@@ -1009,4 +1081,4 @@ export declare const _PeopleSelectComponent: import("../_utils/global-config").C
|
|
|
1009
1081
|
isLabel: boolean;
|
|
1010
1082
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps>;
|
|
1011
1083
|
export default PeopleSelect;
|
|
1012
|
-
export type { PeopleSelectReadScope, PeopleSelectSlots, PeopleSelectEmits, PeopleSelectExpose, PeopleSelectOption, PeopleSelectOptionsLoader, PeopleSelectAction, PeopleSelectFallbackOption, PeopleSelectRenderActions, PeopleSelectActionScope, } from "./types";
|
|
1084
|
+
export type { PeopleSelectValue, PeopleSelectReadScope, PeopleSelectSlots, PeopleSelectEmits, PeopleSelectExpose, PeopleSelectOption, PeopleSelectOptionsLoader, PeopleSelectAction, PeopleSelectFallbackOption, PeopleSelectRenderActions, PeopleSelectActionScope, } from "./types";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { PeopleSelectValue } from "./types";
|
|
1
2
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
3
|
emptyValue: {
|
|
3
|
-
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string>>;
|
|
4
|
+
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string | string[]>>;
|
|
4
5
|
default: undefined;
|
|
5
6
|
};
|
|
6
7
|
fallbackOption: {
|
|
@@ -56,13 +57,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
56
57
|
type: StringConstructor;
|
|
57
58
|
default: string;
|
|
58
59
|
};
|
|
60
|
+
multiple: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
59
64
|
modelValue: {
|
|
60
|
-
type: import("vue").PropType<
|
|
65
|
+
type: import("vue").PropType<PeopleSelectValue>;
|
|
61
66
|
default: undefined;
|
|
62
67
|
};
|
|
63
68
|
defaultValue: {
|
|
64
|
-
type:
|
|
65
|
-
default:
|
|
69
|
+
type: import("vue").PropType<string | string[]>;
|
|
70
|
+
default: (props: {
|
|
71
|
+
multiple?: boolean;
|
|
72
|
+
}) => "" | never[];
|
|
66
73
|
};
|
|
67
74
|
isLabel: {
|
|
68
75
|
type: BooleanConstructor;
|
|
@@ -107,6 +114,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
107
114
|
default: undefined;
|
|
108
115
|
validator: ((value: unknown) => value is string | false | HTMLElement) | undefined;
|
|
109
116
|
};
|
|
117
|
+
needConfirm: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: undefined;
|
|
120
|
+
};
|
|
110
121
|
loading: BooleanConstructor;
|
|
111
122
|
loadingMode: {
|
|
112
123
|
type: import("vue").PropType<import("..").FieldLoadingMode>;
|
|
@@ -114,13 +125,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
114
125
|
validator: (value: import("..").FieldLoadingMode) => boolean;
|
|
115
126
|
};
|
|
116
127
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
128
|
+
'update:modelValue': (value: PeopleSelectValue) => boolean;
|
|
129
|
+
'update:open': (open: boolean) => boolean;
|
|
130
|
+
'open-change': (open: boolean) => boolean;
|
|
131
|
+
change: (value: PeopleSelectValue) => boolean;
|
|
132
|
+
clear: () => boolean;
|
|
120
133
|
search: (query: string) => boolean;
|
|
134
|
+
'load-error': (_error: unknown, source: "options") => boolean;
|
|
135
|
+
'action-error': (_error: unknown, action: "call" | "chat") => boolean;
|
|
121
136
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
122
137
|
emptyValue: {
|
|
123
|
-
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string>>;
|
|
138
|
+
type: import("vue").PropType<import("../_utils/empty-value").EmptyValue<string | string[]>>;
|
|
124
139
|
default: undefined;
|
|
125
140
|
};
|
|
126
141
|
fallbackOption: {
|
|
@@ -176,13 +191,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
176
191
|
type: StringConstructor;
|
|
177
192
|
default: string;
|
|
178
193
|
};
|
|
194
|
+
multiple: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
default: boolean;
|
|
197
|
+
};
|
|
179
198
|
modelValue: {
|
|
180
|
-
type: import("vue").PropType<
|
|
199
|
+
type: import("vue").PropType<PeopleSelectValue>;
|
|
181
200
|
default: undefined;
|
|
182
201
|
};
|
|
183
202
|
defaultValue: {
|
|
184
|
-
type:
|
|
185
|
-
default:
|
|
203
|
+
type: import("vue").PropType<string | string[]>;
|
|
204
|
+
default: (props: {
|
|
205
|
+
multiple?: boolean;
|
|
206
|
+
}) => "" | never[];
|
|
186
207
|
};
|
|
187
208
|
isLabel: {
|
|
188
209
|
type: BooleanConstructor;
|
|
@@ -227,6 +248,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
227
248
|
default: undefined;
|
|
228
249
|
validator: ((value: unknown) => value is string | false | HTMLElement) | undefined;
|
|
229
250
|
};
|
|
251
|
+
needConfirm: {
|
|
252
|
+
type: BooleanConstructor;
|
|
253
|
+
default: undefined;
|
|
254
|
+
};
|
|
230
255
|
loading: BooleanConstructor;
|
|
231
256
|
loadingMode: {
|
|
232
257
|
type: import("vue").PropType<import("..").FieldLoadingMode>;
|
|
@@ -236,8 +261,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
236
261
|
}>> & Readonly<{
|
|
237
262
|
onClear?: (() => any) | undefined;
|
|
238
263
|
onSearch?: ((query: string) => any) | undefined;
|
|
239
|
-
onChange?: ((value:
|
|
240
|
-
"onUpdate:
|
|
264
|
+
onChange?: ((value: PeopleSelectValue) => any) | undefined;
|
|
265
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
266
|
+
"onOpen-change"?: ((open: boolean) => any) | undefined;
|
|
267
|
+
"onLoad-error"?: ((_error: unknown, source: "options") => any) | undefined;
|
|
268
|
+
"onUpdate:modelValue"?: ((value: PeopleSelectValue) => any) | undefined;
|
|
269
|
+
"onAction-error"?: ((_error: unknown, action: "call" | "chat") => any) | undefined;
|
|
241
270
|
}>, {
|
|
242
271
|
label: string;
|
|
243
272
|
readonly: boolean;
|
|
@@ -247,14 +276,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
247
276
|
readPretty: boolean;
|
|
248
277
|
loadingMode: "default" | "line";
|
|
249
278
|
clearable: boolean;
|
|
250
|
-
emptyValue: import("../_utils/empty-value").EmptyValue<string>;
|
|
279
|
+
emptyValue: import("../_utils/empty-value").EmptyValue<string | string[]>;
|
|
251
280
|
emptyValues: readonly unknown[];
|
|
252
281
|
emptyText: string;
|
|
253
282
|
popupContainer: import("..").PopupContainer;
|
|
254
283
|
open: boolean;
|
|
255
284
|
defaultOpen: boolean;
|
|
256
|
-
modelValue:
|
|
257
|
-
defaultValue: string;
|
|
285
|
+
modelValue: PeopleSelectValue;
|
|
286
|
+
defaultValue: string | string[];
|
|
287
|
+
multiple: boolean;
|
|
288
|
+
needConfirm: boolean;
|
|
258
289
|
options: readonly import("./types").PeopleSelectOption[] | import("./types").PeopleSelectOptionsLoader;
|
|
259
290
|
searchDelay: number;
|
|
260
291
|
filterOption: boolean | ((inputValue: string, option: import("..").SelectOptionData) => boolean);
|