eco-vue-js 0.11.5 → 0.11.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Button/WButtonDropdown.vue.d.ts +0 -2
- package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +2 -6
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue.js +0 -2
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue.js +0 -2
- package/dist/components/Button/types.d.ts +1 -1
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/WDropdown.vue.js +29 -47
- package/dist/components/Dropdown/types.d.ts +0 -7
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts +35 -75
- package/dist/components/Dropdown/utils/DropdownStyle.d.ts.map +1 -1
- package/dist/components/Dropdown/utils/DropdownStyle.js +97 -164
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +0 -4
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +1 -5
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +0 -2
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +0 -2
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +0 -2
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +0 -2
- package/dist/components/Input/WInput.vue.d.ts +10 -1
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +8 -1
- package/dist/components/Input/WInputDate.vue.d.ts +16 -6
- package/dist/components/Input/WInputDate.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputDate.vue.js +0 -2
- package/dist/components/Input/WInputOptions.vue.js +0 -2
- package/dist/components/Input/WInputSuggest.vue.d.ts +11 -3
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +21 -18
- package/dist/components/Input/components/ContentEditable.vue.d.ts +7 -0
- package/dist/components/Input/components/ContentEditable.vue.d.ts.map +1 -1
- package/dist/components/Input/components/ContentEditable.vue.js +52 -37
- package/dist/components/Input/types.d.ts +4 -0
- package/dist/components/Input/types.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSettings.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSettings.vue.js +0 -2
- package/dist/components/List/components/HeaderSort.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSort.vue.js +0 -2
- package/dist/components/List/components/ListFilterSelect.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListFilterSelect.vue.js +0 -2
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.js +0 -2
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +75 -74
- package/dist/components/Select/WSelectAsync.vue.d.ts +2 -2
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +1 -2
- package/dist/components/Select/WSelectAsyncSingle.vue.js +0 -2
- package/dist/components/Select/WSelectSingle.vue.d.ts +5 -1
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue.js +8 -6
- package/dist/components/Select/WSelectStringified.vue.js +0 -2
- package/dist/components/Select/components/SelectAsyncList.vue.js +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts +0 -2
- package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltipContainer.vue.js +1 -3
- package/dist/utils/HorizontalAlign.d.ts +0 -1
- package/dist/utils/HorizontalAlign.d.ts.map +1 -1
- package/dist/utils/HorizontalAlign.js +0 -1
- package/package.json +1 -1
- package/tailwind-base/plugins/default.ts +14 -8
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, useTemplateRef, computed, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, createSlots, withCtx, createVNode, createCommentVNode, normalizeClass, renderSlot } from 'vue';
|
1
|
+
import { defineComponent, ref, useTemplateRef, computed, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, createSlots, withCtx, createVNode, createCommentVNode, normalizeClass, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
|
2
2
|
import _sfc_main$1 from '../BottomSheet/WBottomSheet.vue.js';
|
3
3
|
import _sfc_main$2 from '../DropdownMenu/WDropdownMenu.vue.js';
|
4
4
|
import _sfc_main$4 from '../InfiniteList/WInfiniteListScrollingElement.vue.js';
|
@@ -65,8 +65,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
65
65
|
savedText: {},
|
66
66
|
topText: { type: Boolean },
|
67
67
|
parentElement: {},
|
68
|
-
maxHeight: { default: 320 },
|
69
|
-
maxWidth: { default: 600 },
|
70
68
|
horizontalAlign: { default: HorizontalAlign.FILL },
|
71
69
|
top: { type: Boolean },
|
72
70
|
bottom: { type: Boolean }
|
@@ -94,21 +92,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
94
92
|
if (isMobile.value) open();
|
95
93
|
inputRef.value?.focus();
|
96
94
|
};
|
97
|
-
const blur = () =>
|
98
|
-
|
99
|
-
|
100
|
-
const
|
101
|
-
|
102
|
-
|
103
|
-
const updateDropdown = () => {
|
104
|
-
if (dropdownMenuRef.value && "updateDropdown" in dropdownMenuRef.value) dropdownMenuRef.value.updateDropdown();
|
105
|
-
};
|
95
|
+
const blur = () => inputRef.value?.blur();
|
96
|
+
const scrollToInput = () => inputRef.value?.scrollToInput();
|
97
|
+
const wrapSelection = (value) => inputRef.value?.wrapSelection(value);
|
98
|
+
const setCaret = (indexStart, indexEnd) => inputRef.value?.setCaret(indexStart, indexEnd);
|
99
|
+
const getSelectionOffsets = () => inputRef.value?.getSelectionOffsets();
|
100
|
+
const updateDropdown = () => dropdownMenuRef.value && "updateDropdown" in dropdownMenuRef.value ? dropdownMenuRef.value.updateDropdown() : void 0;
|
106
101
|
__expose({
|
107
102
|
focus,
|
108
103
|
blur,
|
109
104
|
close,
|
110
105
|
updateDropdown,
|
111
|
-
scrollToInput
|
106
|
+
scrollToInput,
|
107
|
+
wrapSelection,
|
108
|
+
setCaret,
|
109
|
+
getSelectionOffsets
|
112
110
|
});
|
113
111
|
return (_ctx, _cache) => {
|
114
112
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.static ? InputSuggestStatic : unref(isMobile) ? _sfc_main$1 : _sfc_main$2), mergeProps({ ref: "dropdownMenu" }, _ctx.static ? void 0 : unref(isMobile) ? {
|
@@ -116,8 +114,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
116
114
|
onClose: close
|
117
115
|
} : {
|
118
116
|
isOpen: isOpen.value,
|
119
|
-
maxHeight: _ctx.maxHeight,
|
120
|
-
maxWidth: _ctx.maxWidth,
|
121
117
|
horizontalAlign: _ctx.horizontalAlign,
|
122
118
|
updateAlign: true,
|
123
119
|
parentElement: unref(inputRef)?.fieldRef
|
@@ -184,20 +180,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
184
180
|
]),
|
185
181
|
key: "1"
|
186
182
|
} : void 0,
|
183
|
+
_ctx.$slots.toolbar ? {
|
184
|
+
name: "toolbar",
|
185
|
+
fn: withCtx((scope) => [
|
186
|
+
renderSlot(_ctx.$slots, "toolbar", normalizeProps(guardReactiveProps(scope)))
|
187
|
+
]),
|
188
|
+
key: "2"
|
189
|
+
} : void 0,
|
187
190
|
_ctx.$slots.bottom || _ctx.static && _ctx.$slots.content ? {
|
188
191
|
name: "bottom",
|
189
192
|
fn: withCtx(() => [
|
190
193
|
renderSlot(_ctx.$slots, "content"),
|
191
194
|
renderSlot(_ctx.$slots, "bottom")
|
192
195
|
]),
|
193
|
-
key: "
|
196
|
+
key: "3"
|
194
197
|
} : void 0,
|
195
198
|
_ctx.$slots.right ? {
|
196
199
|
name: "right",
|
197
200
|
fn: withCtx(() => [
|
198
201
|
renderSlot(_ctx.$slots, "right")
|
199
202
|
]),
|
200
|
-
key: "
|
203
|
+
key: "4"
|
201
204
|
} : void 0
|
202
205
|
]), 1040, ["class", "onFocus", "onBlur", "onClick", "onClick:suffix"])
|
203
206
|
]),
|
@@ -210,7 +213,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
210
213
|
parent: unref(isMobile),
|
211
214
|
class: normalizeClass(["bg-default dark:bg-default-dark w-full", {
|
212
215
|
"pb-[50vh]": unref(isMobile),
|
213
|
-
"
|
216
|
+
"max-h-[inherit] overflow-auto overscroll-contain rounded-xl shadow-md dark:border dark:border-solid dark:border-gray-800": !unref(isMobile),
|
214
217
|
"mt-5": "isTop" in contentScope && contentScope.isTop === false && (_ctx.errorMessage || _ctx.maxLength)
|
215
218
|
}])
|
216
219
|
}, {
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { WrapSelection } from '../types';
|
1
2
|
type __VLS_Props = {
|
2
3
|
value: string;
|
3
4
|
placeholder?: string;
|
@@ -6,6 +7,12 @@ type __VLS_Props = {
|
|
6
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
7
8
|
focus: () => void;
|
8
9
|
blur: () => void;
|
10
|
+
wrapSelection: (value: WrapSelection) => void;
|
11
|
+
setCaret: (indexStart: number, indexEnd?: number) => void;
|
12
|
+
getSelectionOffsets: () => {
|
13
|
+
start: number;
|
14
|
+
end: number;
|
15
|
+
};
|
9
16
|
offsetWidth: number;
|
10
17
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
11
18
|
blur: (value: FocusEvent) => any;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ContentEditable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/components/ContentEditable.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ContentEditable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/components/ContentEditable.vue"],"names":[],"mappings":"AAqBA;AAqLA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,UAAU,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;;;2BAgH4B,aAAa,KAAG,IAAI;2BAlBpB,MAAM,aAAa,MAAM;;;;;;;;;;;;;;;;;;;AAiIvD,wBAUG"}
|
@@ -13,6 +13,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
const props = __props;
|
14
14
|
const emit = __emit;
|
15
15
|
const elementRef = useTemplateRef("element");
|
16
|
+
const insertParagraph = (e) => {
|
17
|
+
if (e.inputType === "insertParagraph") {
|
18
|
+
e.preventDefault();
|
19
|
+
insertPlain("\n");
|
20
|
+
}
|
21
|
+
};
|
16
22
|
const onInput = (e) => {
|
17
23
|
e.stopImmediatePropagation();
|
18
24
|
if (!(e.target instanceof HTMLDivElement)) return;
|
@@ -33,59 +39,64 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
33
39
|
const text = (e.clipboardData?.getData("text/plain") || await navigator.clipboard.readText()).replace(/\r\n?/g, "\n");
|
34
40
|
insertPlain(text);
|
35
41
|
};
|
36
|
-
const onKeyDown = (e) => {
|
37
|
-
if (e.key === "Enter") {
|
38
|
-
e.preventDefault();
|
39
|
-
insertPlain("\n");
|
40
|
-
} else {
|
41
|
-
emit("keydown", e);
|
42
|
-
}
|
43
|
-
};
|
44
42
|
const insertPlain = (text) => {
|
45
43
|
const root = elementRef.value;
|
46
44
|
if (!root) return;
|
47
|
-
const { start, end } = getSelectionOffsets(
|
45
|
+
const { start, end } = getSelectionOffsets();
|
48
46
|
const next = (props.value ?? "").slice(0, start) + text + ((props.value ?? "").slice(end) || " ");
|
49
47
|
const caretAfter = start + text.length;
|
50
48
|
emit("update:model-value", next);
|
51
|
-
nextTick(() =>
|
49
|
+
nextTick(() => setCaret(caretAfter));
|
52
50
|
};
|
53
|
-
const getSelectionOffsets = (
|
51
|
+
const getSelectionOffsets = () => {
|
54
52
|
const selection = window.getSelection();
|
55
|
-
if (!selection || selection.rangeCount === 0) return { start: 0, end: 0 };
|
53
|
+
if (!elementRef.value || !selection || selection.rangeCount === 0) return { start: 0, end: 0 };
|
56
54
|
const range = selection.getRangeAt(0);
|
57
55
|
const pre = range.cloneRange();
|
58
|
-
pre.selectNodeContents(
|
56
|
+
pre.selectNodeContents(elementRef.value);
|
59
57
|
pre.setEnd(range.startContainer, range.startOffset);
|
60
58
|
const start = pre.toString().length;
|
61
59
|
const selected = range.toString().length;
|
62
60
|
return { start, end: start + selected };
|
63
61
|
};
|
64
|
-
const
|
65
|
-
if (!
|
66
|
-
|
67
|
-
|
62
|
+
const getNodeOffset = (index) => {
|
63
|
+
if (!elementRef.value || index === void 0) return void 0;
|
64
|
+
if (!elementRef.value.firstChild) elementRef.value.appendChild(document.createTextNode(""));
|
65
|
+
const walker = document.createTreeWalker(elementRef.value, NodeFilter.SHOW_TEXT, null);
|
66
|
+
let node, offset = index;
|
68
67
|
while (node = walker.nextNode()) {
|
69
68
|
const len = node.nodeValue?.length ?? 0;
|
70
|
-
if (
|
71
|
-
|
72
|
-
r2.setStart(node, pos);
|
73
|
-
r2.collapse(true);
|
74
|
-
const selection2 = window.getSelection();
|
75
|
-
selection2?.removeAllRanges();
|
76
|
-
selection2?.addRange(r2);
|
77
|
-
return;
|
78
|
-
}
|
79
|
-
pos -= len;
|
69
|
+
if (offset <= len) return { node, offset };
|
70
|
+
offset -= len;
|
80
71
|
}
|
81
|
-
const last =
|
82
|
-
if (!last) return;
|
83
|
-
|
84
|
-
|
85
|
-
|
72
|
+
const last = elementRef.value.lastChild;
|
73
|
+
if (!last) return void 0;
|
74
|
+
return { node: last, offset: last.nodeType === Node.TEXT_NODE && last.nodeValue ? last.nodeValue.length : last.childNodes.length };
|
75
|
+
};
|
76
|
+
const setCaret = (indexStart, indexEnd) => {
|
77
|
+
const start = getNodeOffset(indexStart);
|
78
|
+
if (start === void 0) return;
|
79
|
+
const range = document.createRange();
|
80
|
+
range.setStart(start.node, start.offset);
|
81
|
+
const end = getNodeOffset(indexEnd);
|
82
|
+
if (end !== void 0) range.setEnd(end.node, end.offset);
|
83
|
+
else range.collapse(true);
|
86
84
|
const selection = window.getSelection();
|
87
85
|
selection?.removeAllRanges();
|
88
|
-
selection?.addRange(
|
86
|
+
selection?.addRange(range);
|
87
|
+
};
|
88
|
+
const wrapSelection = (value) => {
|
89
|
+
const root = elementRef.value;
|
90
|
+
if (!root) return;
|
91
|
+
const { start, end } = getSelectionOffsets();
|
92
|
+
const currentText = props.value ?? "";
|
93
|
+
const selectedText = currentText.slice(start, end);
|
94
|
+
const beforeSelection = currentText.slice(0, start);
|
95
|
+
const afterSelection = currentText.slice(end);
|
96
|
+
const newText = beforeSelection + (value.start || "") + selectedText + (value.end || "") + afterSelection;
|
97
|
+
const cursorPosition = start + (value.start?.length ?? 0) + (value.end ? selectedText.length : 0);
|
98
|
+
emit("update:model-value", newText);
|
99
|
+
nextTick(() => setCaret(cursorPosition));
|
89
100
|
};
|
90
101
|
const focus = () => {
|
91
102
|
elementRef.value?.focus();
|
@@ -96,6 +107,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
96
107
|
__expose({
|
97
108
|
focus,
|
98
109
|
blur,
|
110
|
+
wrapSelection,
|
111
|
+
setCaret,
|
112
|
+
getSelectionOffsets,
|
99
113
|
get offsetWidth() {
|
100
114
|
return elementRef.value?.offsetWidth ?? 0;
|
101
115
|
}
|
@@ -109,12 +123,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
109
123
|
spellcheck: "false",
|
110
124
|
textContent: _ctx.value,
|
111
125
|
placeholder: _ctx.placeholder,
|
112
|
-
class: "whitespace-pre empty:before:pointer-events-none empty:before:text-gray-400 empty:before:[content:attr(placeholder)] dark:empty:before:text-gray-500",
|
126
|
+
class: "relative whitespace-pre empty:before:pointer-events-none empty:before:text-gray-400 empty:before:[content:attr(placeholder)] dark:empty:before:text-gray-500",
|
113
127
|
onInput,
|
128
|
+
onBeforeinput: insertParagraph,
|
114
129
|
onPaste,
|
115
|
-
onKeydown:
|
116
|
-
onFocus: _cache[
|
117
|
-
onBlur: _cache[
|
130
|
+
onKeydown: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("keydown", $event)),
|
131
|
+
onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("focus", $event)),
|
132
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("blur", $event))
|
118
133
|
}, null, 40, _hoisted_1);
|
119
134
|
};
|
120
135
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC,MAAM,WAAW,UAAU,CAAC,IAAI,SAAS,SAAS,CAAE,SAAQ,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC;IAC/F,UAAU,CAAC,EAAE,CAAC,IAAI,SAAS,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAA;IAClE,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,YAAY,CAAA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derSettings.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"HeaderSettings.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/HeaderSettings.vue"],"names":[],"mappings":"AAqEA;AAkJA,OAAO,KAAK,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,UAAU,CAAA;AAWrD,OAAO,EAAC,KAAK,QAAQ,EAAC,MAAM,eAAe,CAAA;yBAQ1B,IAAI,SAAS,WAAW,EAAE,WAAW,EACrD,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAyQO,mBAAmB,CAAC;;;;;gBAvQlB,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC;wBACrB,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;cACrC,QAAQ;qBACD,WAAW;kBACd,OAAO;gBACT,OAAO;mBACJ,OAAO;mBAiQ0E,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;YA9PL,yBAAyB,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,IAAI;YACpE,aAAa,SAAS,QAAQ,GAAG,IAAI;YACrC,aAAa,GAAG,IAAI;;EAgQtB,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AApRzE,wBAoR4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -66,8 +66,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
66
66
|
return (_ctx, _cache) => {
|
67
67
|
return openBlock(), createBlock(_sfc_main$1, {
|
68
68
|
"is-open": isOpen.value,
|
69
|
-
"max-width": 400,
|
70
|
-
"max-height": 300,
|
71
69
|
"horizontal-align": unref(HorizontalAlign).RIGHT_INNER
|
72
70
|
}, {
|
73
71
|
toggle: withCtx(() => [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HeaderSort.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/HeaderSort.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"HeaderSort.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/HeaderSort.vue"],"names":[],"mappings":"AAiCA;AAuFA,OAAO,KAAK,EAAiB,WAAW,EAA8B,UAAU,EAAC,MAAM,UAAU,CAAA;AACjG,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAW5C,OAAO,EAAC,KAAK,QAAQ,EAAC,MAAM,eAAe,CAAA;yBAI1B,IAAI,SAAS,WAAW,EAAE,WAAW,EACrD,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA2LO,mBAAmB,CAAC;;;;;;kBAvLhB,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE;gBACzB,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC;qBACxB,WAAW;mBACb,OAAO;mBAoL0E,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;YAjLL,yBAAyB,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,IAAI;YACpE,aAAa,SAAS,QAAQ,GAAG,IAAI;YACrC,aAAa,GAAG,IAAI;YACpB,iBAAiB,SAAS,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE,GAAG,IAAI;;EAkL1D,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAtMzE,wBAsM4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -34,8 +34,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
34
|
return fieldsFlat.value.length ? (openBlock(), createBlock(_sfc_main$1, {
|
35
35
|
key: 0,
|
36
36
|
"is-open": isOpen.value,
|
37
|
-
"max-width": 300,
|
38
|
-
"max-height": 300,
|
39
37
|
"horizontal-align": unref(HorizontalAlign).RIGHT_INNER
|
40
38
|
}, {
|
41
39
|
toggle: withCtx(() => [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ListFilterSelect.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/ListFilterSelect.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ListFilterSelect.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/components/ListFilterSelect.vue"],"names":[],"mappings":"AA2CA;AAyEA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAA;yBAe5B,WAAW,EAC3B,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAwKO,mBAAmB,CAAC;;;gBAtKlB,eAAe,CAAC,WAAW,CAAC,EAAE;iBAC7B,MAAM,EAAE;qBACJ,WAAW;mBAoKoE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cAjKL,QAAQ,SAAS,MAAM,KAAG,IAAI;EAqKhC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAnLzE,wBAmL4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -21,8 +21,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
21
|
return openBlock(), createBlock(_sfc_main$1, {
|
22
22
|
"is-open": isOpen.value,
|
23
23
|
"horizontal-align": unref(HorizontalAlign).FILL,
|
24
|
-
"max-height": 320,
|
25
|
-
"max-width": 320,
|
26
24
|
"update-align": ""
|
27
25
|
}, {
|
28
26
|
toggle: withCtx(() => [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WNavItemExpand.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Nav/WNavItemExpand.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WNavItemExpand.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Nav/WNavItemExpand.vue"],"names":[],"mappings":"AAkFA;AA6JA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAA;AAE/C,OAAO,EAAC,KAAK,KAAK,EAAY,QAAQ,EAAwD,MAAM,KAAK,CAAA;AA2EzG,iBAAS,cAAc;WAsLT,OAAO,IAA6B;;kBAnMtC,MAAM,KAAK,EAAE;eAChB,MAAM,KAAK,EAAE;;kBADV,MAAM,KAAK,EAAE;eAChB,MAAM,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqPi6S,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;EA9C5iT;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwBk6S,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;kBAf3iT,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -58,8 +58,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
58
58
|
return openBlock(), createElementBlock("div", null, [
|
59
59
|
createVNode(_sfc_main$1, {
|
60
60
|
"is-open": isDropdownOpen.value && !isActive.value,
|
61
|
-
"max-width": 320,
|
62
|
-
"max-height": 320,
|
63
61
|
"horizontal-align": unref(HorizontalAlign).RIGHT_OUTER
|
64
62
|
}, {
|
65
63
|
toggle: withCtx(() => [
|
@@ -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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A6qBrB,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AArsBzE,wBAqsB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, useTemplateRef, computed, toRef, watch, nextTick, createBlock, openBlock, mergeProps, unref, withModifiers, createSlots, withCtx, createCommentVNode, createElementBlock, renderSlot, resolveDynamicComponent,
|
1
|
+
import { defineComponent, ref, useTemplateRef, computed, toRef, watch, nextTick, createBlock, openBlock, mergeProps, unref, withModifiers, createSlots, withCtx, createElementVNode, createCommentVNode, createElementBlock, renderSlot, resolveDynamicComponent, toDisplayString, Fragment, renderList, normalizeClass } from 'vue';
|
2
2
|
import _sfc_main$1 from '../Input/WInputSuggest.vue.js';
|
3
3
|
import { ApiError } from '../../utils/api.js';
|
4
4
|
import { useIsMobile } from '../../utils/mobile.js';
|
@@ -7,15 +7,16 @@ import { debounce } from '../../utils/utils.js';
|
|
7
7
|
import _sfc_main$2 from './components/SelectOption.vue.js';
|
8
8
|
import _sfc_main$3 from './components/SelectOptionPrefix.vue.js';
|
9
9
|
|
10
|
-
const _hoisted_1 = {
|
10
|
+
const _hoisted_1 = { class: "max-h-80" };
|
11
|
+
const _hoisted_2 = {
|
11
12
|
key: 1,
|
12
13
|
class: "text-description w-option flex items-center"
|
13
14
|
};
|
14
|
-
const
|
15
|
+
const _hoisted_3 = {
|
15
16
|
key: 1,
|
16
17
|
class: "w-select-option first:-pt--w-select-option-padding last:-pb--w-select-option-padding"
|
17
18
|
};
|
18
|
-
const
|
19
|
+
const _hoisted_4 = { class: "w-option flex cursor-default select-none items-center" };
|
19
20
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
20
21
|
...{ inheritAttrs: false },
|
21
22
|
__name: "WSelect",
|
@@ -81,8 +82,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
81
82
|
savedText: {},
|
82
83
|
topText: { type: Boolean },
|
83
84
|
parentElement: {},
|
84
|
-
maxHeight: {},
|
85
|
-
maxWidth: {},
|
86
85
|
horizontalAlign: {},
|
87
86
|
top: { type: Boolean },
|
88
87
|
bottom: { type: Boolean },
|
@@ -321,82 +320,84 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
321
320
|
}), 128)) : createCommentVNode("", true)
|
322
321
|
]),
|
323
322
|
content: withCtx(() => [
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
"hide-option-icon": _ctx.hideOptionIcon,
|
331
|
-
disabled: !search.value || isModelValueSearch.value,
|
332
|
-
class: "first:-pt--w-select-option-padding last:-pb--w-select-option-padding",
|
333
|
-
onSelect: _cache[0] || (_cache[0] = ($event) => create(search.value)),
|
334
|
-
onMouseenter: _cache[1] || (_cache[1] = ($event) => setCursor(optionsFiltered.value.length))
|
335
|
-
}, {
|
336
|
-
prefix: withCtx(() => _cache[6] || (_cache[6] = [
|
337
|
-
createElementVNode("div", { class: "w-option flex items-center pr-2" }, " Create: ", -1)
|
338
|
-
])),
|
339
|
-
default: withCtx(() => [
|
340
|
-
search.value && !isModelValueSearch.value ? renderSlot(_ctx.$slots, "option", {
|
341
|
-
key: 0,
|
342
|
-
option: void 0,
|
343
|
-
search: search.value,
|
344
|
-
selected: false,
|
345
|
-
model: false,
|
346
|
-
index: void 0,
|
347
|
-
skeleton: false
|
348
|
-
}, () => [
|
349
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps(_ctx.optionComponentProps, {
|
350
|
-
option: null,
|
351
|
-
search: search.value,
|
352
|
-
selected: false,
|
353
|
-
model: false
|
354
|
-
}), null, 16, ["search"]))
|
355
|
-
]) : (openBlock(), createElementBlock("div", _hoisted_1, " Start typing.. "))
|
356
|
-
]),
|
357
|
-
_: 3
|
358
|
-
}, 8, ["is-cursor", "loading", "scroll", "hide-option-icon", "disabled"])) : createCommentVNode("", true),
|
359
|
-
!optionsFiltered.value.length && !isModelValueSearch.value && (!_ctx.createOption || optionsWithCreated.value.length) ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
360
|
-
createElementVNode("div", _hoisted_3, toDisplayString(!search.value && _ctx.emptyStub ? _ctx.emptyStub : search.value ? "No match" : "Nothing to show"), 1)
|
361
|
-
])) : createCommentVNode("", true),
|
362
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(optionsFiltered.value, (option, index) => {
|
363
|
-
return openBlock(), createBlock(_sfc_main$2, {
|
364
|
-
key: _ctx.valueGetter(option),
|
365
|
-
"is-selected": _ctx.modelValue.includes(_ctx.valueGetter(option)),
|
366
|
-
"is-cursor": index === cursor.value,
|
367
|
-
loading: loadingOptionIndex.value === index && _ctx.loading,
|
323
|
+
createElementVNode("div", _hoisted_1, [
|
324
|
+
hasCreateOption.value ? (openBlock(), createBlock(_sfc_main$2, {
|
325
|
+
key: 0,
|
326
|
+
"is-selected": false,
|
327
|
+
"is-cursor": cursor.value === optionsFiltered.value.length,
|
328
|
+
loading: (loadingCreate.value || loadingOptionIndex.value === optionsFiltered.value.length) && _ctx.loading,
|
368
329
|
scroll: isCursorLocked.value,
|
369
330
|
"hide-option-icon": _ctx.hideOptionIcon,
|
331
|
+
disabled: !search.value || isModelValueSearch.value,
|
370
332
|
class: "first:-pt--w-select-option-padding last:-pb--w-select-option-padding",
|
371
|
-
onSelect: ($event) =>
|
372
|
-
|
373
|
-
setLoadingOptionIndex(index);
|
374
|
-
},
|
375
|
-
onUnselect: ($event) => {
|
376
|
-
unselect(_ctx.valueGetter(option));
|
377
|
-
setLoadingOptionIndex(index);
|
378
|
-
},
|
379
|
-
onMouseenter: ($event) => setCursor(index)
|
333
|
+
onSelect: _cache[0] || (_cache[0] = ($event) => create(search.value)),
|
334
|
+
onMouseenter: _cache[1] || (_cache[1] = ($event) => setCursor(optionsFiltered.value.length))
|
380
335
|
}, {
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
336
|
+
prefix: withCtx(() => _cache[6] || (_cache[6] = [
|
337
|
+
createElementVNode("div", { class: "w-option flex items-center pr-2" }, " Create: ", -1)
|
338
|
+
])),
|
339
|
+
default: withCtx(() => [
|
340
|
+
search.value && !isModelValueSearch.value ? renderSlot(_ctx.$slots, "option", {
|
341
|
+
key: 0,
|
342
|
+
option: void 0,
|
343
|
+
search: search.value,
|
344
|
+
selected: false,
|
385
345
|
model: false,
|
386
|
-
index,
|
387
|
-
skeleton: false
|
388
|
-
search: search.value
|
346
|
+
index: void 0,
|
347
|
+
skeleton: false
|
389
348
|
}, () => [
|
390
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps(
|
391
|
-
option,
|
392
|
-
|
349
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps(_ctx.optionComponentProps, {
|
350
|
+
option: null,
|
351
|
+
search: search.value,
|
352
|
+
selected: false,
|
393
353
|
model: false
|
394
|
-
}), null, 16, ["
|
395
|
-
])
|
354
|
+
}), null, 16, ["search"]))
|
355
|
+
]) : (openBlock(), createElementBlock("div", _hoisted_2, " Start typing.. "))
|
396
356
|
]),
|
397
|
-
_:
|
398
|
-
},
|
399
|
-
|
357
|
+
_: 3
|
358
|
+
}, 8, ["is-cursor", "loading", "scroll", "hide-option-icon", "disabled"])) : createCommentVNode("", true),
|
359
|
+
!optionsFiltered.value.length && !isModelValueSearch.value && (!_ctx.createOption || optionsWithCreated.value.length) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
360
|
+
createElementVNode("div", _hoisted_4, toDisplayString(!search.value && _ctx.emptyStub ? _ctx.emptyStub : search.value ? "No match" : "Nothing to show"), 1)
|
361
|
+
])) : createCommentVNode("", true),
|
362
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(optionsFiltered.value, (option, index) => {
|
363
|
+
return openBlock(), createBlock(_sfc_main$2, {
|
364
|
+
key: _ctx.valueGetter(option),
|
365
|
+
"is-selected": _ctx.modelValue.includes(_ctx.valueGetter(option)),
|
366
|
+
"is-cursor": index === cursor.value,
|
367
|
+
loading: loadingOptionIndex.value === index && _ctx.loading,
|
368
|
+
scroll: isCursorLocked.value,
|
369
|
+
"hide-option-icon": _ctx.hideOptionIcon,
|
370
|
+
class: "first:-pt--w-select-option-padding last:-pb--w-select-option-padding",
|
371
|
+
onSelect: ($event) => {
|
372
|
+
select(_ctx.valueGetter(option));
|
373
|
+
setLoadingOptionIndex(index);
|
374
|
+
},
|
375
|
+
onUnselect: ($event) => {
|
376
|
+
unselect(_ctx.valueGetter(option));
|
377
|
+
setLoadingOptionIndex(index);
|
378
|
+
},
|
379
|
+
onMouseenter: ($event) => setCursor(index)
|
380
|
+
}, {
|
381
|
+
default: withCtx(({ selected }) => [
|
382
|
+
renderSlot(_ctx.$slots, "option", {
|
383
|
+
option,
|
384
|
+
selected,
|
385
|
+
model: false,
|
386
|
+
index,
|
387
|
+
skeleton: false,
|
388
|
+
search: search.value
|
389
|
+
}, () => [
|
390
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps({ ref_for: true }, _ctx.optionComponentProps, {
|
391
|
+
option,
|
392
|
+
selected,
|
393
|
+
model: false
|
394
|
+
}), null, 16, ["option", "selected"]))
|
395
|
+
])
|
396
|
+
]),
|
397
|
+
_: 2
|
398
|
+
}, 1032, ["is-selected", "is-cursor", "loading", "scroll", "hide-option-icon", "onSelect", "onUnselect", "onMouseenter"]);
|
399
|
+
}), 128))
|
400
|
+
])
|
400
401
|
]),
|
401
402
|
_: 2
|
402
403
|
}, [
|
@@ -3,7 +3,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
4
4
|
readonly onSelect?: ((item: Model) => any) | undefined;
|
5
5
|
readonly onBlur?: ((value: FocusEvent) => any) | undefined;
|
6
|
-
readonly onFocus?: ((value: FocusEvent) => any) | undefined;
|
6
|
+
readonly onFocus?: ((value: FocusEvent | undefined) => any) | undefined;
|
7
7
|
readonly "onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
|
8
8
|
readonly onUnselect?: ((item: Model) => any) | undefined;
|
9
9
|
readonly "onInit-model"?: (() => any) | undefined;
|
@@ -30,7 +30,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
30
30
|
(e: "unselect", item: Model): void;
|
31
31
|
(e: "update:model-value", value: Model[]): void;
|
32
32
|
(e: "init-model"): void;
|
33
|
-
(e: "focus", value: FocusEvent): void;
|
33
|
+
(e: "focus", value: FocusEvent | undefined): void;
|
34
34
|
(e: "blur", value: FocusEvent): void;
|
35
35
|
};
|
36
36
|
}>) => import('vue').VNode & {
|
@@ -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":"AA+HA;AA0TA,OAAO,KAAK,EAAC,gBAAgB,EAAE,qBAAqB,EAA8B,iBAAiB,EAAC,MAAM,SAAS,CAAA;yBAYlG,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EACzI,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,C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
77
|
horizontalAlign: {},
|
80
78
|
top: { type: Boolean },
|
81
79
|
bottom: { type: Boolean },
|
@@ -265,6 +263,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
265
263
|
"value-getter": _ctx.valueGetter,
|
266
264
|
"loading-create": loadingCreate.value,
|
267
265
|
search: search.value,
|
266
|
+
class: "max-h-80",
|
268
267
|
onSelect: select,
|
269
268
|
onUnselect: unselect,
|
270
269
|
"onCreate:option": _cache[1] || (_cache[1] = ($event) => create(search.value)),
|