eco-vue-js 0.8.5 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +2 -1
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +2 -1
- package/dist/components/Select/WSelect.vue.d.ts +1 -4
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +27 -19
- package/dist/components/Select/WSelectAsync.vue.d.ts +1 -4
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +16 -8
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +2 -7
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.js +3 -7
- package/dist/components/Select/WSelectSingle.vue.d.ts +2 -7
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue.js +4 -7
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +1 -0
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.js +3 -2
- package/dist/components/Select/types.d.ts +3 -2
- package/dist/components/Select/types.d.ts.map +1 -1
- package/package.json +1 -1
@@ -22,7 +22,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
22
|
emptyStub: {},
|
23
23
|
disableClear: { type: Boolean },
|
24
24
|
hidePrefix: { type: Boolean },
|
25
|
-
|
25
|
+
createOption: { type: Function },
|
26
|
+
filterOptions: { type: Function },
|
26
27
|
hideOptionIcon: { type: Boolean },
|
27
28
|
mobileTitle: {},
|
28
29
|
persist: { type: Boolean },
|
@@ -23,7 +23,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
23
|
useQueryFnDefault: {},
|
24
24
|
emptyStub: {},
|
25
25
|
hidePrefix: { type: Boolean },
|
26
|
-
|
26
|
+
createOption: { type: Function },
|
27
|
+
filterOptions: { type: Function },
|
27
28
|
hideOptionIcon: { type: Boolean },
|
28
29
|
mobileTitle: {},
|
29
30
|
persist: { type: Boolean },
|
@@ -5,14 +5,12 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
5
5
|
readonly onBlur?: ((value: FocusEvent) => any) | undefined;
|
6
6
|
readonly onFocus?: ((value: FocusEvent) => any) | undefined;
|
7
7
|
readonly onUnselect?: ((item: Model) => any) | undefined;
|
8
|
-
readonly "onCreate:option"?: ((value: string) => any) | undefined;
|
9
8
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
|
10
9
|
onSelect?: ((item: Model) => any) | undefined;
|
11
10
|
onBlur?: ((value: FocusEvent) => any) | undefined;
|
12
11
|
onFocus?: ((value: FocusEvent) => any) | undefined;
|
13
12
|
onUnselect?: ((item: Model) => any) | undefined;
|
14
|
-
|
15
|
-
}>, never>, "onFocus" | "onBlur" | "onSelect" | "onUnselect" | "onCreate:option"> & SelectProps<Model, Data, OptionComponent>> & import('vue').PublicProps;
|
13
|
+
}>, never>, "onFocus" | "onBlur" | "onSelect" | "onUnselect"> & SelectProps<Model, Data, OptionComponent>> & import('vue').PublicProps;
|
16
14
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
17
15
|
focus: () => void;
|
18
16
|
blur: () => void;
|
@@ -43,7 +41,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
43
41
|
emit: {
|
44
42
|
(e: "select", item: Model): void;
|
45
43
|
(e: "unselect", item: Model): void;
|
46
|
-
(e: "create:option", value: string): void;
|
47
44
|
(e: "focus", value: FocusEvent): void;
|
48
45
|
(e: "blur", value: FocusEvent): void;
|
49
46
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"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AG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;;;;;YA4mBM,OAAO,CAAC,OAAO,WAAW,CAAC;;AA3nBvE,wBA2nB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -22,7 +22,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
22
|
emptyStub: {},
|
23
23
|
disableClear: { type: Boolean },
|
24
24
|
hidePrefix: { type: Boolean },
|
25
|
-
|
25
|
+
createOption: { type: Function },
|
26
|
+
filterOptions: { type: Function },
|
26
27
|
hideOptionIcon: { type: Boolean },
|
27
28
|
mobileTitle: {},
|
28
29
|
persist: { type: Boolean },
|
@@ -63,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
63
64
|
optionComponent: {},
|
64
65
|
optionComponentProps: {}
|
65
66
|
},
|
66
|
-
emits: ["select", "unselect", "
|
67
|
+
emits: ["select", "unselect", "focus", "blur"],
|
67
68
|
setup(__props, { expose: __expose, emit: __emit }) {
|
68
69
|
const props = __props;
|
69
70
|
const emit = __emit;
|
@@ -75,11 +76,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
75
76
|
const searchPrepared = computed(() => search.value.trim().toLocaleLowerCase());
|
76
77
|
const enabled = computed(() => !props.disabled);
|
77
78
|
const { data, isLoading } = props.useQueryFnOptions({ enabled });
|
78
|
-
const
|
79
|
-
const
|
79
|
+
const optionsPrepared = computed(() => !data.value ? [] : props.filterOptions ? data.value.filter((option) => props.filterOptions?.(option) ?? true) : data.value);
|
80
|
+
const optionsFiltered = computed(() => searchPrepared.value === "" ? optionsPrepared.value : optionsPrepared.value.filter((option) => props.searchFn(option, searchPrepared.value)));
|
81
|
+
const lastIndex = computed(() => props.createOption ? optionsFiltered.value.length : optionsFiltered.value.length - 1);
|
80
82
|
const isMobile = getIsMobile();
|
81
83
|
const focused = ref(false);
|
82
84
|
const loadingOptionIndex = ref(null);
|
85
|
+
const loadingCreate = ref(false);
|
83
86
|
const isDisabled = computed(() => props.loading || props.readonly || props.disabled);
|
84
87
|
const prefixList = computed(() => props.modelValue.map((value) => data.value?.find((item) => props.valueGetter(item) === value)).filter((item) => item !== void 0));
|
85
88
|
const close = () => {
|
@@ -104,16 +107,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
104
107
|
const cursorUp = () => {
|
105
108
|
if (isDisabled.value) return;
|
106
109
|
lockCursor();
|
107
|
-
cursor.value = !
|
110
|
+
cursor.value = !optionsFiltered.value.length ? 0 : cursor.value < 1 ? lastIndex.value : cursor.value - 1;
|
108
111
|
};
|
109
112
|
const cursorDown = () => {
|
110
113
|
if (isDisabled.value) return;
|
111
114
|
lockCursor();
|
112
|
-
cursor.value = !
|
115
|
+
cursor.value = !optionsFiltered.value.length ? 0 : cursor.value >= lastIndex.value ? 0 : cursor.value + 1;
|
113
116
|
};
|
114
117
|
const selectCursor = () => {
|
115
118
|
if (isDisabled.value) return;
|
116
|
-
const value = cursor.value !== -1 ? props.valueGetter(
|
119
|
+
const value = cursor.value !== -1 ? props.valueGetter(optionsFiltered.value[cursor.value]) : void 0;
|
117
120
|
if (value) {
|
118
121
|
setLoadingOptionIndex(cursor.value);
|
119
122
|
if (props.modelValue.includes(value)) unselect(value);
|
@@ -145,12 +148,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
145
148
|
emit("unselect", item);
|
146
149
|
search.value = "";
|
147
150
|
};
|
148
|
-
const createOption = (
|
151
|
+
const createOption = async (value) => {
|
149
152
|
if (isDisabled.value) return;
|
150
|
-
if (!props.
|
151
|
-
|
152
|
-
|
153
|
-
|
153
|
+
if (!props.createOption) return;
|
154
|
+
loadingCreate.value = true;
|
155
|
+
const option = await props.createOption(value);
|
156
|
+
if (option) {
|
157
|
+
setLoadingOptionIndex(optionsFiltered.value.length);
|
158
|
+
select(props.valueGetter(option));
|
159
|
+
search.value = "";
|
160
|
+
}
|
161
|
+
loadingCreate.value = false;
|
154
162
|
};
|
155
163
|
const focus = () => {
|
156
164
|
input.value?.focus();
|
@@ -184,7 +192,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
184
192
|
...props,
|
185
193
|
modelValue: search.value,
|
186
194
|
hideInput: _ctx.modelValue.length === 0 ? false : unref(isMobile) ? !focused.value : !isOpen.value,
|
187
|
-
loading: _ctx.loading || unref(isLoading)
|
195
|
+
loading: _ctx.loading || unref(isLoading) || loadingCreate.value
|
188
196
|
}, {
|
189
197
|
class: _ctx.$attrs.class,
|
190
198
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => !_ctx.loading && !unref(isLoading) && (search.value = $event ?? "")),
|
@@ -232,10 +240,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
232
240
|
}), 128)) : createCommentVNode("", true)
|
233
241
|
]),
|
234
242
|
content: withCtx(() => [
|
235
|
-
!
|
243
|
+
!optionsFiltered.value.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
236
244
|
createElementVNode("div", _hoisted_2, toDisplayString(_ctx.emptyStub ?? "No match"), 1)
|
237
245
|
])) : createCommentVNode("", true),
|
238
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
246
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(optionsFiltered.value, (option, index) => {
|
239
247
|
return openBlock(), createBlock(_sfc_main$3, {
|
240
248
|
key: _ctx.valueGetter(option),
|
241
249
|
"is-selected": _ctx.modelValue.includes(_ctx.valueGetter(option)),
|
@@ -270,16 +278,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
270
278
|
_: 2
|
271
279
|
}, 1032, ["is-selected", "is-cursor", "loading", "scroll", "hide-option-icon", "onSelect", "onUnselect", "onMouseenter"]);
|
272
280
|
}), 128)),
|
273
|
-
|
281
|
+
createOption && search.value !== "" ? (openBlock(), createBlock(_sfc_main$3, {
|
274
282
|
key: 1,
|
275
283
|
"is-selected": false,
|
276
|
-
"is-cursor": cursor.value ===
|
277
|
-
loading: loadingOptionIndex.value ===
|
284
|
+
"is-cursor": cursor.value === optionsFiltered.value.length,
|
285
|
+
loading: (loadingCreate.value || loadingOptionIndex.value === optionsFiltered.value.length) && _ctx.loading,
|
278
286
|
scroll: isCursorLocked.value,
|
279
287
|
"hide-option-icon": _ctx.hideOptionIcon,
|
280
288
|
class: "first:pt-4 last:pb-4",
|
281
289
|
onSelect: _cache[0] || (_cache[0] = ($event) => createOption(search.value)),
|
282
|
-
onMouseenter: _cache[1] || (_cache[1] = ($event) => setCursor(
|
290
|
+
onMouseenter: _cache[1] || (_cache[1] = ($event) => setCursor(optionsFiltered.value.length))
|
283
291
|
}, {
|
284
292
|
prefix: withCtx(() => _cache[7] || (_cache[7] = [
|
285
293
|
createElementVNode("span", { class: "w-select-field pr-2 sm-not:px-3" }, " Create: ", -1)
|
@@ -4,13 +4,11 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
4
4
|
readonly onSelect?: ((item: Model) => any) | undefined;
|
5
5
|
readonly "onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
|
6
6
|
readonly onUnselect?: ((item: Model) => any) | undefined;
|
7
|
-
readonly "onCreate:option"?: ((value: string) => any) | undefined;
|
8
7
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
|
9
8
|
onSelect?: ((item: Model) => any) | undefined;
|
10
9
|
"onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
|
11
10
|
onUnselect?: ((item: Model) => any) | undefined;
|
12
|
-
|
13
|
-
}>, never>, "onSelect" | "onUpdate:modelValue" | "onUnselect" | "onCreate:option"> & SelectAsyncProps<Model, Data, QueryParams, OptionComponent>> & import('vue').PublicProps;
|
11
|
+
}>, never>, "onSelect" | "onUpdate:modelValue" | "onUnselect"> & SelectAsyncProps<Model, Data, QueryParams, OptionComponent>> & import('vue').PublicProps;
|
14
12
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
15
13
|
focus: () => void;
|
16
14
|
blur: () => void;
|
@@ -43,7 +41,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
43
41
|
(e: "select", item: Model): void;
|
44
42
|
(e: "unselect", item: Model): void;
|
45
43
|
(e: "update:modelValue", value: Model[]): void;
|
46
|
-
(e: "create:option", value: string): void;
|
47
44
|
};
|
48
45
|
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
49
46
|
[key: string]: any;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"AAmQA,OAAO,KAAK,EAAC,gBAAgB,EAAE,qBAAqB,EAA6B,MAAM,SAAS,CAAA;yBAG/E,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAC5H,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA+gBxD,mBAAmB,CAAC;;;;;;;;gIAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;;MAAsB,GAAG,IAAI;WACpE,GAAG;;gBAjZH,MAAM,IAAI;mBACP,MAAM,IAAI;gBACb,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;iBACrC,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;gBAH7G,MAAM,IAAI;mBACP,MAAM,IAAI;gBACb,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;iBACrC,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YAnHjH,QAAQ,QAAQ,KAAK,GAAG,IAAI;YAC5B,UAAU,QAAQ,KAAK,GAAG,IAAI;YAC9B,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;;;;;YAogBJ,OAAO,CAAC,OAAO,WAAW,CAAC;;AAzhBvE,wBAyhB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -22,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
22
|
emptyStub: { default: "No match" },
|
23
23
|
disableClear: { type: Boolean },
|
24
24
|
hidePrefix: { type: Boolean },
|
25
|
-
|
25
|
+
createOption: {},
|
26
26
|
hideOptionIcon: { type: Boolean },
|
27
27
|
mobileTitle: {},
|
28
28
|
persist: { type: Boolean },
|
@@ -63,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
63
63
|
optionComponent: {},
|
64
64
|
optionComponentProps: {}
|
65
65
|
},
|
66
|
-
emits: ["select", "unselect", "update:modelValue"
|
66
|
+
emits: ["select", "unselect", "update:modelValue"],
|
67
67
|
setup(__props, { expose: __expose, emit: __emit }) {
|
68
68
|
const props = __props;
|
69
69
|
const emit = __emit;
|
@@ -74,6 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
74
74
|
const focused = ref(false);
|
75
75
|
const isFetchingPrefix = ref(false);
|
76
76
|
const search = ref("");
|
77
|
+
const loadingCreate = ref(false);
|
77
78
|
const isDisabled = computed(() => props.loading || props.readonly || props.disabled);
|
78
79
|
const enabled = computed(() => !props.disabled);
|
79
80
|
const close = () => {
|
@@ -103,10 +104,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
103
104
|
emit("unselect", item);
|
104
105
|
search.value = "";
|
105
106
|
};
|
106
|
-
const create = () => {
|
107
|
+
const create = async () => {
|
107
108
|
if (isDisabled.value) return;
|
108
|
-
|
109
|
-
|
109
|
+
if (!props.createOption) return;
|
110
|
+
loadingCreate.value = true;
|
111
|
+
const option = await props.createOption(search.value);
|
112
|
+
if (option) {
|
113
|
+
select(props.valueGetter(option));
|
114
|
+
search.value = "";
|
115
|
+
}
|
116
|
+
loadingCreate.value = false;
|
110
117
|
};
|
111
118
|
const updateSelected = (value) => {
|
112
119
|
if (isDisabled.value) return;
|
@@ -140,7 +147,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
140
147
|
}, {
|
141
148
|
...props,
|
142
149
|
modelValue: search.value,
|
143
|
-
loading: _ctx.loading || isFetchingPrefix.value,
|
150
|
+
loading: _ctx.loading || isFetchingPrefix.value || loadingCreate.value,
|
144
151
|
hideInput: unref(isMobile) ? !focused.value : !isOpen.value
|
145
152
|
}, {
|
146
153
|
class: _ctx.$attrs.class,
|
@@ -201,9 +208,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
201
208
|
loading: _ctx.loading || isFetchingPrefix.value,
|
202
209
|
disabled: isDisabled.value,
|
203
210
|
"empty-stub": _ctx.emptyStub,
|
204
|
-
"allow-create": _ctx.
|
211
|
+
"allow-create": _ctx.createOption && search.value !== "",
|
205
212
|
"hide-option-icon": _ctx.hideOptionIcon,
|
206
213
|
"value-getter": _ctx.valueGetter,
|
214
|
+
"loading-create": loadingCreate.value,
|
207
215
|
onSelect: select,
|
208
216
|
onUnselect: unselect,
|
209
217
|
"onCreate:option": create,
|
@@ -226,7 +234,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
226
234
|
])
|
227
235
|
]),
|
228
236
|
_: 3
|
229
|
-
}, 8, ["model-value", "use-query-fn", "query-params", "is-invalid-page", "loading", "disabled", "empty-stub", "allow-create", "hide-option-icon", "value-getter"])
|
237
|
+
}, 8, ["model-value", "use-query-fn", "query-params", "is-invalid-page", "loading", "disabled", "empty-stub", "allow-create", "hide-option-icon", "value-getter", "loading-create"])
|
230
238
|
]),
|
231
239
|
_: 2
|
232
240
|
}, [
|
@@ -2,11 +2,9 @@ import { SelectAsyncSingleProps, SelectOptionComponent } from './types';
|
|
2
2
|
declare const _default: <Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
4
4
|
readonly "onUpdate:modelValue"?: ((value: AllowClear extends true ? Model | null : Model) => any) | undefined;
|
5
|
-
readonly "onCreate:option"?: ((value: string) => any) | undefined;
|
6
5
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
|
7
6
|
"onUpdate:modelValue"?: ((value: AllowClear extends true ? Model | null : Model) => any) | undefined;
|
8
|
-
|
9
|
-
}>, never>, "onUpdate:modelValue" | "onCreate:option"> & SelectAsyncSingleProps<Model, Data, QueryParams, OptionComponent, AllowClear>> & import('vue').PublicProps;
|
7
|
+
}>, never>, "onUpdate:modelValue"> & SelectAsyncSingleProps<Model, Data, QueryParams, OptionComponent, AllowClear>> & import('vue').PublicProps;
|
10
8
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
11
9
|
blur: () => void;
|
12
10
|
}>): void;
|
@@ -21,10 +19,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
21
19
|
}): any;
|
22
20
|
right?(_: {}): any;
|
23
21
|
};
|
24
|
-
emit:
|
25
|
-
(e: "update:modelValue", value: AllowClear extends true ? Model | null : Model): void;
|
26
|
-
(e: "create:option", value: string): void;
|
27
|
-
};
|
22
|
+
emit: (e: "update:modelValue", value: AllowClear extends true ? Model | null : Model) => void;
|
28
23
|
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
29
24
|
[key: string]: any;
|
30
25
|
}> & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAC,sBAAsB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;yBAGzD,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBACxJ,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAsLxD,mBAAmB,CAAC;;;;sHAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;uBAlCc,GAAG;0BACC,GAAG;;;;;YACL,GAAG;uBACJ,GAAG;;cA9IzB,mBAAmB,4DAAoB,IAAI;;;;YAkLL,OAAO,CAAC,OAAO,WAAW,CAAC;;AAhMvE,wBAgM4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -20,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
20
|
useQueryFnDefault: {},
|
21
21
|
emptyStub: {},
|
22
22
|
hidePrefix: { type: Boolean },
|
23
|
-
|
23
|
+
createOption: { type: Function },
|
24
24
|
hideOptionIcon: { type: Boolean },
|
25
25
|
mobileTitle: {},
|
26
26
|
persist: { type: Boolean },
|
@@ -61,7 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
61
61
|
optionComponent: {},
|
62
62
|
optionComponentProps: {}
|
63
63
|
},
|
64
|
-
emits: ["update:modelValue"
|
64
|
+
emits: ["update:modelValue"],
|
65
65
|
setup(__props, { expose: __expose, emit: __emit }) {
|
66
66
|
const props = __props;
|
67
67
|
const emit = __emit;
|
@@ -70,9 +70,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
70
70
|
const updateModelValue = (value) => {
|
71
71
|
emit("update:modelValue", value);
|
72
72
|
};
|
73
|
-
const createOption = (value) => {
|
74
|
-
emit("create:option", value);
|
75
|
-
};
|
76
73
|
const blur = () => {
|
77
74
|
selectComponent.value?.blur();
|
78
75
|
};
|
@@ -94,8 +91,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
94
91
|
}, {
|
95
92
|
class: _ctx.$attrs.class,
|
96
93
|
onSelect: _cache[0] || (_cache[0] = ($event) => updateModelValue($event)),
|
97
|
-
onUnselect: _cache[1] || (_cache[1] = ($event) => _ctx.allowClear && updateModelValue(null))
|
98
|
-
"onCreate:option": _cache[2] || (_cache[2] = ($event) => createOption($event))
|
94
|
+
onUnselect: _cache[1] || (_cache[1] = ($event) => _ctx.allowClear && updateModelValue(null))
|
99
95
|
}), createSlots({
|
100
96
|
option: withCtx(({ option, selected, model }) => [
|
101
97
|
renderSlot(_ctx.$slots, "option", {
|
@@ -2,11 +2,9 @@ import { SelectSingleProps, SelectOptionComponent } from './types';
|
|
2
2
|
declare const _default: <Model extends number | string, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
4
4
|
readonly "onUpdate:modelValue"?: ((value: AllowClear extends true ? Model | null : Model) => any) | undefined;
|
5
|
-
readonly "onCreate:option"?: ((value: string) => any) | undefined;
|
6
5
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
|
7
6
|
"onUpdate:modelValue"?: ((value: AllowClear extends true ? Model | null : Model) => any) | undefined;
|
8
|
-
|
9
|
-
}>, never>, "onUpdate:modelValue" | "onCreate:option"> & SelectSingleProps<Model, Data, OptionComponent, AllowClear>> & import('vue').PublicProps;
|
7
|
+
}>, never>, "onUpdate:modelValue"> & SelectSingleProps<Model, Data, OptionComponent, AllowClear>> & import('vue').PublicProps;
|
10
8
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
11
9
|
blur: () => void;
|
12
10
|
}>): void;
|
@@ -21,10 +19,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
21
19
|
}): any;
|
22
20
|
right?(_: {}): any;
|
23
21
|
};
|
24
|
-
emit:
|
25
|
-
(e: "update:modelValue", value: AllowClear extends true ? Model | null : Model): void;
|
26
|
-
(e: "create:option", value: string): void;
|
27
|
-
};
|
22
|
+
emit: (e: "update:modelValue", value: AllowClear extends true ? Model | null : Model) => void;
|
28
23
|
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
29
24
|
[key: string]: any;
|
30
25
|
}> & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectSingle.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectSingle.vue"],"names":[],"mappings":"AAsFA,OAAO,KAAK,EAAC,iBAAiB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;yBAGpD,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBAC3I,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAiMxD,mBAAmB,CAAC;;;;oGAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;uBAlCe,GAAG;0BACA,GAAG;;;;;YACL,GAAG;uBACJ,GAAG;;cAzJzB,mBAAmB,4DAAoB,IAAI;;;;YA6LL,OAAO,CAAC,OAAO,WAAW,CAAC;;AA3MvE,wBA2M4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -14,7 +14,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
useQueryFnDefault: {},
|
15
15
|
emptyStub: {},
|
16
16
|
hidePrefix: { type: Boolean },
|
17
|
-
|
17
|
+
createOption: { type: Function },
|
18
|
+
filterOptions: { type: Function },
|
18
19
|
hideOptionIcon: { type: Boolean },
|
19
20
|
mobileTitle: {},
|
20
21
|
persist: { type: Boolean },
|
@@ -55,7 +56,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
55
56
|
optionComponent: {},
|
56
57
|
optionComponentProps: {}
|
57
58
|
},
|
58
|
-
emits: ["update:modelValue"
|
59
|
+
emits: ["update:modelValue"],
|
59
60
|
setup(__props, { expose: __expose, emit: __emit }) {
|
60
61
|
const props = __props;
|
61
62
|
const emit = __emit;
|
@@ -65,9 +66,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
65
66
|
emit("update:modelValue", value);
|
66
67
|
blur();
|
67
68
|
};
|
68
|
-
const createOption = (value) => {
|
69
|
-
emit("create:option", value);
|
70
|
-
};
|
71
69
|
const blur = () => {
|
72
70
|
selectComponent.value?.blur();
|
73
71
|
};
|
@@ -88,8 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
88
86
|
class: _ctx.$attrs.class,
|
89
87
|
onSelect: _cache[0] || (_cache[0] = ($event) => updateModelValue($event)),
|
90
88
|
onUnselect: _cache[1] || (_cache[1] = ($event) => updateModelValue(_ctx.allowClear ? null : $event)),
|
91
|
-
|
92
|
-
onFocus: _cache[3] || (_cache[3] = ($event) => _ctx.searchModel && typeof _ctx.modelValue === "string" ? selectComponent.value?.setSearch(_ctx.modelValue) : void 0)
|
89
|
+
onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.searchModel && typeof _ctx.modelValue === "string" ? selectComponent.value?.setSearch(_ctx.modelValue) : void 0)
|
93
90
|
}), createSlots({
|
94
91
|
option: withCtx(({ option, selected, model }) => [
|
95
92
|
renderSlot(_ctx.$slots, "option", {
|
@@ -29,6 +29,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
29
29
|
hideOptionIcon?: boolean;
|
30
30
|
valueGetter: (data: Data) => Model;
|
31
31
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, QueryParams>>[1]>;
|
32
|
+
loadingCreate?: boolean;
|
32
33
|
}> & import('vue').PublicProps;
|
33
34
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
34
35
|
cursorUp: () => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncList.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"SelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncList.vue"],"names":[],"mappings":"yBAyNiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA8fxD,mBAAmB,CAAC;;;;;;;;;;;;;oBA1fh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 const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
22
|
allowCreate: { type: Boolean },
|
23
23
|
hideOptionIcon: { type: Boolean },
|
24
24
|
valueGetter: { type: Function },
|
25
|
-
queryOptions: {}
|
25
|
+
queryOptions: {},
|
26
|
+
loadingCreate: { type: Boolean }
|
26
27
|
},
|
27
28
|
emits: ["select", "unselect", "update:count", "update:modelValue", "create:option"],
|
28
29
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -158,7 +159,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
158
159
|
key: 0,
|
159
160
|
"is-selected": false,
|
160
161
|
"is-cursor": cursor.value === null,
|
161
|
-
loading: _ctx.loading && loadingOption.value === null,
|
162
|
+
loading: _ctx.loading && (_ctx.loadingCreate || loadingOption.value === null),
|
162
163
|
scroll: isCursorLocked.value,
|
163
164
|
previous: lastItem.value,
|
164
165
|
next: firstItem.value,
|
@@ -20,7 +20,8 @@ export interface SelectProps<Model extends number | string, Data extends Default
|
|
20
20
|
emptyStub?: string;
|
21
21
|
disableClear?: boolean;
|
22
22
|
hidePrefix?: boolean;
|
23
|
-
|
23
|
+
createOption?: (search: string) => (Data | undefined) | Promise<Data | undefined>;
|
24
|
+
filterOptions?: (option: Data) => boolean;
|
24
25
|
hideOptionIcon?: boolean;
|
25
26
|
}
|
26
27
|
export interface SelectPrefixProps<Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>> extends SelectOptionComponentProps<Data, OptionComponent> {
|
@@ -35,7 +36,7 @@ export interface SelectSingleProps<Model extends number | string, Data extends D
|
|
35
36
|
allowClear?: boolean & AllowClear;
|
36
37
|
searchModel?: boolean;
|
37
38
|
}
|
38
|
-
export interface SelectAsyncProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>> extends Omit<SelectProps<Model, Data, Component>, 'options' | 'optionComponent' | 'optionComponentProps' | 'searchFn' | 'useQueryFnOptions'>, SelectOptionComponentProps<Data, OptionComponent> {
|
39
|
+
export interface SelectAsyncProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>> extends Omit<SelectProps<Model, Data, Component>, 'options' | 'optionComponent' | 'optionComponentProps' | 'searchFn' | 'useQueryFnOptions' | 'filterOptions'>, SelectOptionComponentProps<Data, OptionComponent> {
|
39
40
|
useQueryFnOptions: UseQueryPaginated<Data, QueryParams>;
|
40
41
|
useQueryFnPrefix?: UseQueryPaginated<Data, QueryParams>;
|
41
42
|
isInvalidPage: (error: unknown) => boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC,MAAM,MAAM,iBAAiB,CAAC,MAAM,IAAI;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAE7G,MAAM,MAAM,qBAAqB,CAAC,MAAM,IAAI,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAA;AAEhF,MAAM,WAAW,0BAA0B,CAAC,MAAM,EAAE,eAAe,SAAS,qBAAqB,CAAC,MAAM,CAAC;IACvG,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,oBAAoB,CAAC,EAAE,eAAe,SAAS,SAAS,CAAC,MAAM,KAAK,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAA;CACtI;AAED,MAAM,WAAW,WAAW,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,eAAe,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