eco-vue-js 0.10.45 → 0.10.46
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.
@@ -46,10 +46,12 @@ declare const _default: <Data extends DefaultData, QueryParams, Fields extends L
|
|
46
46
|
disabledFilterFields?: Array<keyof QueryParams>;
|
47
47
|
search?: boolean;
|
48
48
|
global?: boolean;
|
49
|
+
noList?: boolean;
|
49
50
|
} & Partial<{}>> & import('vue').PublicProps;
|
50
51
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
51
52
|
attrs: any;
|
52
53
|
slots: {
|
54
|
+
filter?(_: {}): any;
|
53
55
|
header?(_: {
|
54
56
|
count: number | undefined;
|
55
57
|
}): any;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/WList.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/WList.vue"],"names":[],"mappings":"AAkRA;AA0bA,OAAO,KAAK,EAAC,aAAa,EAAE,gBAAgB,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;AAC5J,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;AAWzC,OAAO,EAAuB,QAAQ,EAAC,MAAM,eAAe,CAAA;yBAa3C,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,WAAW,SAAS,SAAS,OAAO,EAAE,EAC3I,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAA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oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;wBAtEkB,GAAG;;;YACH,GAAG;2BACA,GAAG;;;;;YACP,GAAG;;;YAhvBzB,cAAc,SAAS,QAAQ,GAAG,IAAI;YACtC,cAAc,SAAS,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI;YACpD,qBAAqB,SAAS,WAAW,GAAG,IAAI;YAChD,cAAc,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;;EAozBlD,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAv2BzE,wBAu2B4E;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, computed, toRef, watch, createElementBlock, openBlock, Fragment, createCommentVNode,
|
1
|
+
import { defineComponent, ref, computed, toRef, watch, createElementBlock, openBlock, Fragment, createCommentVNode, createBlock, renderSlot, normalizeClass, unref, createVNode, normalizeStyle, withCtx, createSlots, resolveDynamicComponent, renderList, isRef } from 'vue';
|
2
2
|
import _sfc_main$6 from '../Button/WButtonSelection.vue.js';
|
3
3
|
import _sfc_main$3 from '../InfiniteList/WInfiniteList.vue.js';
|
4
4
|
import { useIsMobile } from '../../utils/mobile.js';
|
@@ -22,6 +22,7 @@ const _hoisted_1 = {
|
|
22
22
|
class: "flex"
|
23
23
|
};
|
24
24
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
25
|
+
...{ inheritAttrs: false },
|
25
26
|
__name: "WList",
|
26
27
|
props: {
|
27
28
|
count: {},
|
@@ -57,7 +58,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
57
58
|
filterSearch: {},
|
58
59
|
disabledFilterFields: {},
|
59
60
|
search: { type: Boolean },
|
60
|
-
global: { type: Boolean }
|
61
|
+
global: { type: Boolean },
|
62
|
+
noList: { type: Boolean }
|
61
63
|
},
|
62
64
|
emits: ["update:error", "click:action", "update:query-params", "update:count"],
|
63
65
|
setup(__props, { emit: __emit }) {
|
@@ -148,9 +150,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
148
150
|
search: _ctx.search === true,
|
149
151
|
"disabled-filter-fields": _ctx.disabledFilterFields ?? [],
|
150
152
|
"onUpdate:queryParams": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:query-params", $event))
|
151
|
-
}, null, 8, ["filter", "filter-search", "query-params", "search", "disabled-filter-fields"]))
|
153
|
+
}, null, 8, ["filter", "filter-search", "query-params", "search", "disabled-filter-fields"])),
|
154
|
+
renderSlot(_ctx.$slots, "filter")
|
152
155
|
], 64)) : createCommentVNode("", true),
|
153
|
-
|
156
|
+
!_ctx.noList ? (openBlock(), createElementBlock("div", {
|
157
|
+
key: 1,
|
154
158
|
class: normalizeClass({
|
155
159
|
"w-card": unref(isGrid),
|
156
160
|
"w-list": !unref(isGrid)
|
@@ -378,7 +382,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
378
382
|
]),
|
379
383
|
_: 3
|
380
384
|
}, 8, ["use-query-fn", "query-params", "query-options", "skeleton-length", "page-length", "count", "page-class", "style", "class"])
|
381
|
-
], 2)
|
385
|
+
], 2)) : createCommentVNode("", true)
|
382
386
|
], 64);
|
383
387
|
};
|
384
388
|
}
|
@@ -28,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
28
|
setup(__props, { emit: __emit }) {
|
29
29
|
const props = __props;
|
30
30
|
const emit = __emit;
|
31
|
-
const isOpen = ref(
|
31
|
+
const isOpen = ref(true);
|
32
32
|
const filterList = computed(() => {
|
33
33
|
return props.filter?.filter((item) => {
|
34
34
|
if (getItemProp(props.queryParams, item, "hidden")) return false;
|
package/package.json
CHANGED