eco-vue-js 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +5 -4
- package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/EmptyComponent.vue.js +11 -9
- package/dist/components/InfiniteList/components/EmptyComponent.vue2.js +5 -0
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +4 -5
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.js +1 -1
- package/dist/components/Nav/WNavItem.vue.d.ts +1 -1
- package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.js +5 -4
- package/package.json +1 -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":"yBAoQiB,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;WAmYxD,cAAc,CAAC;;;;;;;;;;;;;;;oBA/XT,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;uBAC3C,CAA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BAA6B;SAC5C,KAAK,IAAI;;kBAhBA,CAAC,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,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;iBACD,CAAC,KAAK,EAAE;YACf,IAAI,SAhFY,MAAM,cAAc,MAAM,UAgFzB;YACjB,cAAc,iBAA6B;SAC5C,KAAK,IAAI;MAsO+B;UAClC;YAxUH,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,uBAAuB,SAAS,MAAM,GAAG,IAAI;YAC7C,cAAc,SAAS,MAAM,GAAG,IAAI;YAEpC,QAAQ,UAAU,KAAK,EAAE,GAAG,IAAI;YAChC,gBAAgB,UAAU,KAAK,EAAE,GAAG,IAAI;YACxC,cAAc,SAAS,aAAa,CAAC,KAAK,CAAC,GAAG,IAAI;UAkUb;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AA7YvE,wBA6Y4E;AAY5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { defineComponent, ref, toRef, provide, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, renderSlot, normalizeProps, guardReactiveProps, createCommentVNode, createVNode, withCtx } from 'vue';
|
1
|
+
import { defineComponent, ref, toRef, provide, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, renderSlot, normalizeProps, guardReactiveProps, createCommentVNode, createVNode, withCtx, createBlock, resolveDynamicComponent } from 'vue';
|
2
2
|
import { useInfiniteListHeader } from './use/useInfiniteListHeader.js';
|
3
3
|
import _sfc_main$1 from './WInfiniteListPages.vue.js';
|
4
|
-
import _sfc_main$
|
4
|
+
import _sfc_main$3 from './components/InfiniteListPageSelectItem.vue.js';
|
5
5
|
import { useSelected } from './use/useSelected.js';
|
6
6
|
import { wInfiniteListSelection } from './models/injection.js';
|
7
|
+
import _sfc_main$2 from './components/EmptyComponent.vue.js';
|
7
8
|
|
8
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
9
10
|
__name: "WInfiniteList",
|
@@ -153,7 +154,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
153
154
|
"onUpdate:page": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:page", $event))
|
154
155
|
}, {
|
155
156
|
default: withCtx(({ item, setter, skeleton, refetch, previous, next, first, last, resetting, page, index }) => [
|
156
|
-
|
157
|
+
(openBlock(), createBlock(resolveDynamicComponent(skeleton ? _sfc_main$2 : _sfc_main$3), {
|
157
158
|
selected: skeleton ? false : unref(getIsSelected)(_ctx.valueGetter(item)),
|
158
159
|
"selected-between": skeleton ? false : unref(getIsSelectedBetween)(_ctx.valueGetter(item), page, index),
|
159
160
|
"onUpdate:selected": ($event) => {
|
@@ -179,7 +180,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
179
180
|
})
|
180
181
|
]),
|
181
182
|
_: 2
|
182
|
-
},
|
183
|
+
}, 1064, ["selected", "selected-between", "onUpdate:selected", "onUpdate:selectedRange", "onUpdate:selectedRangeHover"]))
|
183
184
|
]),
|
184
185
|
_: 3
|
185
186
|
}, 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"])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmptyComponent.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/EmptyComponent.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"EmptyComponent.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/EmptyComponent.vue"],"names":[],"mappings":"AAqBA,iBAAS,cAAc;qBAgBM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,11 +1,13 @@
|
|
1
|
-
import { renderSlot } from 'vue';
|
2
|
-
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.js';
|
1
|
+
import { defineComponent, renderSlot } from 'vue';
|
3
2
|
|
4
|
-
const _sfc_main = {
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
+
...{ inheritAttrs: false },
|
5
|
+
__name: "EmptyComponent",
|
6
|
+
setup(__props) {
|
7
|
+
return (_ctx, _cache) => {
|
8
|
+
return renderSlot(_ctx.$slots, "default");
|
9
|
+
};
|
10
|
+
}
|
11
|
+
});
|
5
12
|
|
6
|
-
|
7
|
-
return renderSlot(_ctx.$slots, "default")
|
8
|
-
}
|
9
|
-
const EmptyComponent = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);
|
10
|
-
|
11
|
-
export { EmptyComponent as default };
|
13
|
+
export { _sfc_main as default };
|
@@ -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":"yBA0WiB,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;WA8bxD,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;qBA1bR,WAAW;oBACZ,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;uBAC3C,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO;wBAC1B,MAAM;mBACX,OAAO;kBACR,OAAO;wBACD,OAAO;eAChB,OAAO;gBACN,OAAO;qBACF,OAAO;oBACR,OAAO;oBACP,MAAM;oBACN,OAAO;oBACP,OAAO;oBACP,MAAM;0BACA,MAAM,GAAG,KAAK;2BACb,OAAO,GAAG,IAAI;uBAClB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;mBAE1E,KAAK,EAAE;qBACL,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;qBACrB,OAAO;uBACL,OAAO;2BACH,OAAO;6BACL,OAAO;KAkakD,CAAC,4BAA2B;oBAC3F,OAAO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AU,KAAK,EAAE,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;UA4YqB;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAxcvE,wBAwc4E;AAY5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, ref, toRef, computed, watch, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, unref, Fragment, createElementVNode, createBlock, createCommentVNode, resolveDynamicComponent, TransitionGroup, normalizeProps, mergeProps, withCtx, renderList, guardReactiveProps, renderSlot, toDisplayString } from 'vue';
|
2
2
|
import _sfc_main$2 from './InfiniteListPageTitle.vue.js';
|
3
3
|
import _sfc_main$1 from './InfiniteListPageSelection.vue.js';
|
4
|
-
import
|
4
|
+
import _sfc_main$3 from './EmptyComponent.vue.js';
|
5
5
|
|
6
6
|
const _hoisted_1 = { class: "select-none cursor-default w-select-field sm-not:px-3" };
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -44,7 +44,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
44
44
|
toRef(props, "queryParams"),
|
45
45
|
{
|
46
46
|
...props.queryOptions ?? {},
|
47
|
-
placeholderData: void 0,
|
48
47
|
refetchInterval: props.refetchInterval ? computed(() => isIntersecting.value ? props.refetchInterval : void 0) : void 0
|
49
48
|
}
|
50
49
|
);
|
@@ -196,7 +195,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
196
195
|
createElementVNode("div", {
|
197
196
|
class: normalizeClass(_ctx.pageClass)
|
198
197
|
}, [
|
199
|
-
hasData.value && unref(data)?.results ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? TransitionGroup :
|
198
|
+
hasData.value && unref(data)?.results ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? TransitionGroup : _sfc_main$3), normalizeProps(mergeProps({ key: 0 }, _ctx.transition ? {
|
200
199
|
["enter-active-class"]: "transition-[grid-template-rows] overflow-hidden grid",
|
201
200
|
["enter-from-class"]: "grid-rows-[0fr]",
|
202
201
|
["enter-to-class"]: "grid-rows-[1fr]",
|
@@ -207,11 +206,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
207
206
|
} : void 0)), {
|
208
207
|
default: withCtx(() => [
|
209
208
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(data).results, (item, index) => {
|
210
|
-
return openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? "div" :
|
209
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? "div" : _sfc_main$3), normalizeProps(mergeProps({
|
211
210
|
key: _ctx.valueGetter(item)
|
212
211
|
}, _ctx.transition ? { class: "w-full" } : void 0)), {
|
213
212
|
default: withCtx(() => [
|
214
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? "div" :
|
213
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? "div" : _sfc_main$3), normalizeProps(guardReactiveProps(_ctx.transition ? { class: "[overflow:inherit]" } : void 0)), {
|
215
214
|
default: withCtx(() => [
|
216
215
|
renderSlot(_ctx.$slots, "default", {
|
217
216
|
item,
|
@@ -19,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
19
|
updateSelectedRangeHover: () => emit("update:selected-range-hover")
|
20
20
|
});
|
21
21
|
onUnmounted(() => {
|
22
|
-
emit("update:selected", false);
|
22
|
+
if (props.selected) emit("update:selected", false);
|
23
23
|
});
|
24
24
|
return (_ctx, _cache) => {
|
25
25
|
return renderSlot(_ctx.$slots, "default");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Nav/WNavItem.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WNavItem.vue.d.ts","sourceRoot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EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
@@ -47,15 +47,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
47
|
const route = useRoute();
|
48
48
|
const router = useRouter();
|
49
49
|
const routeTo = computed(() => router.resolve(props.to));
|
50
|
+
const titleLocal = computed(() => props.title ?? (typeof routeTo.value.meta.titleShort === "string" ? routeTo.value.meta.titleShort : typeof routeTo.value.meta.title === "string" ? routeTo.value.meta.title : ""));
|
50
51
|
const isActive = computed(() => {
|
51
52
|
if (routeTo.value?.name !== route.name) return false;
|
52
53
|
return isEqualObj(route.query, routeTo.value.query, EXCLUDE_QUERY_FIELDS, props.queryFields);
|
53
54
|
});
|
54
55
|
const isTextColor = computed(() => props.hasActive ? !props.indent : isActive.value);
|
55
56
|
const isBigCount = computed(() => props.counter !== void 0 && props.counter >= 1e3);
|
56
|
-
watch(isActive, (value) => emit("update:isActive", [
|
57
|
+
watch(isActive, (value) => emit("update:isActive", [titleLocal.value, value]), { immediate: true });
|
57
58
|
onBeforeUnmount(() => {
|
58
|
-
emit("update:isActive", [
|
59
|
+
emit("update:isActive", [titleLocal.value, false]);
|
59
60
|
});
|
60
61
|
return (_ctx, _cache) => {
|
61
62
|
return openBlock(), createBlock(unref(RouterLink), {
|
@@ -92,12 +93,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
92
93
|
createElementVNode("div", _hoisted_5, [
|
93
94
|
createElementVNode("div", _hoisted_6, [
|
94
95
|
createElementVNode("div", _hoisted_7, [
|
95
|
-
_ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
|
96
|
+
_ctx.icon ?? routeTo.value.meta.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon ?? routeTo.value.meta.icon), {
|
96
97
|
key: 0,
|
97
98
|
class: "square-6"
|
98
99
|
})) : renderSlot(_ctx.$slots, "icon", { key: 1 })
|
99
100
|
]),
|
100
|
-
createElementVNode("div", _hoisted_8, toDisplayString(
|
101
|
+
createElementVNode("div", _hoisted_8, toDisplayString(titleLocal.value), 1),
|
101
102
|
createElementVNode("div", _hoisted_9, [
|
102
103
|
createTextVNode(" "),
|
103
104
|
!_ctx.skeleton ? (openBlock(), createElementBlock("span", _hoisted_10, [
|