eco-vue-js 0.5.21 → 0.5.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts +1 -3
- package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
- package/dist/components/BottomSheet/WBottomSheet.vue.js +7 -21
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +5 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +3 -3
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +3 -0
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +3 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +3 -0
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.js +4 -2
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +3 -0
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +4 -1
- package/dist/components/Input/WInput.vue.d.ts +6 -6
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +6 -5
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.js +6 -5
- package/dist/components/Input/components/InputActions.vue.d.ts +2 -0
- package/dist/components/Input/components/InputActions.vue.d.ts.map +1 -1
- package/dist/components/Input/components/InputActions.vue.js +6 -5
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +0 -1
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.js +6 -5
- package/package.json +1 -1
@@ -1,8 +1,6 @@
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
2
2
|
isOpen: boolean;
|
3
|
-
}>, {
|
4
|
-
updateDropdown: () => void;
|
5
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
6
4
|
close: () => void;
|
7
5
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
8
6
|
isOpen: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WBottomSheet.vue.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheet/WBottomSheet.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WBottomSheet.vue.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheet/WBottomSheet.vue"],"names":[],"mappings":"AAmEA;;;;;;;;;;;;;;;AAiRA,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -1,20 +1,20 @@
|
|
1
|
-
import { defineComponent, ref, watch,
|
1
|
+
import { defineComponent, ref, watch, onBeforeUnmount, openBlock, createElementBlock, renderSlot, createBlock, Teleport, createVNode, Transition, withCtx, createElementVNode, normalizeClass, createCommentVNode } from 'vue';
|
2
2
|
|
3
3
|
const _hoisted_1 = { class: "h-9 flex justify-center items-center" };
|
4
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "absolute top-full h-[100vh] w-full bg-[inherit]" }, null, -1);
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
6
|
__name: "WBottomSheet",
|
6
7
|
props: {
|
7
8
|
isOpen: { type: Boolean }
|
8
9
|
},
|
9
10
|
emits: ["close"],
|
10
|
-
setup(__props, {
|
11
|
+
setup(__props, { emit: __emit }) {
|
11
12
|
const emit = __emit;
|
12
13
|
const toggle = ref();
|
13
14
|
const wrapper = ref();
|
14
15
|
const container = ref();
|
15
16
|
const backdrop = ref();
|
16
17
|
const content = ref();
|
17
|
-
const toggleHeight = ref(0);
|
18
18
|
const swipeStarted = ref(false);
|
19
19
|
const hide = () => {
|
20
20
|
backdrop.value?.scrollIntoView({ behavior: "smooth", block: "start" });
|
@@ -22,11 +22,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
22
|
const show = () => {
|
23
23
|
content.value?.scrollIntoView({ behavior: "smooth", block: "end" });
|
24
24
|
};
|
25
|
-
const updatePadding = () => {
|
26
|
-
if (!toggle.value)
|
27
|
-
return;
|
28
|
-
toggleHeight.value = toggle.value.getBoundingClientRect().height + 16;
|
29
|
-
};
|
30
25
|
const observerCb = (entries) => {
|
31
26
|
entries.forEach((entry) => {
|
32
27
|
if (entry.target === backdrop.value && entry.isIntersecting) {
|
@@ -38,7 +33,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
38
33
|
root: null,
|
39
34
|
threshold: 0.9
|
40
35
|
});
|
41
|
-
watch(toggle, updatePadding);
|
42
36
|
let timeout;
|
43
37
|
watch(backdrop, (value, oldValue) => {
|
44
38
|
if (oldValue)
|
@@ -51,17 +45,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
51
45
|
}, 500);
|
52
46
|
}
|
53
47
|
});
|
54
|
-
onMounted(() => {
|
55
|
-
updatePadding();
|
56
|
-
});
|
57
48
|
onBeforeUnmount(() => {
|
58
49
|
observer.disconnect();
|
59
50
|
});
|
60
|
-
__expose({
|
61
|
-
updateDropdown: () => {
|
62
|
-
updatePadding();
|
63
|
-
}
|
64
|
-
});
|
65
51
|
return (_ctx, _cache) => {
|
66
52
|
return openBlock(), createElementBlock("div", null, [
|
67
53
|
renderSlot(_ctx.$slots, "toggle", { unclickable: true }),
|
@@ -89,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
89
75
|
createElementVNode("div", {
|
90
76
|
ref_key: "content",
|
91
77
|
ref: content,
|
92
|
-
class: "height-[90%] bg-default dark:bg-default-dark rounded-t-3xl shadow-md snap-end"
|
78
|
+
class: "height-[90%] bg-default dark:bg-default-dark rounded-t-3xl shadow-md snap-end grid grid-rows-[auto,1fr] grid-cols-[1fr] relative"
|
93
79
|
}, [
|
94
80
|
createElementVNode("div", {
|
95
81
|
ref_key: "toggle",
|
@@ -109,11 +95,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
109
95
|
createElementVNode("div", {
|
110
96
|
ref_key: "container",
|
111
97
|
ref: container,
|
112
|
-
class: "
|
113
|
-
style: normalizeStyle({ "--bottom-sheet-toggle-height": toggleHeight.value + "px" })
|
98
|
+
class: "overflow-x-hidden overflow-y-auto overscroll-contain"
|
114
99
|
}, [
|
115
100
|
renderSlot(_ctx.$slots, "content")
|
116
|
-
],
|
101
|
+
], 512),
|
102
|
+
_hoisted_2
|
117
103
|
], 512)
|
118
104
|
], 512)) : createCommentVNode("", true)
|
119
105
|
]),
|
@@ -27,7 +27,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
27
27
|
toggle?(_: {
|
28
28
|
unclickable: boolean;
|
29
29
|
}): any;
|
30
|
-
content?(_: {
|
30
|
+
content?(_: {
|
31
|
+
left: string;
|
32
|
+
right: string;
|
33
|
+
istop: boolean;
|
34
|
+
}): any;
|
31
35
|
}>;
|
32
36
|
export default _default;
|
33
37
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"AA4CA;AAIA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0M5D,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, openBlock, createElementBlock, renderSlot, createBlock, Teleport, createVNode, Transition, withCtx, normalizeClass, createCommentVNode } from 'vue';
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, renderSlot, createBlock, Teleport, createVNode, Transition, withCtx, normalizeClass, normalizeProps, guardReactiveProps, createCommentVNode } from 'vue';
|
2
2
|
import _sfc_main$1 from '../Dropdown/WDropdown.vue.js';
|
3
3
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -55,8 +55,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
55
55
|
}, "will-change-[top,bottom]"]),
|
56
56
|
"onUpdate:rect": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:rect"))
|
57
57
|
}, {
|
58
|
-
default: withCtx(() => [
|
59
|
-
renderSlot(_ctx.$slots, "content")
|
58
|
+
default: withCtx((defaultScope) => [
|
59
|
+
renderSlot(_ctx.$slots, "content", normalizeProps(guardReactiveProps(defaultScope)))
|
60
60
|
]),
|
61
61
|
_: 3
|
62
62
|
}, 8, ["parent-element", "horizontal-align", "update-align", "max-height", "max-width", "emit-update", "class"])) : createCommentVNode("", true)
|
@@ -18,6 +18,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
18
18
|
noGap?: boolean | undefined;
|
19
19
|
emptyStub?: string | undefined;
|
20
20
|
minHeight?: boolean | undefined;
|
21
|
+
lastChild?: boolean | undefined;
|
21
22
|
pageClass?: string | undefined;
|
22
23
|
refetchInterval?: number | false | undefined;
|
23
24
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
@@ -106,6 +107,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
106
107
|
noGap?: boolean | undefined;
|
107
108
|
emptyStub?: string | undefined;
|
108
109
|
minHeight?: boolean | undefined;
|
110
|
+
lastChild?: boolean | undefined;
|
109
111
|
pageClass?: string | undefined;
|
110
112
|
refetchInterval?: number | false | undefined;
|
111
113
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
@@ -198,6 +200,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
198
200
|
noGap?: boolean | undefined;
|
199
201
|
emptyStub?: string | undefined;
|
200
202
|
minHeight?: boolean | undefined;
|
203
|
+
lastChild?: boolean | undefined;
|
201
204
|
pageClass?: string | undefined;
|
202
205
|
refetchInterval?: number | false | undefined;
|
203
206
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"AAmFA;;;;;;;0BA8ZyB,IAAI,KAAK,KAAK;;;iBAzBtB,WAAW;;;;gBAFZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;2BACnC,OAAO,KAAK,OAAO;;;;;;;;;mBAkB3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;WAwBlF,GAAG;;;kBAjRA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;kBACZ,MAAM;mBACL,MAAM;cACT,IAAI;;yBA9EQ,MAAM,cAAc,MAAM;;cAkFtC,IAAI;;;kBAfF,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;kBACZ,MAAM;mBACL,MAAM;cACT,IAA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nore: { type: Boolean },
|
23
23
|
minHeight: { type: Boolean },
|
24
|
+
lastChild: { type: Boolean },
|
24
25
|
excludeParams: { default: void 0 },
|
25
26
|
emptyStub: { default: void 0 },
|
26
27
|
pageClass: { default: void 0 },
|
@@ -134,6 +135,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
134
135
|
"header-top": _ctx.headerTopIgnore ? 0 : unref(headerTop),
|
135
136
|
"header-height": unref(headerHeight),
|
136
137
|
"min-height": _ctx.minHeight,
|
138
|
+
"last-child": _ctx.lastChild,
|
137
139
|
"exclude-params": _ctx.excludeParams,
|
138
140
|
"empty-stub": _ctx.emptyStub,
|
139
141
|
"page-class": _ctx.pageClass,
|
@@ -180,7 +182,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
180
182
|
}, 1032, ["selected", "selected-between", "onUpdate:selected", "onUpdate:selectedRange", "onUpdate:selectedRangeHover"])
|
181
183
|
]),
|
182
184
|
_: 3
|
183
|
-
}, 8, ["query-params", "use-query-fn", "is-invalid-page", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "exclude-params", "empty-stub", "page-class", "max-pages", "refetch-interval", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection"])
|
185
|
+
}, 8, ["query-params", "use-query-fn", "is-invalid-page", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "last-child", "exclude-params", "empty-stub", "page-class", "max-pages", "refetch-interval", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection"])
|
184
186
|
], 64);
|
185
187
|
};
|
186
188
|
}
|
@@ -16,6 +16,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
16
16
|
noGap?: boolean | undefined;
|
17
17
|
emptyStub?: string | undefined;
|
18
18
|
minHeight?: boolean | undefined;
|
19
|
+
lastChild?: boolean | undefined;
|
19
20
|
pageClass?: string | undefined;
|
20
21
|
refetchInterval?: number | false | undefined;
|
21
22
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
@@ -86,6 +87,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
86
87
|
noGap?: boolean | undefined;
|
87
88
|
emptyStub?: string | undefined;
|
88
89
|
minHeight?: boolean | undefined;
|
90
|
+
lastChild?: boolean | undefined;
|
89
91
|
pageClass?: string | undefined;
|
90
92
|
refetchInterval?: number | false | undefined;
|
91
93
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
@@ -160,6 +162,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
160
162
|
noGap?: boolean | undefined;
|
161
163
|
emptyStub?: string | undefined;
|
162
164
|
minHeight?: boolean | undefined;
|
165
|
+
lastChild?: boolean | undefined;
|
163
166
|
pageClass?: string | undefined;
|
164
167
|
refetchInterval?: number | false | undefined;
|
165
168
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"AA+EA;;;;wBAufwB,IAAI,KAAK,KAAK;;;;iBArBrB,WAAW;;;;gBAFZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;2BACnC,OAAO,KAAK,OAAO;;;;;;;;;mBAmB3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;WAelF,GAAG;;;kBAnSA,IAAI;+BACS,I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IAAI,KAAK,KAAK;;;;yBArBrB,WAAW;;;;wBAFZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;mCACnC,OAAO,KAAK,OAAO;;;;;;;;;2BAmB3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;8CAzU/C,MAAM;aAuVuB,IAAI;eACpE,GAAG;;;sBAnSA,IAAI;mCACS,IAAI,GAAG,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;sBACZ,MAAM;uBACL,MAAM;kBACT,IAAI;;;sBAXF,IAAI;mCACS,IAAI,GAAG,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;sBACZ,MAAM;uBACL,MAAM;kBACT,IAAI;;;gBA1KN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;gBAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;AAxD/C,wBA6f2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -23,6 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
23
|
headerTop: { default: 0 },
|
24
24
|
headerHeight: { default: 0 },
|
25
25
|
minHeight: { type: Boolean },
|
26
|
+
lastChild: { type: Boolean },
|
26
27
|
excludeParams: { default: void 0 },
|
27
28
|
emptyStub: { default: void 0 },
|
28
29
|
pageClass: { default: void 0 },
|
@@ -111,7 +112,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
111
112
|
};
|
112
113
|
const updateScroll = (height) => {
|
113
114
|
const element = props.scrollingElement ?? document.scrollingElement;
|
114
|
-
if (!element)
|
115
|
+
if (!element || element.scrollTop === 0)
|
115
116
|
return;
|
116
117
|
element.scrollTop = element.scrollTop + height;
|
117
118
|
};
|
@@ -192,6 +193,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
192
193
|
resetting: isResettingPage.value,
|
193
194
|
"empty-stub": _ctx.emptyStub,
|
194
195
|
"min-height": _ctx.minHeight,
|
196
|
+
"last-child": _ctx.lastChild,
|
195
197
|
"page-class": _ctx.pageClass,
|
196
198
|
"refetch-interval": _ctx.refetchInterval,
|
197
199
|
"scrolling-element": _ctx.scrollingElement,
|
@@ -229,7 +231,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
229
231
|
})
|
230
232
|
]),
|
231
233
|
_: 2
|
232
|
-
}, 1032, ["query-params", "use-query-fn", "is-invalid-page", "skeleton-length", "first-page", "last-page", "hide-page-title", "wrap", "no-gap", "transition", "resetting", "empty-stub", "min-height", "page-class", "refetch-interval", "scrolling-element", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "onRefetch"]);
|
234
|
+
}, 1032, ["query-params", "use-query-fn", "is-invalid-page", "skeleton-length", "first-page", "last-page", "hide-page-title", "wrap", "no-gap", "transition", "resetting", "empty-stub", "min-height", "last-child", "page-class", "refetch-interval", "scrolling-element", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "onRefetch"]);
|
233
235
|
}), 128)),
|
234
236
|
count.value !== 0 && nextPage.value ? (openBlock(), createBlock(_sfc_main$2, {
|
235
237
|
key: 1,
|
@@ -27,6 +27,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
27
27
|
resetting?: boolean | undefined;
|
28
28
|
emptyStub?: string | undefined;
|
29
29
|
minHeight?: boolean | undefined;
|
30
|
+
lastChild?: boolean | undefined;
|
30
31
|
pageClass?: string | undefined;
|
31
32
|
refetchInterval?: number | false | undefined;
|
32
33
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
@@ -108,6 +109,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
108
109
|
resetting?: boolean | undefined;
|
109
110
|
emptyStub?: string | undefined;
|
110
111
|
minHeight?: boolean | undefined;
|
112
|
+
lastChild?: boolean | undefined;
|
111
113
|
pageClass?: string | undefined;
|
112
114
|
refetchInterval?: number | false | undefined;
|
113
115
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
@@ -193,6 +195,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
193
195
|
resetting?: boolean | undefined;
|
194
196
|
emptyStub?: string | undefined;
|
195
197
|
minHeight?: boolean | undefined;
|
198
|
+
lastChild?: boolean | undefined;
|
196
199
|
pageClass?: string | undefined;
|
197
200
|
refetchInterval?: number | false | undefined;
|
198
201
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"AAuHA;;;;wBAmgBwB,IAAI,KAAK,KAAK;;;;iBApBrB,WAAW;;;;;;;;;;;;gBACZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;2BACnC,OAAO,KAAK,OAAO;oBAC1B,MAAM;eACX,OAAO;cACR,OAAO;;;;;;;;;mBAYF,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;WAelF,GAAG;;;kBAnTA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC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G,IAAI;gBACnD,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,aAAa,SAAS,MAAM,GAAG,IAAI;gBACnC,SAAS,GAAG,IAAI;gBAChB,2BAA2B,GAAG,IAAI;gBAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;gBACzC,SAAS,GAAG,IAAI;;;;AAxDtB,wBA4gB2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -20,6 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
20
|
resetting: { type: Boolean },
|
21
21
|
emptyStub: { default: "Nothing to show" },
|
22
22
|
minHeight: { type: Boolean },
|
23
|
+
lastChild: { type: Boolean },
|
23
24
|
pageClass: { default: void 0 },
|
24
25
|
refetchInterval: { type: [Number, Boolean], default: void 0 },
|
25
26
|
scrollingElement: { default: void 0 },
|
@@ -262,7 +263,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
262
263
|
key: 1,
|
263
264
|
class: normalizeClass(["text-accent text-base font-normal", {
|
264
265
|
"py-16 px-8 text-center flex justify-center": !_ctx.minHeight,
|
265
|
-
"pt-4
|
266
|
+
"pt-4 px-[1.0625rem]": _ctx.minHeight,
|
267
|
+
"pb-4": _ctx.minHeight && _ctx.lastChild,
|
268
|
+
"pb-2": _ctx.minHeight && !_ctx.lastChild
|
266
269
|
}])
|
267
270
|
}, [
|
268
271
|
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.emptyStub), 1)
|
@@ -31,7 +31,7 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: {
|
|
31
31
|
"onKeypress:down"?: ((value: KeyboardEvent) => any) | undefined;
|
32
32
|
"onKeypress:delete"?: ((value: KeyboardEvent) => any) | undefined;
|
33
33
|
"onKeypress:backspace"?: ((value: KeyboardEvent) => any) | undefined;
|
34
|
-
"onClick:
|
34
|
+
"onClick:suffix"?: ((value: MouseEvent) => any) | undefined;
|
35
35
|
"onSelect:input"?: ((value: Event) => any) | undefined;
|
36
36
|
autocomplete?: string | undefined;
|
37
37
|
autofocus?: boolean | undefined;
|
@@ -63,7 +63,7 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: {
|
|
63
63
|
(e: 'blur', value: FocusEvent): void;
|
64
64
|
(e: 'click', value: MouseEvent): void;
|
65
65
|
(e: 'mousedown', value: MouseEvent): void;
|
66
|
-
(e: 'click:
|
66
|
+
(e: 'click:suffix', value: MouseEvent): void;
|
67
67
|
(e: 'select:input', value: Event): void;
|
68
68
|
(e: 'paste'): void;
|
69
69
|
};
|
@@ -104,7 +104,7 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: {
|
|
104
104
|
"onKeypress:down"?: ((value: KeyboardEvent) => any) | undefined;
|
105
105
|
"onKeypress:delete"?: ((value: KeyboardEvent) => any) | undefined;
|
106
106
|
"onKeypress:backspace"?: ((value: KeyboardEvent) => any) | undefined;
|
107
|
-
"onClick:
|
107
|
+
"onClick:suffix"?: ((value: MouseEvent) => any) | undefined;
|
108
108
|
"onSelect:input"?: ((value: Event) => any) | undefined;
|
109
109
|
autocomplete?: string | undefined;
|
110
110
|
autofocus?: boolean | undefined;
|
@@ -140,7 +140,7 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: {
|
|
140
140
|
(e: 'blur', value: FocusEvent): void;
|
141
141
|
(e: 'click', value: MouseEvent): void;
|
142
142
|
(e: 'mousedown', value: MouseEvent): void;
|
143
|
-
(e: 'click:
|
143
|
+
(e: 'click:suffix', value: MouseEvent): void;
|
144
144
|
(e: 'select:input', value: Event): void;
|
145
145
|
(e: 'paste'): void;
|
146
146
|
};
|
@@ -181,7 +181,7 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: {
|
|
181
181
|
"onKeypress:down"?: ((value: KeyboardEvent) => any) | undefined;
|
182
182
|
"onKeypress:delete"?: ((value: KeyboardEvent) => any) | undefined;
|
183
183
|
"onKeypress:backspace"?: ((value: KeyboardEvent) => any) | undefined;
|
184
|
-
"onClick:
|
184
|
+
"onClick:suffix"?: ((value: MouseEvent) => any) | undefined;
|
185
185
|
"onSelect:input"?: ((value: Event) => any) | undefined;
|
186
186
|
autocomplete?: string | undefined;
|
187
187
|
autofocus?: boolean | undefined;
|
@@ -217,7 +217,7 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: {
|
|
217
217
|
(e: 'blur', value: FocusEvent): void;
|
218
218
|
(e: 'click', value: MouseEvent): void;
|
219
219
|
(e: 'mousedown', value: MouseEvent): void;
|
220
|
-
(e: 'click:
|
220
|
+
(e: 'click:suffix', value: MouseEvent): void;
|
221
221
|
(e: 'select:input', value: Event): void;
|
222
222
|
(e: 'paste'): void;
|
223
223
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInput.vue"],"names":[],"mappings":"AA4NA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAo1BO,GAAG;;uBAvEkB,GAAG;wBACF,GAAG;wBACH,GAAG;uBACH,GAAG;;;YA7sB1B,mBAAmB,iEAAkC,IAAI;YACzD,gBAAgB,SAAS,aAAa,GAAG,IAAI;YAC7C,aAAa,SAAS,aAAa,GAAG,IAAI;YAC1C,eAAe,SAAS,aAAa,GAAG,IAAI;YAC5C,iBAAiB,SAAS,aAAa,GAAG,IAAI;YAC9C,oBAAoB,SAAS,aAAa,GAAG,IAAI;YACjD,aAAa,GAAG,IAAI;YACpB,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;YAChC,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,WAAW,SAAS,UAAU,GAAG,IAAI;YACrC,cAAc,SAAS,U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UAAU,GAAG,IAAI;gBACjC,MAAM,SAAS,UAAU,GAAG,IAAI;gBAChC,OAAO,SAAS,UAAU,GAAG,IAAI;gBACjC,WAAW,SAAS,UAAU,GAAG,IAAI;gBACrC,cAAc,SAAS,UAAU,GAAG,IAAI;gBACxC,cAAc,SAAS,KAAK,GAAG,IAAI;gBACnC,OAAO,GAAG,IAAI;;;;AAtEpB,wBA+0B2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -65,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
65
65
|
resize: { type: Boolean },
|
66
66
|
allowPaste: { type: Boolean }
|
67
67
|
},
|
68
|
-
emits: ["update:modelValue", "keypress:enter", "keypress:up", "keypress:down", "keypress:delete", "keypress:backspace", "click:clear", "focus", "blur", "click", "mousedown", "click:
|
68
|
+
emits: ["update:modelValue", "keypress:enter", "keypress:up", "keypress:down", "keypress:delete", "keypress:backspace", "click:clear", "focus", "blur", "click", "mousedown", "click:suffix", "select:input", "paste"],
|
69
69
|
setup(__props, { expose: __expose, emit: __emit }) {
|
70
70
|
const props = __props;
|
71
71
|
const emit = __emit;
|
@@ -210,7 +210,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
210
210
|
"cursor-not-allowed": _ctx.disabled && !_ctx.skeleton,
|
211
211
|
"mt-1 mb-[1.125rem]": !_ctx.noMargin
|
212
212
|
}]),
|
213
|
-
onClick: _cache[14] || (_cache[14] = ($event) => _ctx.$emit("click:
|
213
|
+
onClick: _cache[14] || (_cache[14] = ($event) => _ctx.$emit("click:suffix", $event))
|
214
214
|
}, [
|
215
215
|
createElementVNode("label", { for: inputId }, [
|
216
216
|
_ctx.title || _ctx.$slots.title?.()?.length ? (openBlock(), createElementBlock("div", {
|
@@ -313,7 +313,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
313
313
|
createVNode(_sfc_main$1, {
|
314
314
|
loading: _ctx.loading,
|
315
315
|
"allow-clear": _ctx.allowClear && _ctx.modelValue !== "",
|
316
|
-
disabled: _ctx.disabled || _ctx.
|
316
|
+
disabled: _ctx.disabled || _ctx.disabledActions,
|
317
|
+
readonly: _ctx.readonly,
|
317
318
|
"text-secure": _ctx.textSecure,
|
318
319
|
"is-secure-visible": isSecureVisible.value,
|
319
320
|
"allow-paste": _ctx.allowPaste,
|
@@ -321,7 +322,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
321
322
|
"onClick:clear": clearValue,
|
322
323
|
"onClick:slot": _cache[9] || (_cache[9] = ($event) => {
|
323
324
|
isFocused.value ? blur() : focus();
|
324
|
-
_ctx.$emit("click:
|
325
|
+
_ctx.$emit("click:suffix", $event);
|
325
326
|
}),
|
326
327
|
"onShow:secure": _cache[10] || (_cache[10] = ($event) => {
|
327
328
|
isSecureVisible.value = true;
|
@@ -338,7 +339,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
338
339
|
]),
|
339
340
|
key: "0"
|
340
341
|
} : void 0
|
341
|
-
]), 1032, ["loading", "allow-clear", "disabled", "text-secure", "is-secure-visible", "allow-paste"])
|
342
|
+
]), 1032, ["loading", "allow-clear", "disabled", "readonly", "text-secure", "is-secure-visible", "allow-paste"])
|
342
343
|
], 38),
|
343
344
|
createVNode(Transition, {
|
344
345
|
"enter-active-class": "transition-opacity",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInputSuggest.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputSuggest.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInputSuggest.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputSuggest.vue"],"names":[],"mappings":"AA2HA;AAQA,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA0ehD,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Aa,SAAS,aAAa,GAAG,IAAI;YAC1C,eAAe,SAAS,aAAa,GAAG,IAAI;YAC5C,iBAAiB,SAAS,aAAa,GAAG,IAAI;YAC9C,MAAM,GAAG,IAAI;YACb,OAAO,GAAG,IAAI;YACd,aAAa,GAAG,IAAI;YACpB,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAqbiC,IAAI;eACpE,GAAG;;8BAjYS;gBAAC,WAAW,CAAC,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;6BACjC,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;+BAC5B;gBAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;8BAFtC;gBAAC,WAAW,CAAC,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;6BACjC,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;+BAC5B;gBAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;;gBAhEnD,mBAAmB,mDAAsB,IAAI;gBAC7C,gBAAgB,SAAS,aAAa,GAAG,IAAI;gBAC7C,aAAa,SAAS,aAAa,GAAG,IAAI;gBAC1C,eAAe,SAAS,aAAa,GAAG,IAAI;gBAC5C,iBAAiB,SAAS,aAAa,GAAG,IAAI;gBAC9C,MAAM,GAAG,IAAI;gBACb,OAAO,GAAG,IAAI;gBACd,aAAa,GAAG,IAAI;gBACpB,OAAO,SAAS,UAAU,GAAG,IAAI;gBACjC,MAAM,SAAS,UAAU,GAAG,IAAI;;;;AAhDtC,wBA2e2E"}
|
@@ -133,7 +133,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
133
133
|
!unclickable && _ctx.$emit("blur", $event);
|
134
134
|
},
|
135
135
|
onClick: ($event) => unref(isMobile) && unclickable && open(),
|
136
|
-
"onClick:
|
136
|
+
"onClick:suffix": ($event) => unref(isMobile) && unclickable && open(),
|
137
137
|
"onClick:clear": _cache[5] || (_cache[5] = ($event) => _ctx.$emit("click:clear"))
|
138
138
|
}, createSlots({
|
139
139
|
prefix: withCtx(() => [
|
@@ -154,15 +154,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
154
154
|
]),
|
155
155
|
key: "0"
|
156
156
|
} : void 0
|
157
|
-
]), 1032, ["title", "model-value", "type", "max-length", "loading", "hide-input", "readonly", "skeleton", "size", "error-message", "required", "disabled", "has-changes", "allow-clear", "icon", "placeholder", "no-margin", "allow-paste", "mono", "autofocus", "class", "onFocus", "onBlur", "onClick", "onClick:
|
157
|
+
]), 1032, ["title", "model-value", "type", "max-length", "loading", "hide-input", "readonly", "skeleton", "size", "error-message", "required", "disabled", "has-changes", "allow-clear", "icon", "placeholder", "no-margin", "allow-paste", "mono", "autofocus", "class", "onFocus", "onBlur", "onClick", "onClick:suffix"])
|
158
158
|
]),
|
159
|
-
content: withCtx(() => [
|
159
|
+
content: withCtx((contentScope) => [
|
160
160
|
createElementVNode("div", {
|
161
161
|
ref_key: "content",
|
162
162
|
ref: content,
|
163
163
|
class: normalizeClass(["bg-default dark:bg-default-dark w-full", {
|
164
|
-
"
|
165
|
-
"rounded-xl max-h-[inherit] shadow-md overflow-x-hidden overflow-y-overlay overscroll-contain
|
164
|
+
"pb-[50vh]": unref(isMobile),
|
165
|
+
"rounded-xl max-h-[inherit] shadow-md overflow-x-hidden overflow-y-overlay overscroll-contain dark:border dark:border-solid dark:border-gray-800": !unref(isMobile),
|
166
|
+
"mt-4": "istop" in contentScope && contentScope.istop === false && (_ctx.errorMessage || _ctx.maxLength)
|
166
167
|
}])
|
167
168
|
}, [
|
168
169
|
_ctx.$slots.content?.().length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.$slots.content?.(), (slot, index) => {
|
@@ -3,6 +3,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
3
3
|
allowClear?: boolean | undefined;
|
4
4
|
allowPaste?: boolean | undefined;
|
5
5
|
disabled?: boolean | undefined;
|
6
|
+
readonly?: boolean | undefined;
|
6
7
|
textSecure?: boolean | undefined;
|
7
8
|
isSecureVisible?: boolean | undefined;
|
8
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
@@ -17,6 +18,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
17
18
|
allowClear?: boolean | undefined;
|
18
19
|
allowPaste?: boolean | undefined;
|
19
20
|
disabled?: boolean | undefined;
|
21
|
+
readonly?: boolean | undefined;
|
20
22
|
textSecure?: boolean | undefined;
|
21
23
|
isSecureVisible?: boolean | undefined;
|
22
24
|
}>>> & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InputActions.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/components/InputActions.vue"],"names":[],"mappings":"AA+EA
|
1
|
+
{"version":3,"file":"InputActions.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/components/InputActions.vue"],"names":[],"mappings":"AA+EA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqWA,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -21,6 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
21
|
allowClear: { type: Boolean },
|
22
22
|
allowPaste: { type: Boolean },
|
23
23
|
disabled: { type: Boolean },
|
24
|
+
readonly: { type: Boolean },
|
24
25
|
textSecure: { type: Boolean },
|
25
26
|
isSecureVisible: { type: Boolean }
|
26
27
|
},
|
@@ -47,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
48
|
ref: element,
|
48
49
|
class: "flex rounded-xl overflow-hidden bg-default dark:bg-default-dark"
|
49
50
|
}, [
|
50
|
-
_ctx.allowClear && !_ctx.disabled ? (openBlock(), createElementBlock("button", {
|
51
|
+
_ctx.allowClear && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createElementBlock("button", {
|
51
52
|
key: 0,
|
52
53
|
class: "relative w-ripple w-ripple-hover h-full w-11 p-[0.6875rem] flex justify-center text-description select-none outline-none",
|
53
54
|
onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
|
@@ -60,7 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
60
61
|
"no-touch": ""
|
61
62
|
})
|
62
63
|
], 32)) : createCommentVNode("", true),
|
63
|
-
_ctx.allowPaste && !_ctx.disabled ? (openBlock(), createElementBlock("button", {
|
64
|
+
_ctx.allowPaste && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createElementBlock("button", {
|
64
65
|
key: 1,
|
65
66
|
class: "relative w-ripple w-ripple-hover h-full w-11 p-[0.6875rem] flex justify-center text-description select-none outline-none",
|
66
67
|
onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {
|
@@ -75,10 +76,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
75
76
|
], 32)) : createCommentVNode("", true),
|
76
77
|
_ctx.textSecure ? (openBlock(), createElementBlock("button", {
|
77
78
|
key: 2,
|
78
|
-
disabled: _ctx.disabled,
|
79
|
+
disabled: _ctx.disabled || _ctx.readonly,
|
79
80
|
class: normalizeClass(["relative h-full w-11 p-[0.6875rem] flex justify-center select-none outline-none", {
|
80
|
-
"cursor-pointer w-ripple w-ripple-hover": !_ctx.disabled,
|
81
|
-
"cursor-not-allowed": _ctx.disabled
|
81
|
+
"cursor-pointer w-ripple w-ripple-hover": !_ctx.disabled && !_ctx.readonly,
|
82
|
+
"cursor-not-allowed": _ctx.disabled || _ctx.readonly
|
82
83
|
}]),
|
83
84
|
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.isSecureVisible ? _ctx.$emit("hide:secure", $event) : _ctx.$emit("show:secure", $event))
|
84
85
|
}, [
|
@@ -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":"AA8GA;AAEA,OAAO,EAA0B,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;YAqc/C,MAAM;;;;;;;0BA8BO,IAAI,KAAK,KAAK;gBA/BvB,KAAK,EAAE;;;;;;;;;;;;;iBAKN,WAAW;gBAHZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;2BAEnC,OAAO,KAAK,OAAO;;mBA6B3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;gBArBhD,IAAI;;;;;;;;;;;;;;WA6BtC,GAAG;;yBAhVQ,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;0BAC7B;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC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gBAC1C,eAAe,SAAS,MAAM,GAAG,IAAI;;;;AApE3C,wBA2e2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -186,7 +186,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
186
186
|
"hide-option-icon": _ctx.hideOptionIcon,
|
187
187
|
"value-getter": _ctx.valueGetter,
|
188
188
|
"query-options": _ctx.queryOptions,
|
189
|
-
class: "h-80",
|
190
189
|
onSelect: select,
|
191
190
|
onUnselect: unselect,
|
192
191
|
"onCreate:option": create,
|
@@ -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":"AA+FA;;;;;;;;wBA0asB,IAAI,KAAK,KAAK;gBAftB,KAAK,EAAE;;;iBAEN,WAAW;;;gBADZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;2BAEnC,OAAO,KAAK,OAAO;;mBAa3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;WAQhF,GAAG;;2BA3TU;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;2BAApE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YArFlF,QAAQ,SAAS,KAAK,GAAG,IAAI;Y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G,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;+BAApE;gBAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;;gBArFlF,QAAQ,SAAS,KAAK,GAAG,IAAI;gBAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;gBAC/B,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;gBAC1C,eAAe,GAAG,IAAI;;;;AA/B5B,wBAgb2E"}
|
@@ -3,8 +3,7 @@ import _sfc_main$2 from './SelectOption.vue.js';
|
|
3
3
|
import _sfc_main$1 from '../../InfiniteList/WInfiniteList.vue.js';
|
4
4
|
import { debounce } from '../../../utils/utils.js';
|
5
5
|
|
6
|
-
const _hoisted_1 = { class: "min-
|
7
|
-
const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", { class: "w-select-field pr-2 sm-not:px-3 min-w-[4rem]" }, " Create: ", -1);
|
6
|
+
const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", { class: "w-select-field pr-2 sm-not:px-3 min-w-[4rem]" }, " Create: ", -1);
|
8
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
9
8
|
__name: "SelectAsyncList",
|
10
9
|
props: {
|
@@ -91,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
91
90
|
selectCursor
|
92
91
|
});
|
93
92
|
return (_ctx, _cache) => {
|
94
|
-
return openBlock(), createElementBlock("div",
|
93
|
+
return openBlock(), createElementBlock("div", null, [
|
95
94
|
createVNode(_sfc_main$1, {
|
96
95
|
"use-query-fn": _ctx.useQueryFn,
|
97
96
|
"query-params": _ctx.queryParams,
|
@@ -105,6 +104,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
105
104
|
"unselect-only": _ctx.unselectOnly,
|
106
105
|
"value-getter": _ctx.valueGetter,
|
107
106
|
"query-options": _ctx.queryOptions,
|
107
|
+
"skeleton-length": count.value || 1,
|
108
|
+
"last-child": !_ctx.allowCreate,
|
108
109
|
"hide-page-title": "",
|
109
110
|
"header-top-ignore": "",
|
110
111
|
"min-height": "",
|
@@ -160,7 +161,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
160
161
|
}, 1032, ["is-selected", "is-cursor", "loading", "skeleton", "scroll", "first", "last", "previous", "next", "is-no-cursor", "hide-option-icon", "class", "onSelect", "onUnselect", "onMouseenter", "onUpdate:cursor", "onUnmounted", "onUpdate:first", "onUpdate:last"])
|
161
162
|
]),
|
162
163
|
_: 3
|
163
|
-
}, 8, ["use-query-fn", "query-params", "is-invalid-page", "scrolling-element", "transition", "exclude-params", "selected", "empty-stub", "select-only", "unselect-only", "value-getter", "query-options"]),
|
164
|
+
}, 8, ["use-query-fn", "query-params", "is-invalid-page", "scrolling-element", "transition", "exclude-params", "selected", "empty-stub", "select-only", "unselect-only", "value-getter", "query-options", "skeleton-length", "last-child"]),
|
164
165
|
_ctx.allowCreate ? (openBlock(), createBlock(_sfc_main$2, {
|
165
166
|
key: 0,
|
166
167
|
"is-selected": false,
|
@@ -185,7 +186,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
185
186
|
onUnmounted: _cache[9] || (_cache[9] = ($event) => cursor.value = void 0)
|
186
187
|
}, {
|
187
188
|
default: withCtx(() => [
|
188
|
-
|
189
|
+
_hoisted_1,
|
189
190
|
renderSlot(_ctx.$slots, "default", {
|
190
191
|
option: null,
|
191
192
|
selected: false,
|