eco-vue-js 0.6.1 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.js +1 -0
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +13 -1
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +3 -1
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.js +4 -2
- package/dist/components/Select/components/SelectOption.vue.d.ts +2 -0
- package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectOption.vue.js +5 -4
- package/package.json +1 -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":"yBAgUiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,QAAQ,EAAE,WAAW,eACjF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBACvF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA0kBxD,cAAc,CAAC;;;;;;;;;oBAtkBT,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;uBAC3C,CAAC,KAAK,EAAE,OAA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ACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;MA6W+B;UAClC;YA1hBH,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;UAwhBJ;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAplBvE,wBAolB4E;AAY5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -126,6 +126,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
126
126
|
};
|
127
127
|
watch(toRef(props, "queryParams"), (newValue, oldValue) => {
|
128
128
|
if (isEqualObj(newValue, oldValue, ["page", ...props.excludeParams ?? []])) return;
|
129
|
+
if (pages.value.length === 1 && pages.value[0] === 1) return;
|
129
130
|
resetPage();
|
130
131
|
});
|
131
132
|
watch(count, (value) => emit("update:count", value), { immediate: true });
|
@@ -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":"yBA2WiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,QAAQ,EAAE,WAAW,eACjF,WAAW,CAAC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ersecting = ref(false);
|
42
|
+
const hasData = ref(false);
|
42
43
|
const { data, error, setData, refetch, isFetching } = props.useQueryFn(
|
43
44
|
toRef(props, "queryParams"),
|
44
45
|
{
|
45
46
|
...props.queryOptions ?? {},
|
47
|
+
placeholderData: void 0,
|
46
48
|
refetchInterval: props.refetchInterval ? computed(() => isIntersecting.value ? props.refetchInterval : void 0) : void 0
|
47
49
|
}
|
48
50
|
);
|
@@ -84,11 +86,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
84
86
|
}
|
85
87
|
element.value?.scrollIntoView({ block: "center", behavior: "smooth" });
|
86
88
|
};
|
89
|
+
let timeout = null;
|
87
90
|
watch(data, (value) => {
|
88
91
|
if (props.firstPage && value?.previous !== void 0) emit("update:previous-page", value.previous);
|
89
92
|
if (props.lastPage && value?.next !== void 0) emit("update:next-page", value.next);
|
90
93
|
if (value?.pages_count !== void 0) emit("update:pages-count", value.pages_count);
|
91
94
|
if (value?.count !== void 0) emit("update:count", value.count);
|
95
|
+
if (timeout) clearTimeout(timeout);
|
96
|
+
if (value === void 0) {
|
97
|
+
hasData.value = false;
|
98
|
+
} else {
|
99
|
+
timeout = setTimeout(() => {
|
100
|
+
hasData.value = true;
|
101
|
+
timeout = null;
|
102
|
+
}, 100);
|
103
|
+
}
|
92
104
|
}, { immediate: true });
|
93
105
|
watch(error, (error2) => {
|
94
106
|
if (props.isInvalidPage(error2) && page.value !== null) emit("remove:page", page.value);
|
@@ -184,7 +196,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
184
196
|
createElementVNode("div", {
|
185
197
|
class: normalizeClass(_ctx.pageClass)
|
186
198
|
}, [
|
187
|
-
unref(data)?.results ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? TransitionGroup : EmptyComponent), normalizeProps(mergeProps({ key: 0 }, _ctx.transition ? {
|
199
|
+
hasData.value && unref(data)?.results ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? TransitionGroup : EmptyComponent), normalizeProps(mergeProps({ key: 0 }, _ctx.transition ? {
|
188
200
|
["enter-active-class"]: "transition-[grid-template-rows] overflow-hidden grid",
|
189
201
|
["enter-from-class"]: "grid-rows-[0fr]",
|
190
202
|
["enter-to-class"]: "grid-rows-[1fr]",
|
@@ -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":"","sources":["../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AA6TA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;yBAGvB,MAAM,SAAS,MAAM,GAAG,MAAM,wBACjC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBACvF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA0lBxD,cAAc,CAAC;;;;;;;;;;;;;;8HAAyD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB;;;MAAsB,GAAG,IAAI;WACpE,GAAG;WACH,UAAU;gBAjcV,MAAM,IAAI;mBACP,MAAM,IAAI;iBACZ,CAAC,KAAK,EAAE;YACf,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;YACvB,QAAQ,EAAE,OAAO,CAAA;YACjB,KAAK,EAAE,OAAO,CAAA;SACf,KAAK,IAAI;gBACF,MAAM,IAAI;;gBAPV,MAAM,IAAI;mBACP,MAAM,IAAI;iBACZ,CAAC,KAAK,EAAE;YACf,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;YACvB,QAAQ,EAAE,OAAO,CAAA;YACjB,KAAK,EAAE,OAAO,CAAA;SACf,KAAK,IAAI;gBACF,MAAM,IAAI;MA0buB;UAClC;YArlBH,QAAQ,QAAQ,MAAM,GAAG,IAAI;YAC7B,UAAU,QAAQ,MAAM,GAAG,IAAI;YAC/B,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;UAglBK;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AApmBvE,wBAomB4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -256,8 +256,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
256
256
|
onSelect: _cache[0] || (_cache[0] = ($event) => createOption(_ctx.search)),
|
257
257
|
onMouseenter: _cache[1] || (_cache[1] = ($event) => setCursor(_ctx.options.length))
|
258
258
|
}, {
|
259
|
+
prefix: withCtx(() => [
|
260
|
+
_hoisted_3
|
261
|
+
]),
|
259
262
|
default: withCtx(() => [
|
260
|
-
_hoisted_3,
|
261
263
|
renderSlot(_ctx.$slots, "option", {
|
262
264
|
option: _ctx.search,
|
263
265
|
selected: false,
|
@@ -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":"yBAwNiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,QAAQ,EAAE,WAAW,eACjF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IA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AAK,EAAE,GAAG,IAAI;YAC1C,eAAe,GAAG,IAAI;UAmfe;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAthBvE,wBAshB4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -3,7 +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 = /* @__PURE__ */ createElementVNode("span", { class: "w-select-field pr-2 sm-not:px-3
|
6
|
+
const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", { class: "w-select-field pr-2 sm-not:px-3" }, " Create: ", -1);
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
8
8
|
__name: "SelectAsyncList",
|
9
9
|
props: {
|
@@ -178,8 +178,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
178
178
|
"onUpdate:next": _cache[8] || (_cache[8] = ($event) => cursorNext.value = $event),
|
179
179
|
onUnmounted: _cache[9] || (_cache[9] = ($event) => cursor.value = void 0)
|
180
180
|
}, {
|
181
|
+
prefix: withCtx(() => [
|
182
|
+
_hoisted_1
|
183
|
+
]),
|
181
184
|
default: withCtx(() => [
|
182
|
-
_hoisted_1,
|
183
185
|
renderSlot(_ctx.$slots, "default", {
|
184
186
|
option: null,
|
185
187
|
selected: false,
|
@@ -46,10 +46,12 @@ declare const _default: <Model extends number | string>(__VLS_props: NonNullable
|
|
46
46
|
default: (props: {
|
47
47
|
selected: boolean;
|
48
48
|
}) => void;
|
49
|
+
prefix: () => void;
|
49
50
|
}> & {
|
50
51
|
default: (props: {
|
51
52
|
selected: boolean;
|
52
53
|
}) => void;
|
54
|
+
prefix: () => void;
|
53
55
|
}>;
|
54
56
|
emit: {
|
55
57
|
(e: "select"): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SelectOption.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOption.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"SelectOption.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOption.vue"],"names":[],"mappings":"yBA0IiB,KAAK,SAAS,MAAM,GAAG,MAAM,eAChC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBACvF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA6NxD,cAAc,CAAC;;;;;sBAxMmB,KAAK,GAAG,IAAI,GAAG,SAAS;kBAAQ,KAAK,GAAG,IAAI,GAAG,SAAS;;;;;;;;;;;;sBAAxD,KAAK,GAAG,IAAI,GAAG,SAAS;kBAAQ,KAAK,GAAG,IAAI,GAAG,SAAS;;;;;;;;oBAjBtF,OAAO;mBACR,OAAO;kBACR,OAAO;mBACN,OAAO;iBACT,OAAO;gBACR,OAAO;eACR,OAAO;mBACH,KAAK,GAAG,IAAI;eAChB,KAAK,GAAG,IAAI;qBACN,OAAO;yBACH,OAAO;KA+MwD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;WACH,UAAU;iBAzIT,CAAC,KAAK,EAAE;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;gBACrC,MAAM,IAAI;;iBADT,CAAC,KAAK,EAAE;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;gBACrC,MAAM,IAAI;MAwIuB;UAClC;YA9MH,QAAQ,GAAG,IAAI;YACf,UAAU,GAAG,IAAI;YACjB,kBAAkB,SAAS;YAAC,QAAQ,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;YAAC,IAAI,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;SAAC,GAAG,IAAI;YACtG,eAAe,GAAG,IAAI;YACtB,iBAAiB,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;YACzD,aAAa,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;YACrD,WAAW,GAAG,IAAI;YAClB,cAAc,GAAG,IAAI;YACrB,aAAa,GAAG,IAAI;UAsMiB;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAvOvE,wBAuO4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent, ref, watch, toRef, onUnmounted, openBlock, createElementBlock, normalizeClass, withModifiers,
|
1
|
+
import { defineComponent, ref, watch, toRef, onUnmounted, openBlock, createElementBlock, normalizeClass, withModifiers, renderSlot, createElementVNode, createVNode, Transition, withCtx, createBlock, unref, createCommentVNode } from 'vue';
|
2
2
|
import IconCheck from '../../../assets/icons/default/IconCheck.svg.js';
|
3
3
|
import WSpinner from '../../Spinner/WSpinner.vue.js';
|
4
4
|
|
5
5
|
const _hoisted_1 = {
|
6
6
|
key: 0,
|
7
|
-
class: "flex items-center justify-center text-primary-default dark:text-primary-dark [--spinner-size:1.5rem]"
|
7
|
+
class: "flex items-center justify-center text-primary-default dark:text-primary-dark [--spinner-size:1.5rem] col-start-3"
|
8
8
|
};
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
10
|
__name: "SelectOption",
|
@@ -67,7 +67,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
67
67
|
return openBlock(), createElementBlock("div", {
|
68
68
|
ref_key: "element",
|
69
69
|
ref: element,
|
70
|
-
class: normalizeClass(["relative grid grid-cols-[1fr,2.5rem] w-full py-2 px-[1.0625rem]", {
|
70
|
+
class: normalizeClass(["relative grid grid-cols-[auto,1fr,2.5rem] w-full py-2 px-[1.0625rem]", {
|
71
71
|
"bg-primary-light dark:bg-primary-darkest": _ctx.isSelected,
|
72
72
|
"before:opacity-5": !_ctx.loading && _ctx.isCursor && !_ctx.skeleton,
|
73
73
|
"cursor-progress": _ctx.loading || _ctx.skeleton,
|
@@ -77,8 +77,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
77
77
|
}, ["prevent", "stop"])),
|
78
78
|
onClick: withModifiers(toggle, ["prevent", "stop"])
|
79
79
|
}, [
|
80
|
+
renderSlot(_ctx.$slots, "prefix"),
|
80
81
|
createElementVNode("div", {
|
81
|
-
class: normalizeClass(["flex items-center overflow-hidden", {
|
82
|
+
class: normalizeClass(["flex items-center overflow-hidden col-start-2", {
|
82
83
|
"col-span-2": _ctx.hideOptionIcon
|
83
84
|
}])
|
84
85
|
}, [
|