@opentinyvue/vue-autocomplete 2.22.0 → 3.22.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/lib/index.js CHANGED
@@ -110,7 +110,7 @@ var Autocomplete = defineComponent({
110
110
  });
111
111
  }
112
112
  });
113
- var version = "2.22.0";
113
+ var version = "3.22.0";
114
114
  Autocomplete.model = {
115
115
  prop: "modelValue",
116
116
  event: "update:modelValue"
package/lib/pc.js CHANGED
@@ -4,38 +4,42 @@ import Scrollbar from '@opentinyvue/vue-scrollbar';
4
4
  import Input from '@opentinyvue/vue-input';
5
5
  import { Clickoutside } from '@opentinyvue/vue-directive';
6
6
  import { IconLoadingShadow } from '@opentinyvue/vue-icon';
7
+ import { resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, normalizeClass, createBlock, mergeProps, withKeys, withModifiers, createSlots, withCtx, renderSlot, createVNode, Transition, createElementVNode, normalizeStyle, Fragment, renderList, createTextVNode, toDisplayString, vShow } from 'vue';
7
8
 
8
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
9
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
10
- if (render) {
11
- options.render = render;
12
- options.staticRenderFns = staticRenderFns;
13
- options._compiled = true;
9
+ function _createForOfIteratorHelperLoose(r, e) {
10
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
11
+ if (t) return (t = t.call(r)).next.bind(t);
12
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
13
+ t && (r = t);
14
+ var o = 0;
15
+ return function() {
16
+ return o >= r.length ? { done: true } : { done: false, value: r[o++] };
17
+ };
14
18
  }
15
- var hook;
16
- if (injectStyles) {
17
- hook = injectStyles;
18
- }
19
- if (hook) {
20
- if (options.functional) {
21
- options._injectStyles = hook;
22
- var originalRender = options.render;
23
- options.render = function renderWithStyleInjection(h, context) {
24
- hook.call(context);
25
- return originalRender(h, context);
26
- };
27
- } else {
28
- var existing = options.beforeCreate;
29
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
30
- }
19
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
20
+ }
21
+ function _unsupportedIterableToArray(r, a) {
22
+ if (r) {
23
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
24
+ var t = {}.toString.call(r).slice(8, -1);
25
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
31
26
  }
32
- return {
33
- exports: scriptExports,
34
- options
35
- };
36
27
  }
28
+ function _arrayLikeToArray(r, a) {
29
+ (null == a || a > r.length) && (a = r.length);
30
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
31
+ return n;
32
+ }
33
+ var _export_sfc = function _export_sfc2(sfc, props) {
34
+ var target = sfc.__vccOpts || sfc;
35
+ for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
36
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
37
+ target[key] = val;
38
+ }
39
+ return target;
40
+ };
37
41
 
38
- var __vue2_script = defineComponent({
42
+ var _sfc_main = defineComponent({
39
43
  components: {
40
44
  TinyInput: Input,
41
45
  TinyScrollbar: Scrollbar,
@@ -55,164 +59,143 @@ var __vue2_script = defineComponent({
55
59
  });
56
60
  }
57
61
  });
58
- var render = function render2() {
59
- var _vm = this;
60
- var _h = _vm.$createElement;
61
- var _c = _vm._self._c || _h;
62
- return _c("div", {
63
- directives: [{
64
- name: "clickoutside",
65
- rawName: "v-clickoutside",
66
- value: _vm.close,
67
- expression: "close"
68
- }],
69
- class: ["tiny-autocomplete", {
70
- "show-auto-width": _vm.state.showAutoWidth
71
- }],
72
- attrs: {
73
- "aria-haspopup": "listbox",
74
- "role": "combobox",
75
- "aria-expanded": _vm.state.suggestionVisible,
76
- "aria-owns": _vm.state.id
77
- }
78
- }, [_c("tiny-input", _vm._b({
79
- directives: [{
80
- name: "clickoutside",
81
- rawName: "v-clickoutside",
82
- value: _vm.handleBlur,
83
- expression: "handleBlur"
84
- }],
85
- ref: "input",
86
- attrs: {
87
- "tabindex": _vm.tabindex,
88
- "display-only": _vm.displayOnly,
89
- "front-clear-icon": "",
90
- "validate-event": false
91
- },
92
- on: {
93
- "update:modelValue": _vm.handleChange,
94
- "focus": _vm.handleFocus,
95
- "clear": _vm.handleClear,
96
- "keydown": [function($event) {
97
- if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])) return null;
98
- $event.preventDefault();
99
- return _vm.highlight(_vm.state.highlightedIndex - 1);
100
- }, function($event) {
101
- if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "down", 40, $event.key, ["Down", "ArrowDown"])) return null;
102
- $event.preventDefault();
103
- return _vm.highlight(_vm.state.highlightedIndex + 1);
104
- }, function($event) {
105
- if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
106
- return _vm.handleKeyEnter.apply(null, arguments);
107
- }, function($event) {
108
- if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) return null;
109
- return _vm.close.apply(null, arguments);
110
- }]
111
- },
112
- scopedSlots: _vm._u([_vm.slots.prepend ? {
113
- key: "prepend",
114
- fn: function fn() {
115
- return [_vm._t("prepend")];
116
- },
117
- proxy: true
118
- } : null, _vm.slots.append ? {
119
- key: "append",
120
- fn: function fn() {
121
- return [_vm._t("append")];
122
- },
123
- proxy: true
124
- } : null, _vm.slots.prefix ? {
125
- key: "prefix",
126
- fn: function fn() {
127
- return [_vm._t("prefix")];
128
- },
129
- proxy: true
130
- } : null, _vm.slots.suffix ? {
131
- key: "suffix",
132
- fn: function fn() {
133
- return [_vm._t("suffix")];
134
- },
135
- proxy: true
136
- } : null], null, true)
137
- }, "tiny-input", _vm.f(_vm.$props, _vm.$attrs), false)), _c("transition", {
138
- attrs: {
139
- "name": "tiny-zoom-in-top"
140
- },
141
- on: {
142
- "after-leave": _vm.doDestroy
143
- }
144
- }, [_c("div", {
145
- directives: [{
146
- name: "show",
147
- rawName: "v-show",
148
- value: _vm.hideLoading ? _vm.suggestionState.showPopper && !_vm.state.loading : _vm.suggestionState.showPopper,
149
- expression: "hideLoading ? suggestionState.showPopper && !state.loading : suggestionState.showPopper"
150
- }],
151
- ref: "popper",
152
- staticClass: "tiny-autocomplete-suggestion tiny-popper",
153
- class: [_vm.popperClass ? _vm.popperClass : "", {
154
- "is-loading": !_vm.hideLoading && _vm.state.loading
155
- }],
156
- style: {
157
- width: _vm.suggestionState.dropdownWidth
158
- },
159
- attrs: {
160
- "role": "region"
161
- }
162
- }, [_c("tiny-scrollbar", {
163
- attrs: {
164
- "tag": "ul",
165
- "wrap-class": "tiny-autocomplete-suggestion__wrap",
166
- "view-class": "tiny-autocomplete-suggestion__list"
167
- }
168
- }, [_vm._t("panel", function() {
169
- return [!_vm.hideLoading && _vm.state.loading ? _c("li", {
170
- staticClass: "tiny-autocomplete-suggestion__list-item tiny-autocomplete-suggestion__list-loading",
171
- attrs: {
172
- "role": "loading"
173
- }
174
- }, [_c("icon-loading-shadow")], 1) : _vm._l(_vm.state.suggestions, function(item, index) {
175
- return _c("li", {
176
- key: index,
177
- staticClass: "tiny-autocomplete-suggestion__list-item",
178
- class: {
179
- highlighted: _vm.state.highlightedIndex === index,
180
- selected: _vm.modelValue === item[_vm.valueKey]
181
- },
182
- attrs: {
183
- "id": _vm.state.id + "-item-" + index,
184
- "role": "option",
185
- "aria-selected": _vm.state.highlightedIndex === index
186
- },
187
- on: {
188
- "click": function click($event) {
189
- return _vm.select(item);
190
- }
191
- }
192
- }, [_vm._t("default", function() {
193
- return [_vm._v(" " + _vm._s(item[_vm.valueKey]) + " ")];
194
- }, {
195
- "slotScope": item
196
- })], 2);
197
- })];
198
- }, {
199
- "loading": !_vm.hideLoading && _vm.state.loading,
200
- "list": _vm.state.suggestions,
201
- "highlighted": _vm.state.highlightedIndex,
202
- "id": _vm.state.id,
203
- "select": _vm.select
204
- })], 2)], 1)])], 1);
62
+ var _hoisted_1 = ["aria-expanded", "aria-owns"];
63
+ var _hoisted_2 = {
64
+ key: 0,
65
+ class: "tiny-autocomplete-suggestion__list-item tiny-autocomplete-suggestion__list-loading",
66
+ role: "loading"
205
67
  };
206
- var staticRenderFns = [];
207
- var __cssModules = {};
208
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
209
- function __vue2_injectStyles(context) {
210
- for (var o in __cssModules) {
211
- this[o] = __cssModules[o];
212
- }
68
+ var _hoisted_3 = ["onClick", "id", "aria-selected"];
69
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
70
+ var _component_tiny_input = resolveComponent("tiny-input");
71
+ var _component_icon_loading_shadow = resolveComponent("icon-loading-shadow");
72
+ var _component_tiny_scrollbar = resolveComponent("tiny-scrollbar");
73
+ var _directive_clickoutside = resolveDirective("clickoutside");
74
+ return withDirectives((openBlock(), createElementBlock("div", {
75
+ class: normalizeClass(["tiny-autocomplete", {
76
+ "show-auto-width": _ctx.state.showAutoWidth
77
+ }]),
78
+ "aria-haspopup": "listbox",
79
+ role: "combobox",
80
+ "aria-expanded": _ctx.state.suggestionVisible,
81
+ "aria-owns": _ctx.state.id
82
+ }, [withDirectives((openBlock(), createBlock(_component_tiny_input, mergeProps({
83
+ tabindex: _ctx.tabindex,
84
+ "display-only": _ctx.displayOnly,
85
+ ref: "input"
86
+ }, _ctx.f(_ctx.$props, _ctx.$attrs), {
87
+ "front-clear-icon": "",
88
+ "onUpdate:modelValue": _ctx.handleChange,
89
+ "validate-event": false,
90
+ onFocus: _ctx.handleFocus,
91
+ onClear: _ctx.handleClear,
92
+ onKeydown: [_cache[0] || (_cache[0] = withKeys(withModifiers(function($event) {
93
+ return _ctx.highlight(_ctx.state.highlightedIndex - 1);
94
+ }, ["prevent"]), ["up"])), _cache[1] || (_cache[1] = withKeys(withModifiers(function($event) {
95
+ return _ctx.highlight(_ctx.state.highlightedIndex + 1);
96
+ }, ["prevent"]), ["down"])), withKeys(_ctx.handleKeyEnter, ["enter"]), withKeys(_ctx.close, ["tab"])]
97
+ }), createSlots({
98
+ _: 2
99
+ /* DYNAMIC */
100
+ }, [_ctx.slots.prepend ? {
101
+ name: "prepend",
102
+ fn: withCtx(function() {
103
+ return [renderSlot(_ctx.$slots, "prepend")];
104
+ }),
105
+ key: "0"
106
+ } : void 0, _ctx.slots.append ? {
107
+ name: "append",
108
+ fn: withCtx(function() {
109
+ return [renderSlot(_ctx.$slots, "append")];
110
+ }),
111
+ key: "1"
112
+ } : void 0, _ctx.slots.prefix ? {
113
+ name: "prefix",
114
+ fn: withCtx(function() {
115
+ return [renderSlot(_ctx.$slots, "prefix")];
116
+ }),
117
+ key: "2"
118
+ } : void 0, _ctx.slots.suffix ? {
119
+ name: "suffix",
120
+ fn: withCtx(function() {
121
+ return [renderSlot(_ctx.$slots, "suffix")];
122
+ }),
123
+ key: "3"
124
+ } : void 0]), 1040, ["tabindex", "display-only", "onUpdate:modelValue", "onFocus", "onClear", "onKeydown"])), [[_directive_clickoutside, _ctx.handleBlur]]), createVNode(Transition, {
125
+ name: "tiny-zoom-in-top",
126
+ onAfterLeave: _ctx.doDestroy,
127
+ persisted: ""
128
+ }, {
129
+ default: withCtx(function() {
130
+ return [withDirectives(createElementVNode(
131
+ "div",
132
+ {
133
+ ref: "popper",
134
+ class: normalizeClass(["tiny-autocomplete-suggestion tiny-popper", [_ctx.popperClass ? _ctx.popperClass : "", {
135
+ "is-loading": !_ctx.hideLoading && _ctx.state.loading
136
+ }]]),
137
+ style: normalizeStyle({
138
+ width: _ctx.suggestionState.dropdownWidth
139
+ }),
140
+ role: "region"
141
+ },
142
+ [createVNode(_component_tiny_scrollbar, {
143
+ tag: "ul",
144
+ "wrap-class": "tiny-autocomplete-suggestion__wrap",
145
+ "view-class": "tiny-autocomplete-suggestion__list"
146
+ }, {
147
+ default: withCtx(function() {
148
+ return [renderSlot(_ctx.$slots, "panel", {
149
+ loading: !_ctx.hideLoading && _ctx.state.loading,
150
+ list: _ctx.state.suggestions,
151
+ highlighted: _ctx.state.highlightedIndex,
152
+ id: _ctx.state.id,
153
+ select: _ctx.select
154
+ }, function() {
155
+ return [!_ctx.hideLoading && _ctx.state.loading ? (openBlock(), createElementBlock("li", _hoisted_2, [createVNode(_component_icon_loading_shadow)])) : (openBlock(true), createElementBlock(
156
+ Fragment,
157
+ {
158
+ key: 1
159
+ },
160
+ renderList(_ctx.state.suggestions, function(item, index) {
161
+ return openBlock(), createElementBlock("li", {
162
+ key: index,
163
+ class: normalizeClass(["tiny-autocomplete-suggestion__list-item", {
164
+ highlighted: _ctx.state.highlightedIndex === index,
165
+ selected: _ctx.modelValue === item[_ctx.valueKey]
166
+ }]),
167
+ onClick: function onClick($event) {
168
+ return _ctx.select(item);
169
+ },
170
+ id: _ctx.state.id + "-item-" + index,
171
+ role: "option",
172
+ "aria-selected": _ctx.state.highlightedIndex === index
173
+ }, [renderSlot(_ctx.$slots, "default", {
174
+ slotScope: item
175
+ }, function() {
176
+ return [createTextVNode(
177
+ toDisplayString(item[_ctx.valueKey]),
178
+ 1
179
+ /* TEXT */
180
+ )];
181
+ })], 10, _hoisted_3);
182
+ }),
183
+ 128
184
+ /* KEYED_FRAGMENT */
185
+ ))];
186
+ })];
187
+ }),
188
+ _: 3
189
+ /* FORWARDED */
190
+ })],
191
+ 6
192
+ /* CLASS, STYLE */
193
+ ), [[vShow, _ctx.hideLoading ? _ctx.suggestionState.showPopper && !_ctx.state.loading : _ctx.suggestionState.showPopper]])];
194
+ }),
195
+ _: 3
196
+ /* FORWARDED */
197
+ }, 8, ["onAfterLeave"])], 10, _hoisted_1)), [[_directive_clickoutside, _ctx.close]]);
213
198
  }
214
- var pc = /* @__PURE__ */ function() {
215
- return __component__.exports;
216
- }();
199
+ var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
217
200
 
218
201
  export { pc as default };
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-autocomplete",
3
3
  "type": "module",
4
- "version": "2.22.0",
4
+ "version": "3.22.0",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
8
8
  "main": "./lib/index.js",
9
9
  "module": "./lib/index.js",
10
10
  "dependencies": {
11
- "@opentinyvue/vue-common": "~2.22.0",
12
- "@opentinyvue/vue-directive": "~2.22.0",
13
- "@opentinyvue/vue-icon": "~2.22.0",
14
- "@opentinyvue/vue-input": "~2.22.0",
11
+ "@opentinyvue/vue-common": "~3.22.0",
12
+ "@opentinyvue/vue-directive": "~3.22.0",
13
+ "@opentinyvue/vue-icon": "~3.22.0",
14
+ "@opentinyvue/vue-input": "~3.22.0",
15
15
  "@opentinyvue/vue-renderless": "~3.22.0",
16
- "@opentinyvue/vue-scrollbar": "~2.22.0",
16
+ "@opentinyvue/vue-scrollbar": "~3.22.0",
17
17
  "@opentinyvue/vue-theme": "~3.22.0"
18
18
  },
19
19
  "types": "index.d.ts",
package/src/index.d.ts CHANGED
@@ -69,5 +69,163 @@ export declare const autoCompleteProps: {
69
69
  tiny_theme: StringConstructor;
70
70
  tiny_chart_theme: ObjectConstructor;
71
71
  };
72
- declare const _default: any;
72
+ declare const _default: import("@vue/runtime-core").DefineComponent<{
73
+ _constants: {
74
+ type: ObjectConstructor;
75
+ default: () => {
76
+ WARP_CLS: string;
77
+ ITEM_CLS: string;
78
+ };
79
+ };
80
+ autofocus: BooleanConstructor;
81
+ clearable: {
82
+ type: BooleanConstructor;
83
+ default: () => boolean;
84
+ };
85
+ customItem: StringConstructor;
86
+ debounce: {
87
+ type: NumberConstructor;
88
+ default: () => number;
89
+ };
90
+ disabled: BooleanConstructor;
91
+ fetchSuggestions: FunctionConstructor;
92
+ hideLoading: BooleanConstructor;
93
+ highlightFirstItem: {
94
+ type: BooleanConstructor;
95
+ default: () => boolean;
96
+ };
97
+ label: StringConstructor;
98
+ maxlength: NumberConstructor;
99
+ minlength: NumberConstructor;
100
+ modelValue: StringConstructor;
101
+ name: StringConstructor;
102
+ placeholder: StringConstructor;
103
+ placement: {
104
+ type: StringConstructor;
105
+ default: () => string;
106
+ };
107
+ popperAppendToBody: {
108
+ type: BooleanConstructor;
109
+ default: () => boolean;
110
+ };
111
+ popperClass: StringConstructor;
112
+ popperOptions: ObjectConstructor;
113
+ prefixIcon: (StringConstructor | ObjectConstructor)[];
114
+ selectWhenUnmatched: {
115
+ type: BooleanConstructor;
116
+ default: () => boolean;
117
+ };
118
+ size: StringConstructor;
119
+ suffixIcon: (StringConstructor | ObjectConstructor)[];
120
+ triggerOnFocus: {
121
+ type: BooleanConstructor;
122
+ default: () => boolean;
123
+ };
124
+ valueKey: {
125
+ type: StringConstructor;
126
+ default: () => string;
127
+ };
128
+ displayOnly: {
129
+ type: BooleanConstructor;
130
+ default: boolean;
131
+ };
132
+ validateEvent: {
133
+ type: BooleanConstructor;
134
+ default: undefined;
135
+ };
136
+ tiny_mode: StringConstructor;
137
+ tiny_mode_root: BooleanConstructor;
138
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
139
+ tiny_renderless: FunctionConstructor;
140
+ tiny_theme: StringConstructor;
141
+ tiny_chart_theme: ObjectConstructor;
142
+ }, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
143
+ [key: string]: any;
144
+ }>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
145
+ _constants: {
146
+ type: ObjectConstructor;
147
+ default: () => {
148
+ WARP_CLS: string;
149
+ ITEM_CLS: string;
150
+ };
151
+ };
152
+ autofocus: BooleanConstructor;
153
+ clearable: {
154
+ type: BooleanConstructor;
155
+ default: () => boolean;
156
+ };
157
+ customItem: StringConstructor;
158
+ debounce: {
159
+ type: NumberConstructor;
160
+ default: () => number;
161
+ };
162
+ disabled: BooleanConstructor;
163
+ fetchSuggestions: FunctionConstructor;
164
+ hideLoading: BooleanConstructor;
165
+ highlightFirstItem: {
166
+ type: BooleanConstructor;
167
+ default: () => boolean;
168
+ };
169
+ label: StringConstructor;
170
+ maxlength: NumberConstructor;
171
+ minlength: NumberConstructor;
172
+ modelValue: StringConstructor;
173
+ name: StringConstructor;
174
+ placeholder: StringConstructor;
175
+ placement: {
176
+ type: StringConstructor;
177
+ default: () => string;
178
+ };
179
+ popperAppendToBody: {
180
+ type: BooleanConstructor;
181
+ default: () => boolean;
182
+ };
183
+ popperClass: StringConstructor;
184
+ popperOptions: ObjectConstructor;
185
+ prefixIcon: (StringConstructor | ObjectConstructor)[];
186
+ selectWhenUnmatched: {
187
+ type: BooleanConstructor;
188
+ default: () => boolean;
189
+ };
190
+ size: StringConstructor;
191
+ suffixIcon: (StringConstructor | ObjectConstructor)[];
192
+ triggerOnFocus: {
193
+ type: BooleanConstructor;
194
+ default: () => boolean;
195
+ };
196
+ valueKey: {
197
+ type: StringConstructor;
198
+ default: () => string;
199
+ };
200
+ displayOnly: {
201
+ type: BooleanConstructor;
202
+ default: boolean;
203
+ };
204
+ validateEvent: {
205
+ type: BooleanConstructor;
206
+ default: undefined;
207
+ };
208
+ tiny_mode: StringConstructor;
209
+ tiny_mode_root: BooleanConstructor;
210
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
211
+ tiny_renderless: FunctionConstructor;
212
+ tiny_theme: StringConstructor;
213
+ tiny_chart_theme: ObjectConstructor;
214
+ }>>, {
215
+ disabled: boolean;
216
+ placement: string;
217
+ tiny_mode_root: boolean;
218
+ _constants: Record<string, any>;
219
+ popperAppendToBody: boolean;
220
+ autofocus: boolean;
221
+ clearable: boolean;
222
+ validateEvent: boolean;
223
+ displayOnly: boolean;
224
+ valueKey: string;
225
+ triggerOnFocus: boolean;
226
+ selectWhenUnmatched: boolean;
227
+ debounce: number;
228
+ hideLoading: boolean;
229
+ highlightFirstItem: boolean;
230
+ }, {}>;
73
231
  export default _default;
package/src/pc.vue.d.ts CHANGED
@@ -1,2 +1,123 @@
1
- declare const _default: any;
1
+ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
+ name?: any;
3
+ label?: any;
4
+ disabled?: any;
5
+ size?: any;
6
+ placement?: any;
7
+ tiny_mode?: any;
8
+ tiny_mode_root?: any;
9
+ tiny_template?: any;
10
+ tiny_renderless?: any;
11
+ _constants?: any;
12
+ tiny_theme?: any;
13
+ tiny_chart_theme?: any;
14
+ modelValue?: any;
15
+ tabindex?: any;
16
+ suffixIcon?: any;
17
+ popperClass?: any;
18
+ popperAppendToBody?: any;
19
+ autofocus?: any;
20
+ popperOptions?: any;
21
+ prefixIcon?: any;
22
+ clearable?: any;
23
+ validateEvent?: any;
24
+ displayOnly?: any;
25
+ placeholder?: any;
26
+ maxlength?: any;
27
+ valueKey?: any;
28
+ minlength?: any;
29
+ fetchSuggestions?: any;
30
+ triggerOnFocus?: any;
31
+ customItem?: any;
32
+ selectWhenUnmatched?: any;
33
+ debounce?: any;
34
+ hideLoading?: any;
35
+ highlightFirstItem?: any;
36
+ }>, {
37
+ t: (this: any, path: any, options?: any) => any;
38
+ vm: any;
39
+ f: (props: any, attrs?: {}) => {};
40
+ a: (attrs: any, filters: any, include: any) => {};
41
+ d: (props: any) => void;
42
+ dp: (props: any) => void;
43
+ gcls: (key: any) => any;
44
+ m: (...cssClasses: any[]) => string;
45
+ }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("select" | "blur" | "focus" | "clear" | "created" | "update:modelValue")[], "select" | "blur" | "focus" | "clear" | "created" | "update:modelValue", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
46
+ name?: any;
47
+ label?: any;
48
+ disabled?: any;
49
+ size?: any;
50
+ placement?: any;
51
+ tiny_mode?: any;
52
+ tiny_mode_root?: any;
53
+ tiny_template?: any;
54
+ tiny_renderless?: any;
55
+ _constants?: any;
56
+ tiny_theme?: any;
57
+ tiny_chart_theme?: any;
58
+ modelValue?: any;
59
+ tabindex?: any;
60
+ suffixIcon?: any;
61
+ popperClass?: any;
62
+ popperAppendToBody?: any;
63
+ autofocus?: any;
64
+ popperOptions?: any;
65
+ prefixIcon?: any;
66
+ clearable?: any;
67
+ validateEvent?: any;
68
+ displayOnly?: any;
69
+ placeholder?: any;
70
+ maxlength?: any;
71
+ valueKey?: any;
72
+ minlength?: any;
73
+ fetchSuggestions?: any;
74
+ triggerOnFocus?: any;
75
+ customItem?: any;
76
+ selectWhenUnmatched?: any;
77
+ debounce?: any;
78
+ hideLoading?: any;
79
+ highlightFirstItem?: any;
80
+ }>>> & {
81
+ onSelect?: ((...args: any[]) => any) | undefined;
82
+ onBlur?: ((...args: any[]) => any) | undefined;
83
+ onFocus?: ((...args: any[]) => any) | undefined;
84
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
85
+ onClear?: ((...args: any[]) => any) | undefined;
86
+ onCreated?: ((...args: any[]) => any) | undefined;
87
+ }, {
88
+ readonly name?: any;
89
+ readonly label?: any;
90
+ readonly disabled?: any;
91
+ readonly size?: any;
92
+ readonly placement?: any;
93
+ readonly tiny_mode?: any;
94
+ readonly tiny_mode_root?: any;
95
+ readonly tiny_template?: any;
96
+ readonly tiny_renderless?: any;
97
+ readonly _constants?: any;
98
+ readonly tiny_theme?: any;
99
+ readonly tiny_chart_theme?: any;
100
+ readonly modelValue?: any;
101
+ readonly tabindex?: any;
102
+ readonly suffixIcon?: any;
103
+ readonly popperClass?: any;
104
+ readonly popperAppendToBody?: any;
105
+ readonly autofocus?: any;
106
+ readonly popperOptions?: any;
107
+ readonly prefixIcon?: any;
108
+ readonly clearable?: any;
109
+ readonly validateEvent?: any;
110
+ readonly displayOnly?: any;
111
+ readonly placeholder?: any;
112
+ readonly maxlength?: any;
113
+ readonly valueKey?: any;
114
+ readonly minlength?: any;
115
+ readonly fetchSuggestions?: any;
116
+ readonly triggerOnFocus?: any;
117
+ readonly customItem?: any;
118
+ readonly selectWhenUnmatched?: any;
119
+ readonly debounce?: any;
120
+ readonly hideLoading?: any;
121
+ readonly highlightFirstItem?: any;
122
+ }, {}>;
2
123
  export default _default;